7 instantiations of RegistryHandle
ComSvcConfig (7)
SafeNativeMethods.cs (7)
30internal static readonly RegistryHandle HKEY_CLASSES_ROOT = new RegistryHandle(new IntPtr(unchecked((int)0x80000000)), false); 31internal static readonly RegistryHandle HKEY_CURRENT_USER = new RegistryHandle(new IntPtr(unchecked((int)0x80000001)), false); 32internal static readonly RegistryHandle HKEY_LOCAL_MACHINE = new RegistryHandle(new IntPtr(unchecked((int)0x80000002)), false); 33internal static readonly RegistryHandle HKEY_USERS = new RegistryHandle(new IntPtr(unchecked((int)0x80000003)), false); 34internal static readonly RegistryHandle HKEY_PERFORMANCE_DATA = new RegistryHandle(new IntPtr(unchecked((int)0x80000004)), false); 35internal static readonly RegistryHandle HKEY_CURRENT_CONFIG = new RegistryHandle(new IntPtr(unchecked((int)0x80000005)), false); 36internal static readonly RegistryHandle HKEY_DYN_DATA = new RegistryHandle(new IntPtr(unchecked((int)0x80000006)), false);
43 references to RegistryHandle
ComSvcConfig (43)
ComAdminWrapper.cs (11)
269using (RegistryHandle regKey = RegistryHandle.GetCorrectBitnessHKLMSubkey(is64bit, ServiceModelInstallStrings.WinFXRegistryKey, false)) 277RegistryHandle regkey = null; 280if (SafeNativeMethods.ERROR_SUCCESS == RegistryHandle.TryGetCorrectBitnessHKLMSubkey(is64bit, Wcf30RegistryKey, out regkey)) 329using (RegistryHandle regKey = RegistryHandle.GetBitnessHKCR(is64bit)) 331using (RegistryHandle clsidKey = regKey.CreateSubKey(@"clsid\" + clsid.ToString("B"))) 334using (RegistryHandle inprocServer32Key = clsidKey.CreateSubKey("InprocServer32")) 339using (RegistryHandle progID = clsidKey.CreateSubKey("ProgID")) 471RegistryHandle regKey = RegistryHandle.GetBitnessHKCR(is64bit);
SafeNativeMethods.cs (32)
30internal static readonly RegistryHandle HKEY_CLASSES_ROOT = new RegistryHandle(new IntPtr(unchecked((int)0x80000000)), false); 31internal static readonly RegistryHandle HKEY_CURRENT_USER = new RegistryHandle(new IntPtr(unchecked((int)0x80000001)), false); 32internal static readonly RegistryHandle HKEY_LOCAL_MACHINE = new RegistryHandle(new IntPtr(unchecked((int)0x80000002)), false); 33internal static readonly RegistryHandle HKEY_USERS = new RegistryHandle(new IntPtr(unchecked((int)0x80000003)), false); 34internal static readonly RegistryHandle HKEY_PERFORMANCE_DATA = new RegistryHandle(new IntPtr(unchecked((int)0x80000004)), false); 35internal static readonly RegistryHandle HKEY_CURRENT_CONFIG = new RegistryHandle(new IntPtr(unchecked((int)0x80000005)), false); 36internal static readonly RegistryHandle HKEY_DYN_DATA = new RegistryHandle(new IntPtr(unchecked((int)0x80000006)), false); 38static RegistryHandle GetHKCR() 40RegistryHandle regHandle = null; 50static RegistryHandle Get64bitHKCR() 52RegistryHandle regHandle = null; 61static RegistryHandle Get32bitHKCR() 63RegistryHandle regHandle = null; 72static RegistryHandle GetCorrectBitnessHive(bool is64bit) 86public static RegistryHandle GetBitnessHKCR(bool is64bit) 92public static RegistryHandle GetCorrectBitnessHKLMSubkey(bool is64bit, string key, bool isWriteRequired) 106public static int TryGetCorrectBitnessHKLMSubkey(bool is64bit, string key, out RegistryHandle regHandle) 120static RegistryHandle GetHKLMSubkey(string key, bool isWriteRequired) 122RegistryHandle regHandle = null; 137static RegistryHandle Get64bitHKLMSubkey(string key, bool isWriteRequired) 139RegistryHandle regHandle = null; 153static RegistryHandle Get32bitHKLMSubkey(string key, bool isWriteRequired) 155RegistryHandle regHandle = null; 193public RegistryHandle CreateSubKey(string subKey) 195RegistryHandle regHandle = null; 305internal static extern int RegOpenKeyEx(RegistryHandle hKey, String lpSubKey, 306int ulOptions, int samDesired, out RegistryHandle hkResult); 309internal static extern int RegSetValueEx(RegistryHandle hKey, String lpValueName, 315internal static extern int RegCreateKeyEx(RegistryHandle hKey, String lpSubKey, 318out RegistryHandle hkResult, out int lpdwDisposition); 324internal static extern int RegQueryValueEx(RegistryHandle hKey, String lpValueName, 329internal static extern int RegDeleteKey(RegistryHandle hKey, String lpValueName);