3 instantiations of SafeRegistryHandle
mscorlib (3)
microsoft\win32\registrykey.cs (2)
635SafeRegistryHandle srh = new SafeRegistryHandle(hKey, isPerf); 694int ret = Win32Native.RegConnectRegistry(machineName, new SafeRegistryHandle(new IntPtr((int)hKey), false), out foreignHKey);
system\AppContext\AppContextDefaultValues.DesktopOverrides.cs (1)
133using (SafeRegistryHandle hklm = new SafeRegistryHandle((IntPtr)RegistryHive.LocalMachine, true))
41 references to SafeRegistryHandle
mscorlib (41)
microsoft\win32\registrykey.cs (14)
155private volatile SafeRegistryHandle hkey = null; 189private RegistryKey(SafeRegistryHandle hkey, bool writable, RegistryView view) 204private RegistryKey(SafeRegistryHandle hkey, bool writable, bool systemkey, bool remoteKey, bool isPerfData, RegistryView view) { 255SafeRegistryHandle.RegCloseKey(RegistryKey.HKEY_PERFORMANCE_DATA); 383SafeRegistryHandle result = null; 635SafeRegistryHandle srh = new SafeRegistryHandle(hKey, isPerf); 693SafeRegistryHandle foreignHKey = null; 735SafeRegistryHandle result = null; 799SafeRegistryHandle result = null; 828SafeRegistryHandle result = null; 883public SafeRegistryHandle Handle { 920SafeRegistryHandle result; 946public static RegistryKey FromHandle(SafeRegistryHandle handle) { 955public static RegistryKey FromHandle(SafeRegistryHandle handle, RegistryView view) {
microsoft\win32\win32native.cs (23)
1770SafeRegistryHandle key, out SafeRegistryHandle result); 1776internal static extern int RegCreateKeyEx(SafeRegistryHandle hKey, String lpSubKey, 1779out SafeRegistryHandle hkResult, out int lpdwDisposition); 1783internal static extern int RegDeleteKey(SafeRegistryHandle hKey, String lpSubKey); 1787internal static extern int RegDeleteKeyEx(SafeRegistryHandle hKey, String lpSubKey, 1792internal static extern int RegDeleteValue(SafeRegistryHandle hKey, String lpValueName); 1796internal unsafe static extern int RegEnumKeyEx(SafeRegistryHandle hKey, int dwIndex, 1803internal unsafe static extern int RegEnumValue(SafeRegistryHandle hKey, int dwIndex, 1811internal static extern int RegFlushKey(SafeRegistryHandle hKey); 1815internal static extern int RegOpenKeyEx(SafeRegistryHandle hKey, String lpSubKey, 1816int ulOptions, int samDesired, out SafeRegistryHandle hkResult); 1821int ulOptions, int samDesired, out SafeRegistryHandle hkResult); 1825internal static extern int RegQueryInfoKey(SafeRegistryHandle hKey, [Out]StringBuilder lpClass, 1834internal static extern int RegQueryValueEx(SafeRegistryHandle hKey, String lpValueName, 1840internal static extern int RegQueryValueEx(SafeRegistryHandle hKey, String lpValueName, 1846internal static extern int RegQueryValueEx(SafeRegistryHandle hKey, String lpValueName, 1852internal static extern int RegQueryValueEx(SafeRegistryHandle hKey, String lpValueName, 1858internal static extern int RegQueryValueEx(SafeRegistryHandle hKey, String lpValueName, 1864internal static extern int RegSetValueEx(SafeRegistryHandle hKey, String lpValueName, 1869internal static extern int RegSetValueEx(SafeRegistryHandle hKey, String lpValueName, 1874internal static extern int RegSetValueEx(SafeRegistryHandle hKey, String lpValueName, 1879internal static extern int RegSetValueEx(SafeRegistryHandle hKey, String lpValueName,
system\AppContext\AppContextDefaultValues.DesktopOverrides.cs (2)
133using (SafeRegistryHandle hklm = new SafeRegistryHandle((IntPtr)RegistryHive.LocalMachine, true)) 135SafeRegistryHandle hkey = null;
system\security\accesscontrol\registrysecurity.cs (2)
152internal RegistrySecurity(SafeRegistryHandle hKey, String name, AccessControlSections includeSections) 238internal void Persist(SafeRegistryHandle hKey, String keyName)