Microsoft.Win32.Win32RegistryApi.RegQueryValueEx C# (CSharp) Méthode

RegQueryValueEx() private méthode

private RegQueryValueEx ( IntPtr keyBase, string valueName, IntPtr reserved, RegistryValueKind &type, IntPtr zero, int &dataSize ) : int
keyBase System.IntPtr
valueName string
reserved System.IntPtr
type RegistryValueKind
zero System.IntPtr
dataSize int
Résultat int
		private static extern int RegQueryValueEx (IntPtr keyBase,
				string valueName, IntPtr reserved, ref RegistryValueKind type,
				IntPtr zero, ref int dataSize);

Same methods

Win32RegistryApi::RegQueryValueEx ( IntPtr keyBase, string valueName, IntPtr reserved, RegistryValueKind &type, [ data, int &dataSize ) : int
Win32RegistryApi::RegQueryValueEx ( IntPtr keyBase, string valueName, IntPtr reserved, RegistryValueKind &type, int &data, int &dataSize ) : int

Usage Example

        private int GetBinaryValue(RegistryKey rkey, string name, RegistryValueKind type, out byte[] data, int size)
        {
            byte[] array  = new byte[size];
            IntPtr handle = Win32RegistryApi.GetHandle(rkey);
            int    result = Win32RegistryApi.RegQueryValueEx(handle, name, IntPtr.Zero, ref type, array, ref size);

            data = array;
            return(result);
        }
All Usage Examples Of Microsoft.Win32.Win32RegistryApi::RegQueryValueEx