@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm @SystemGCKeepAlive=http://msdn2.microsoft.com/library/System.GC.KeepAlive.aspx @SystemRuntimeInteropServicesHandleRef=http://msdn2.microsoft.com/library/System.Runtime.InteropServices.HandleRef.aspx @SystemRuntimeInteropServicesOutAttribute=http://msdn2.microsoft.com/library/System.Runtime.InteropServices.OutAttribute.aspx @SystemTextStringBuilder=http://msdn2.microsoft.com/library/System.Text.StringBuilder.aspx Summary: Retrieves information about a specified registry key. !!!!C# Signature: [DllImport("coredll.dll")] public static extern int RegQueryInfoKey( IntPtr hKey, [Out()]StringBuilder lpClass, ref uint lpcchClass, IntPtr lpReserved, out uint lpcSubkey, out uint lpcchMaxSubkeyLen, out uint lpcchMaxClassLen, out uint lpcValues, out uint lpcchMaxValueNameLen, out uint lpcbMaxValueLen, IntPtr lpSecurityDescriptor, IntPtr lpftLastWriteTime); !!!!User-Defined Types: None. !!!!Notes: The .NET Compact Framework does not contain a HandleRef@SystemRuntimeInteropServicesHandleRef type, so it may be necessary to call GC.KeepAlive@SystemGCKeepAlive after calling this function if the calling class wraps the hKey parameter as an unmanaged resource. OutAttribute@SystemRuntimeInteropServicesOutAttribute is used with StringBuilder@SystemTextStringBuilder parameters because StringBuilder is a reference type. Using the out keyword will result in passing the reference by-reference, but in this case the reference must be passed by-value. !!!!Tips & Tricks: None. !!!!Alternative Managed API: Do you know one? Please contribute it! Documentation: RegQueryInfoKey@msdn on MSDN
Edit coredll.regqueryi...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.