7 instantiations of RegistryHandle
System.ServiceModel (7)
System\ServiceModel\ComIntegration\SafeNativeMethods.cs (7)
568internal static readonly RegistryHandle HKEY_CLASSES_ROOT = new RegistryHandle(new IntPtr(unchecked((int)0x80000000)), false); 569internal static readonly RegistryHandle HKEY_CURRENT_USER = new RegistryHandle(new IntPtr(unchecked((int)0x80000001)), false); 570internal static readonly RegistryHandle HKEY_LOCAL_MACHINE = new RegistryHandle(new IntPtr(unchecked((int)0x80000002)), false); 571internal static readonly RegistryHandle HKEY_USERS = new RegistryHandle(new IntPtr(unchecked((int)0x80000003)), false); 572internal static readonly RegistryHandle HKEY_PERFORMANCE_DATA = new RegistryHandle(new IntPtr(unchecked((int)0x80000004)), false); 573internal static readonly RegistryHandle HKEY_CURRENT_CONFIG = new RegistryHandle(new IntPtr(unchecked((int)0x80000005)), false); 574internal static readonly RegistryHandle HKEY_DYN_DATA = new RegistryHandle(new IntPtr(unchecked((int)0x80000006)), false);
41 references to RegistryHandle
System.ServiceModel (41)
System\ServiceModel\ComIntegration\OuterProxyWrapper.cs (2)
53using (RegistryHandle regKey = RegistryHandle.GetCorrectBitnessHKLMSubkey((IntPtr.Size == 8), ServiceModelInstallStrings.WinFXRegistryKey))
System\ServiceModel\ComIntegration\SafeNativeMethods.cs (32)
310internal static extern int RegOpenKeyEx(RegistryHandle hKey, String lpSubKey, 311int ulOptions, int samDesired, out RegistryHandle hkResult); 315internal static extern int RegSetValueEx(RegistryHandle hKey, String lpValueName, 324internal static extern int RegQueryValueEx(RegistryHandle hKey, String lpValueName, 329internal static extern int RegEnumKey(RegistryHandle hKey, int index, StringBuilder lpName, ref int len); 333internal static extern int RegDeleteKey(RegistryHandle hKey, String lpValueName); 568internal static readonly RegistryHandle HKEY_CLASSES_ROOT = new RegistryHandle(new IntPtr(unchecked((int)0x80000000)), false); 569internal static readonly RegistryHandle HKEY_CURRENT_USER = new RegistryHandle(new IntPtr(unchecked((int)0x80000001)), false); 570internal static readonly RegistryHandle HKEY_LOCAL_MACHINE = new RegistryHandle(new IntPtr(unchecked((int)0x80000002)), false); 571internal static readonly RegistryHandle HKEY_USERS = new RegistryHandle(new IntPtr(unchecked((int)0x80000003)), false); 572internal static readonly RegistryHandle HKEY_PERFORMANCE_DATA = new RegistryHandle(new IntPtr(unchecked((int)0x80000004)), false); 573internal static readonly RegistryHandle HKEY_CURRENT_CONFIG = new RegistryHandle(new IntPtr(unchecked((int)0x80000005)), false); 574internal static readonly RegistryHandle HKEY_DYN_DATA = new RegistryHandle(new IntPtr(unchecked((int)0x80000006)), false); 577static RegistryHandle GetHKCR() 579RegistryHandle regHandle = null; 598static RegistryHandle Get64bitHKCR() 600RegistryHandle regHandle = null; 618static RegistryHandle Get32bitHKCR() 620RegistryHandle regHandle = null; 636static RegistryHandle GetCorrectBitnessHive(bool is64bit) 650public static RegistryHandle GetBitnessHKCR(bool is64bit) 655public static RegistryHandle GetCorrectBitnessHKLMSubkey(bool is64bit, string key) 671static RegistryHandle GetHKLMSubkey(string key) 673RegistryHandle regHandle = null; 691static RegistryHandle Get64bitHKLMSubkey(string key) 693RegistryHandle regHandle = null; 710static RegistryHandle Get32bitHKLMSubkey(string key) 712RegistryHandle regHandle = null; 729internal static RegistryHandle GetNativeHKLMSubkey(string subKey, bool writeable) 731RegistryHandle regHandle = null; 776public RegistryHandle OpenSubKey(string subkey) 778RegistryHandle regHandle = null;
System\ServiceModel\ComIntegration\TypeCacheManager.cs (5)
398using (RegistryHandle hkcr = RegistryHandle.GetBitnessHKCR(IntPtr.Size == 8 ? false : true)) 402using (RegistryHandle clsidKey = hkcr.OpenSubKey(String.Concat("CLSID\\{", clsid.ToString(), "}\\InprocServer32"))) 404using (RegistryHandle assemblyKey = clsidKey.OpenSubKey(typeof(TypeCacheManager).Assembly.ImageRuntimeVersion)) 415using (RegistryHandle assemblyKeyAny = clsidKey.OpenSubKey(keyName))
System\ServiceModel\Transactions\WsatConfiguration.cs (2)
405using (RegistryHandle regKey = RegistryHandle.GetNativeHKLMSubkey(key, false))