20 references to SafeRegistryHandle
System (20)
net\System\Net\_AutoWebProxyScriptEngine.cs (7)
46private SafeRegistryHandle hkcu; 61SafeRegistryHandle.RegOpenCurrentUser(UnsafeNclNativeMethods.RegistryHelper.KEY_READ, out hkcu); 373private SafeRegistryHandle regKey; 374private SafeRegistryHandle regKeyLM; 375private SafeRegistryHandle regKeyPolicy; 418private void ListenForRegistryHelper(ref SafeRegistryHandle key, ref AutoResetEvent changeEvent, IntPtr baseKey, string subKey) 441errorCode = SafeRegistryHandle.RegOpenKeyEx(baseKey, subKey, 0, UnsafeNclNativeMethods.RegistryHelper.KEY_READ, out key);
net\System\Net\_RegBlobWebProxyDataBuilder.cs (4)
64private SafeRegistryHandle m_Registry; 66public RegBlobWebProxyDataBuilder(string connectoid, SafeRegistryHandle registry) 80SafeRegistryHandle key = null; 108errorCode = SafeRegistryHandle.RegOpenKeyEx(UnsafeNclNativeMethods.RegistryHelper.HKEY_LOCAL_MACHINE, ProxyKey, 0, UnsafeNclNativeMethods.RegistryHelper.KEY_READ, out key);
net\System\Net\_SafeNetHandles.cs (3)
3029internal static uint RegOpenKeyEx(IntPtr key, string subKey, uint ulOptions, uint samDesired, out SafeRegistryHandle resultSubKey) 3034internal uint RegOpenKeyEx(string subKey, uint ulOptions, uint samDesired, out SafeRegistryHandle resultSubKey) 3093internal static uint RegOpenCurrentUser(uint samDesired, out SafeRegistryHandle resultKey)
net\System\Net\UnsafeNativeMethods.cs (6)
171internal static extern uint RegOpenKeyEx(IntPtr key, string subKey, uint ulOptions, uint samDesired, out SafeRegistryHandle resultSubKey); 174internal static extern uint RegOpenKeyEx(SafeRegistryHandle key, string subKey, uint ulOptions, uint samDesired, out SafeRegistryHandle resultSubKey); 181internal static extern uint RegNotifyChangeKeyValue(SafeRegistryHandle key, bool watchSubTree, uint notifyFilter, SafeWaitHandle regEvent, bool async); 184internal static extern uint RegOpenCurrentUser(uint samDesired, out SafeRegistryHandle resultKey); 187internal static extern uint RegQueryValueEx(SafeRegistryHandle key, string valueName, IntPtr reserved, out uint type, [Out] byte[] data, [In][Out] ref uint size);