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