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

GetBinaryValue() private méthode

Get a binary value.
private GetBinaryValue ( RegistryKey rkey, string name, RegistryValueKind type, byte &data, int size ) : int
rkey RegistryKey
name string
type RegistryValueKind
data byte
size int
Résultat int
		private int GetBinaryValue (RegistryKey rkey, string name, RegistryValueKind type, out byte[] data, int size)
		{
			byte[] internalData = new byte [size];
			IntPtr handle = GetHandle (rkey);
			int result = RegQueryValueEx (handle, name, IntPtr.Zero, ref type, internalData, ref size);
			data = internalData;
			return result;
		}