static extern int RegDisableReflectionKey(IntPtr hBase);
Declare Function RegDisableReflectionKey Lib "advapi32.dll" (hBase As IntPtr) As Int
int errorCode = RegDisableReflectionKey(handle.DangerousGetHandle());