Desktop Functions: Smart Device Functions:
|
RegDisableReflectionKey (advapi32)
C# Signature:
[DllImport("advapi32.dll", SetLastError=true)] 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()); Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|