@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: TODO - a short description !!!!C# Signature: [DllImport("advapi32.dll", SetLastError=true)] static extern int RegDisableReflectionKey(IntPtr hBase); !!!!VB Signature: Declare Function RegDisableReflectionKey Lib "advapi32.dll" (hBase As IntPtr) As Int !!!!User-Defined Types: None. !!!!Alternative Managed API: Do you know one? Please contribute it! !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: hiveKey = Registry.LocalMachine.OpenSubKey(subKey); Type type = typeof(RegistryKey); FieldInfo fi = type.GetField( "hkey", BindingFlags.NonPublic | BindingFlags.Instance); SafeHandle handle = (SafeHandle)fi.GetValue(hiveKey); IntPtr realHandle = handle.DangerousGetHandle(); int errorCode = RegDisableReflectionKey(handle.DangerousGetHandle()); Documentation: RegDisableReflectionKey@msdn on MSDN
Edit advapi32.RegDisab...
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.