7 instantiations of RegistryKey
mscorlib (7)
microsoft\win32\registrykey.cs (7)
395
RegistryKey key = new
RegistryKey
(result, (permissionCheck != RegistryKeyPermissionCheck.ReadSubTree), false, remoteKey, false, regView);
637
RegistryKey key = new
RegistryKey
(srh, true, true,false, isPerf, view);
707
RegistryKey key = new
RegistryKey
(foreignHKey, true, false, true, ((IntPtr) hKey) == HKEY_PERFORMANCE_DATA, view);
743
RegistryKey key = new
RegistryKey
(result, writable, false, remoteKey, false, regView);
802
RegistryKey key = new
RegistryKey
(result, (permissionCheck == RegistryKeyPermissionCheck.ReadWriteSubTree), false, remoteKey, false, regView);
836
RegistryKey key = new
RegistryKey
(result, writable, false, remoteKey, false, regView);
959
return new
RegistryKey
(handle, true /* isWritable */, view);
318 references to RegistryKey
ComSvcConfig (2)
WasAdminWrapper.cs (2)
46
RegistryKey
inetStpKey = Registry.LocalMachine.OpenSubKey(inetStp);
52
RegistryKey
componentsKey = inetStpKey.OpenSubKey(components);
mscorlib (126)
microsoft\win32\registry.cs (29)
35
public static readonly
RegistryKey
CurrentUser =
RegistryKey
.GetBaseKey(
RegistryKey
.HKEY_CURRENT_USER);
43
public static readonly
RegistryKey
LocalMachine =
RegistryKey
.GetBaseKey(
RegistryKey
.HKEY_LOCAL_MACHINE);
51
public static readonly
RegistryKey
ClassesRoot =
RegistryKey
.GetBaseKey(
RegistryKey
.HKEY_CLASSES_ROOT);
59
public static readonly
RegistryKey
Users =
RegistryKey
.GetBaseKey(
RegistryKey
.HKEY_USERS);
67
public static readonly
RegistryKey
PerformanceData =
RegistryKey
.GetBaseKey(
RegistryKey
.HKEY_PERFORMANCE_DATA);
75
public static readonly
RegistryKey
CurrentConfig =
RegistryKey
.GetBaseKey(
RegistryKey
.HKEY_CURRENT_CONFIG);
85
public static readonly
RegistryKey
DynData =
RegistryKey
.GetBaseKey(
RegistryKey
.HKEY_DYN_DATA);
94
private static
RegistryKey
GetBaseKeyFromKeyName(string keyName, out string subKeyName) {
107
RegistryKey
basekey = null;
129
basekey =
RegistryKey
.GetBaseKey(
RegistryKey
.HKEY_DYN_DATA);
148
RegistryKey
basekey = GetBaseKeyFromKeyName(keyName, out subKeyName);
150
RegistryKey
key = basekey.OpenSubKey(subKeyName);
173
RegistryKey
basekey = GetBaseKeyFromKeyName(keyName, out subKeyName);
175
RegistryKey
key = basekey.CreateSubKey(subKeyName);
microsoft\win32\registrykey.cs (33)
255
SafeRegistryHandle.RegCloseKey(
RegistryKey
.HKEY_PERFORMANCE_DATA);
288
public
RegistryKey
CreateSubKey(String subkey) {
295
public
RegistryKey
CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck)
303
public
RegistryKey
CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistryOptions options)
309
public
RegistryKey
CreateSubKey(String subkey, bool writable)
315
public
RegistryKey
CreateSubKey(String subkey, bool writable, RegistryOptions options)
325
public unsafe
RegistryKey
CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistrySecurity registrySecurity)
333
public unsafe
RegistryKey
CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistryOptions registryOptions, RegistrySecurity registrySecurity)
343
private unsafe
RegistryKey
CreateSubKeyInternal(String subkey, RegistryKeyPermissionCheck permissionCheck, object registrySecurityObj, RegistryOptions registryOptions)
353
RegistryKey
key = InternalOpenSubKey(subkey, (permissionCheck != RegistryKeyPermissionCheck.ReadSubTree));
395
RegistryKey
key = new RegistryKey(result, (permissionCheck != RegistryKeyPermissionCheck.ReadSubTree), false, remoteKey, false, regView);
438
RegistryKey
key = InternalOpenSubKey(subkey,false);
503
RegistryKey
key = InternalOpenSubKey(subkey, true);
540
RegistryKey
key = InternalOpenSubKey(subkey, true);
622
internal static
RegistryKey
GetBaseKey(IntPtr hKey) {
627
internal static
RegistryKey
GetBaseKey(IntPtr hKey, RegistryView view) {
637
RegistryKey
key = new RegistryKey(srh, true, true,false, isPerf, view);
648
public static
RegistryKey
OpenBaseKey(RegistryHive hKey, RegistryView view) {
674
public static
RegistryKey
OpenRemoteBaseKey(RegistryHive hKey, String machineName) {
682
public static
RegistryKey
OpenRemoteBaseKey(RegistryHive hKey, String machineName, RegistryView view) {
707
RegistryKey
key = new RegistryKey(foreignHKey, true, false, true, ((IntPtr) hKey) == HKEY_PERFORMANCE_DATA, view);
729
public
RegistryKey
OpenSubKey(string name, bool writable ) {
743
RegistryKey
key = new RegistryKey(result, writable, false, remoteKey, false, regView);
765
public
RegistryKey
OpenSubKey(String name, RegistryKeyPermissionCheck permissionCheck) {
772
public
RegistryKey
OpenSubKey(String name, RegistryRights rights)
781
public
RegistryKey
OpenSubKey(String name, RegistryKeyPermissionCheck permissionCheck, RegistryRights rights) {
788
private
RegistryKey
InternalOpenSubKey(String name, RegistryKeyPermissionCheck permissionCheck, int rights) {
802
RegistryKey
key = new RegistryKey(result, (permissionCheck == RegistryKeyPermissionCheck.ReadWriteSubTree), false, remoteKey, false, regView);
824
internal
RegistryKey
InternalOpenSubKey(String name, bool writable) {
836
RegistryKey
key = new RegistryKey(result, writable, false, remoteKey, false, regView);
855
public
RegistryKey
OpenSubKey(String name) {
946
public static
RegistryKey
FromHandle(SafeRegistryHandle handle) {
955
public static
RegistryKey
FromHandle(SafeRegistryHandle handle, RegistryView view) {
system\environment.cs (7)
670
using (
RegistryKey
environmentKey =
683
using (
RegistryKey
environmentKey =
843
internal static IDictionary GetRegistryKeyNameValuePairs(
RegistryKey
registryKey) {
868
using (
RegistryKey
environmentKey =
875
using (
RegistryKey
environmentKey =
982
using (
RegistryKey
environmentKey =
1000
using (
RegistryKey
environmentKey =
system\globalization\culturedata.cs (1)
796
Microsoft.Win32.
RegistryKey
key = Microsoft.Win32.Registry.LocalMachine.InternalOpenSubKey(s_RegionKey, false);
system\globalization\hijricalendar.cs (1)
265
Microsoft.Win32.
RegistryKey
key = null;
system\globalization\japanesecalendar.cs (3)
174
RegistryKey
key =
RegistryKey
.GetBaseKey(
RegistryKey
.HKEY_LOCAL_MACHINE).OpenSubKey(c_japaneseErasHive, false);
system\runtime\interopservices\registrationservices.cs (42)
381
using (
RegistryKey
RecordRootKey = Registry.ClassesRoot.CreateSubKey(strRecordRootName))
384
using (
RegistryKey
RecordKey = RecordRootKey.CreateSubKey(strRecordId))
387
using (
RegistryKey
RecordVersionKey = RecordKey.CreateSubKey(strAsmVersion))
427
using (
RegistryKey
TypeNameKey = Registry.ClassesRoot.CreateSubKey(strProgId))
432
using (
RegistryKey
ProgIdClsIdKey = TypeNameKey.CreateSubKey("CLSID"))
440
using (
RegistryKey
ClsIdRootKey = Registry.ClassesRoot.CreateSubKey(strClsIdRootName))
443
using (
RegistryKey
ClsIdKey = ClsIdRootKey.CreateSubKey(strClsId))
448
using (
RegistryKey
InProcServerKey = ClsIdKey.CreateSubKey("InprocServer32"))
459
using (
RegistryKey
VersionSubKey = InProcServerKey.CreateSubKey(strAsmVersion))
471
using (
RegistryKey
ProgIdKey = ClsIdKey.CreateSubKey("ProgId"))
479
using (
RegistryKey
CategoryKey = ClsIdKey.CreateSubKey(strImplementedCategoriesSubKey))
481
using (
RegistryKey
ManagedCategoryKey = CategoryKey.CreateSubKey(strManagedCategoryGuid)) {}
503
using (
RegistryKey
ClsIdRootKey = Registry.ClassesRoot.CreateSubKey(strClsIdRootName))
506
using (
RegistryKey
ClsIdKey = ClsIdRootKey.CreateSubKey(strClsId))
509
using (
RegistryKey
InProcServerKey = ClsIdKey.CreateSubKey("InprocServer32"))
525
using (
RegistryKey
VersionSubKey = InProcServerKey.CreateSubKey(strAsmVersion))
548
using (
RegistryKey
RecordRootKey = Registry.ClassesRoot.OpenSubKey(strRecordRootName, true))
553
using (
RegistryKey
RecordKey = RecordRootKey.OpenSubKey(strRecordId,true))
557
using (
RegistryKey
VersionSubKey = RecordKey.OpenSubKey(strAsmVersion,true))
616
using (
RegistryKey
ClsIdRootKey = Registry.ClassesRoot.OpenSubKey(strClsIdRootName, true))
624
using (
RegistryKey
ClsIdKey = ClsIdRootKey.OpenSubKey(strClsId, true))
632
using (
RegistryKey
InProcServerKey = ClsIdKey.OpenSubKey("InprocServer32", true))
640
using (
RegistryKey
VersionSubKey = InProcServerKey.OpenSubKey(strAsmVersion, true))
692
using (
RegistryKey
ProgIdKey = ClsIdKey.OpenSubKey("ProgId", true))
711
using (
RegistryKey
CategoryKey = ClsIdKey.OpenSubKey(strImplementedCategoriesSubKey, true))
715
using (
RegistryKey
ManagedCategoryKey = CategoryKey.OpenSubKey(strManagedCategoryGuid, true))
752
using (
RegistryKey
TypeNameKey = Registry.ClassesRoot.OpenSubKey(strProgId, true))
764
using (
RegistryKey
ProgIdClsIdKey = TypeNameKey.OpenSubKey("CLSID", true))
803
using (
RegistryKey
ClsIdRootKey = Registry.ClassesRoot.OpenSubKey(strClsIdRootName, true))
808
using (
RegistryKey
ClsIdKey = ClsIdRootKey.OpenSubKey(strClsId, true))
813
using (
RegistryKey
InProcServerKey = ClsIdKey.OpenSubKey("InprocServer32", true))
824
using (
RegistryKey
VersionSubKey = InProcServerKey.OpenSubKey(strAsmVersion,true))
878
using (
RegistryKey
TypeLibRootKey = Registry.ClassesRoot.CreateSubKey(strTlbRootName))
881
using (
RegistryKey
TypeLibKey = TypeLibRootKey.CreateSubKey(strTlbId))
884
using (
RegistryKey
VersionSubKey = TypeLibKey.CreateSubKey(strVersion))
904
using (
RegistryKey
TypeLibRootKey = Registry.ClassesRoot.OpenSubKey(strTlbRootName, true))
909
using (
RegistryKey
TypeLibKey = TypeLibRootKey.OpenSubKey(strTlbId, true))
914
using (
RegistryKey
VersionSubKey = TypeLibKey.OpenSubKey(strVersion, true))
948
using (
RegistryKey
ComponentCategoryKey = Registry.ClassesRoot.CreateSubKey(strComponentCategorySubKey))
951
using (
RegistryKey
ManagedCategoryKey = ComponentCategoryKey.CreateSubKey(strManagedCategoryGuid))
963
using (
RegistryKey
componentCategoryKey = Registry.ClassesRoot.OpenSubKey(strComponentCategorySubKey,
972
using (
RegistryKey
managedCategoryKey = componentCategoryKey.OpenSubKey(strManagedCategoryGuid,
system\runtime\interopservices\typelibconverter.cs (3)
193
using (
RegistryKey
TypeLibKey = Registry.ClassesRoot.OpenSubKey("TypeLib", false))
198
using (
RegistryKey
TypeLibSubKey = TypeLibKey.OpenSubKey(strTlbId))
203
using (
RegistryKey
VersionKey = TypeLibSubKey.OpenSubKey(strVersion, false))
system\security\cryptography\utils.cs (1)
531
using (
RegistryKey
fipsAlgorithmPolicyKey = Registry.LocalMachine.OpenSubKey(@"System\CurrentControlSet\Control\Lsa", false))
system\timezoneinfo.cs (6)
933
using (
RegistryKey
reg = Registry.LocalMachine.OpenSubKey(
1432
using (
RegistryKey
key = Registry.LocalMachine.OpenSubKey(
2310
using (
RegistryKey
dynamicKey = Registry.LocalMachine.OpenSubKey(
2487
using (
RegistryKey
key = Registry.LocalMachine.OpenSubKey(
2682
static private Boolean TryGetLocalizedNamesByRegistryKey(
RegistryKey
key, out String displayName, out String standardName, out String daylightName) {
2772
using (
RegistryKey
key = Registry.LocalMachine.OpenSubKey(
PresentationCore (7)
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (1)
107
using (Microsoft.Win32.
RegistryKey
key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(MS.Internal.RegistryKeys.FRAMEWORK_RegKey))
Core\CSharp\MS\Internal\FontCache\FontSourceCollection.cs (1)
199
using (
RegistryKey
fontsKey = Registry.LocalMachine.OpenSubKey(InstalledWindowsFontsRegistryKey))
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
389
RegistryKey
regkey = Registry.LocalMachine;
390
RegistryKey
recognizerKey = regkey.OpenSubKey(GestureRecognizerPath);
Core\CSharp\System\Windows\Diagnostics\VisualDiagnostics.cs (1)
389
RegistryKey
key = Registry.LocalMachine.OpenSubKey(c_devmodeRegKey);
Core\CSharp\System\Windows\Input\TextCompositionManager.cs (1)
1064
RegistryKey
key;
Shared\MS\Internal\SafeSecurityHelper.cs (1)
379
RegistryKey
featureKey;
PresentationFramework (21)
src\Framework\MS\Internal\AppModel\AssemblyFilter.cs (1)
151
RegistryKey
featureKey;
src\Framework\MS\Internal\IO\Packaging\PackageFilter.cs (7)
529
RegistryKey
iFilterIidKey =
545
private static
RegistryKey
FindSubkey(
RegistryKey
containingKey, string[] keyPath)
547
RegistryKey
currentKey = containingKey;
569
RegistryKey
mimeContentType = FindSubkey(Registry.ClassesRoot, _mimeContentTypeKey);
570
RegistryKey
mimeTypeKey = (mimeContentType == null ? null : mimeContentType.OpenSubKey(contentType.ToString()));
595
RegistryKey
persistentHandlerKey =
src\Framework\System\Windows\Application.cs (1)
2618
using (
RegistryKey
soundKey = Registry.CurrentUser.OpenSubKey(regPath))
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (1)
3763
RegistryKey
rk = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes");
src\Framework\System\Windows\Documents\Serialization\SerializerDescriptor.cs (4)
45
private static string GetNonEmptyRegistryString(
RegistryKey
key, string value)
159
internal void WriteToRegistryKey(
RegistryKey
key)
189
internal static SerializerDescriptor CreateFromRegistry(
RegistryKey
plugIns, string keyName)
197
RegistryKey
key = plugIns.OpenSubKey(keyName);
src\Framework\System\Windows\Documents\Serialization\SerializerProvider.cs (5)
71
RegistryKey
plugIns = _rootKey.CreateSubKey(_registryPath);
112
RegistryKey
plugIns = _rootKey.CreateSubKey(_registryPath);
120
RegistryKey
newPlugIn = plugIns.CreateSubKey(serializerKey);
148
RegistryKey
plugIns = _rootKey.CreateSubKey(_registryPath);
294
private static readonly
RegistryKey
_rootKey = Registry.LocalMachine;
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
454
using (
RegistryKey
lsaKey = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\Lsa"))
src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
379
RegistryKey
featureKey;
SMSvcHost (2)
System\ServiceModel\Activation\SMSvcHost.cs (2)
38
using (
RegistryKey
localMachine = Registry.LocalMachine)
40
using (
RegistryKey
versionKey = localMachine.OpenSubKey(@"Software\Microsoft\InetSTP"))
System (72)
compmod\microsoft\win32\SystemEvents.cs (1)
1043
RegistryKey
key = Registry.LocalMachine.OpenSubKey(string.Format(System.Globalization.CultureInfo.CurrentCulture,
net\System\Net\_DigestClient.cs (1)
747
using (
RegistryKey
lsaKey = Registry.LocalMachine.OpenSubKey(suppressExtendedProtectionKey)) {
net\System\Net\_RegBlobWebProxyDataBuilder.cs (1)
81
RegistryKey
lmKey = null;
net\System\Net\HttpSysSettings.cs (2)
46
RegistryKey
httpSysParameters = Registry.LocalMachine.OpenSubKey(httpSysParametersKey);
72
private static bool ReadRegistryValue(
RegistryKey
key, string valueName, bool defaultValue)
net\System\Net\HybridWebProxyFinder.cs (1)
117
using (
RegistryKey
key = Registry.LocalMachine.OpenSubKey(allowFallbackKey))
net\System\Net\Internal.cs (1)
727
using (
RegistryKey
installTypeKey = Registry.LocalMachine.OpenSubKey(OSInstallTypeRegKey))
net\System\Net\NetRegistryConfiguration.cs (1)
119
using (
RegistryKey
key = Registry.LocalMachine.OpenSubKey(path))
services\monitoring\system\diagnosticts\EventLog.cs (25)
438
RegistryKey
baseKey = null;
439
RegistryKey
eventKey = null;
440
RegistryKey
logKey = null;
441
RegistryKey
sourceLogKey = null;
442
RegistryKey
sourceKey = null;
448
baseKey =
RegistryKey
.OpenRemoteBaseKey(RegistryHive.LocalMachine, machineName);
609
RegistryKey
eventlogkey = null;
624
using (
RegistryKey
logKey = eventlogkey.OpenSubKey(logName)) {
709
RegistryKey
key = null;
816
RegistryKey
eventkey = null;
817
RegistryKey
logKey = null;
839
private static string FindSame8FirstCharsLog(
RegistryKey
keyParent, string logName) {
860
private static
RegistryKey
FindSourceRegistration(string source, string machineName, bool readOnly) {
870
private static
RegistryKey
FindSourceRegistration(string source, string machineName, bool readOnly, bool wantToCreate) {
881
RegistryKey
eventkey = null;
898
RegistryKey
sourceKey = null;
900
RegistryKey
logKey = eventkey.OpenSubKey(logNames[i], /*writable*/!readOnly);
989
RegistryKey
eventkey = null;
1051
internal static
RegistryKey
GetEventLogRegKey(string machine, bool writable) {
1052
RegistryKey
lmkey = null;
1059
lmkey =
RegistryKey
.OpenRemoteBaseKey(RegistryHive.LocalMachine, machine);
1116
using (
RegistryKey
keyFound = FindSourceRegistration(source, machineName, true, wantToCreate)) {
1135
using (
RegistryKey
key = FindSourceRegistration(source, machineName, true)) {
1169
private static void SetSpecialLogRegValues(
RegistryKey
logKey, string logName) {
1199
private static void SetSpecialSourceRegValues(
RegistryKey
sourceLogKey, EventSourceCreationData sourceData) {
services\monitoring\system\diagnosticts\EventLogEntry.cs (4)
469
private static
RegistryKey
GetSourceRegKey(string logName, string source, string machineName) {
470
RegistryKey
eventKey = null;
471
RegistryKey
logKey = null;
501
RegistryKey
regKey = null;
services\monitoring\system\diagnosticts\EventLogInternal.cs (11)
272
RegistryKey
logkey = null;
386
using (
RegistryKey
logkey = GetLogRegKey(currentMachineName, true))
1130
internal static
RegistryKey
GetEventLogRegKey(string machine, bool writable) {
1131
RegistryKey
lmkey = null;
1138
lmkey =
RegistryKey
.OpenRemoteBaseKey(RegistryHive.LocalMachine, machine);
1153
private
RegistryKey
GetLogRegKey(string currentMachineName, bool writable) {
1160
RegistryKey
eventkey = null;
1161
RegistryKey
logkey = null;
1185
RegistryKey
logkey = null;
1263
using (
RegistryKey
logkey = GetLogRegKey(currentMachineName, true))
1356
using (
RegistryKey
logkey = GetLogRegKey(currentMachineName, true)) {
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (13)
451
RegistryKey
serviceParentKey = null;
452
RegistryKey
serviceKey = null;
453
RegistryKey
linkageKey = null;
548
RegistryKey
serviceKey = null;
559
using (
RegistryKey
categoryKey = serviceKey.OpenSubKey(categoryName, true)) {
605
RegistryKey
key = null;
606
RegistryKey
baseKey = null;
631
baseKey =
RegistryKey
.OpenRemoteBaseKey(RegistryHive.LocalMachine, "\\\\" + this.machineName);
896
RegistryKey
libraryParentKey = null;
956
RegistryKey
libraryKey;
966
libraryKey =
RegistryKey
.OpenRemoteBaseKey(RegistryHive.PerformanceData, this.machineName);
1179
private
RegistryKey
perfDataKey = null;
1193
perfDataKey =
RegistryKey
.OpenRemoteBaseKey(RegistryHive.PerformanceData, machineName);
services\monitoring\system\diagnosticts\ProcessStartInfo.cs (1)
294
RegistryKey
key = null;
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (1)
614
RegistryKey
categoryKey = null;
services\monitoring\system\diagnosticts\SharedUtils.cs (7)
220
RegistryKey
baseKey = null;
221
RegistryKey
complusReg = null;
239
baseKey =
RegistryKey
.OpenRemoteBaseKey(RegistryHive.LocalMachine, machineName);
253
RegistryKey
policyKey = complusReg.OpenSubKey("policy");
262
RegistryKey
bestKey = policyKey.OpenSubKey(versionPrefix);
293
RegistryKey
k = policyKey.OpenSubKey(majorVersion);
347
private static int GetLargestBuildNumberFromKey(
RegistryKey
rootKey) {
sys\system\io\ports\SerialPort.cs (2)
671
RegistryKey
baseKey = null;
672
RegistryKey
serialKey = null;
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (1)
145
RegistryKey
validationRegistryKey = Registry.CurrentUser.OpenSubKey(validationKeyPath.ToString());
System.Data (4)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (1)
145
RegistryKey
validationRegistryKey = Registry.CurrentUser.OpenSubKey(validationKeyPath.ToString());
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
2187
using(
RegistryKey
key = Registry.ClassesRoot.OpenSubKey(subkey, false)) {
2207
using(
RegistryKey
key = Registry.LocalMachine.OpenSubKey(subkey, false)) {
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCspProvider.cs (1)
473
RegistryKey
key = Registry.LocalMachine.OpenSubKey(keyName);
System.IdentityModel (2)
System\IdentityModel\SecurityUtils.cs (2)
220
using (
RegistryKey
fipsAlgorithmPolicyKey = Registry.LocalMachine.OpenSubKey(fipsPolicyRegistryKey, false))
272
using (
RegistryKey
securityRegKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\.NETFramework\Security", false))
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\CardSpaceShim.cs (1)
235
using (
RegistryKey
implDllKey = Registry.LocalMachine.OpenSubKey(REDIRECT_DLL_REG_KEY))
System.Management (4)
Instrumentation\WMICapabilities.cs (3)
26
static
RegistryKey
wmiNetKey;
27
static
RegistryKey
wmiKey;
80
RegistryKey
wmiCIMOMKey = Registry.LocalMachine.OpenSubKey(WMICIMOMKeyPath, true);
managementscope.cs (1)
51
RegistryKey
s_switchesRegKey = null;
System.Net (1)
net\PeerToPeer\UnsafePeerToPeerMethods.cs (1)
301
using (
RegistryKey
installTypeKey = Registry.LocalMachine.OpenSubKey(OSInstallTypeRegKey)) {
System.Security (2)
system\security\cryptography\xml\signedxml.cs (1)
746
using (
RegistryKey
stringListKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\.NETFramework\Security\" + subkey, false)) {
system\security\cryptography\xml\utils.cs (1)
486
using (
RegistryKey
securityRegKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\.NETFramework\Security", false)) {
System.ServiceModel (8)
System\ServiceModel\Activation\Iis7Helper.cs (2)
53
using (
RegistryKey
localMachine = Registry.LocalMachine)
55
using (
RegistryKey
versionKey = localMachine.OpenSubKey(subKey))
System\ServiceModel\ComIntegration\TypeCacheManager.cs (4)
70
RegistryKey
interfaceKey = null;
354
using (
RegistryKey
clsidKey = Registry.LocalMachine.OpenSubKey(keyName, false))
358
using (
RegistryKey
assemblyKey = clsidKey.OpenSubKey(typeof(TypeCacheManager).Assembly.ImageRuntimeVersion))
369
using (
RegistryKey
assemblyKeyAny = clsidKey.OpenSubKey(keyName))
System\ServiceModel\Security\SecurityUtils.cs (1)
1178
using (
RegistryKey
channelBindingPolicyKey = Registry.LocalMachine.OpenSubKey(suppressChannelBindingRegistryKey, false))
System\ServiceModel\Security\SecurityUtilsEx.cs (1)
58
using (
RegistryKey
fipsAlgorithmPolicyKey = Registry.LocalMachine.OpenSubKey(fipsPolicyRegistryKey, false))
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\MetabaseSettings.cs (1)
481
using (
RegistryKey
registryKey = Registry.LocalMachine.OpenSubKey(IISConstants.CBTRegistryHKLMPath))
System.Web (4)
Compilation\MultiTargetingUtil.cs (1)
249
var
baseKey = Registry.LocalMachine.OpenSubKey(path);
Util\AspCompat.cs (1)
306
RegistryKey
regKey = null;
Util\Misc.cs (2)
154
internal static
RegistryKey
OpenAspNetRegKey(string subKey) {
183
using (
RegistryKey
regKey = OpenAspNetRegKey(subKey)) {
System.Windows.Forms (19)
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (1)
1124
RegistryKey
key = Registry.CurrentUser.OpenSubKey(wintrustPolicyFlagsRegPath);
winforms\Managed\System\WinForms\Application.cs (3)
178
public static
RegistryKey
CommonAppDataRegistry {
206
RegistryKey
key = Registry.LocalMachine.OpenSubKey(CommonAppDataRegistryKeyName);
718
public static
RegistryKey
UserAppDataRegistry {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\IComPropertyBrowser.cs (2)
55
void LoadState(
RegistryKey
key);
60
void SaveState(
RegistryKey
key);
winforms\Managed\System\WinForms\InputLanguage.cs (5)
194
RegistryKey
key = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\Keyboard Layouts\\" + keyName);
211
RegistryKey
substitutions = Registry.CurrentUser.OpenSubKey("Keyboard Layout\\Substitutes");
232
RegistryKey
layouts = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\Keyboard Layouts");
241
RegistryKey
key = layouts.OpenSubKey(encoding);
266
RegistryKey
key = layouts.OpenSubKey(encoding);
winforms\Managed\System\WinForms\LinkUtilities.cs (2)
41
RegistryKey
key = Registry.CurrentUser.OpenSubKey(IESettingsRegPath);
133
RegistryKey
key = null;
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
211
RegistryKey
key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\.NETFramework");
winforms\Managed\System\WinForms\NativeWindow.cs (1)
499
RegistryKey
debugKey = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\.NETFramework");
winforms\Managed\System\WinForms\PropertyGrid.cs (2)
2680
void IComPropertyBrowser.LoadState(
RegistryKey
optRoot) {
4221
void IComPropertyBrowser.SaveState(
RegistryKey
optRoot) {
winforms\Managed\System\WinForms\TrustManager.cs (2)
256
RegistryKey
key = Registry.ClassesRoot.OpenSubKey("http\\shell\\open\\command");
787
using (
RegistryKey
key = Registry.LocalMachine.OpenSubKey(PromptingLevelKeyName))
System.Workflow.Activities (5)
Common\CompModHelpers.cs (5)
70
using (
RegistryKey
userRegistryKey = Application.UserAppDataRegistry)
567
using (
RegistryKey
key = Registry.LocalMachine.OpenSubKey(ProductRootRegKey))
615
using (
RegistryKey
key = Registry.LocalMachine.OpenSubKey(ProductRootRegKey30))
801
RegistryKey
referenceKey = Registry.CurrentUser.OpenSubKey(TypeProviderRegistryKeyPath);
844
RegistryKey
referenceKey = Registry.CurrentUser.CreateSubKey(TypeProviderRegistryKeyPath);
System.Workflow.ComponentModel (11)
AuthoringOM\Compiler\CompileXomlTask.cs (2)
457
RegistryKey
ndpSetupKey = null;
886
RegistryKey
winoeKey = Registry.LocalMachine.OpenSubKey(Helpers.ProductRootRegKey);
AuthoringOM\Design\Themes.cs (2)
340
RegistryKey
themeKey = Registry.CurrentUser.OpenSubKey(WorkflowTheme.RegistryKeyPath);
384
RegistryKey
themeKey = Registry.CurrentUser.CreateSubKey(WorkflowTheme.RegistryKeyPath);
AuthoringOM\Design\WorkflowPrinting.cs (2)
437
RegistryKey
key = Registry.CurrentUser.OpenSubKey(WinOEPrintingSubKey);
487
RegistryKey
key = Registry.CurrentUser.CreateSubKey(WinOEPrintingSubKey);
Shared\CompModHelpers.cs (5)
68
using (
RegistryKey
userRegistryKey = Application.UserAppDataRegistry)
565
using (
RegistryKey
key = Registry.LocalMachine.OpenSubKey(ProductRootRegKey))
613
using (
RegistryKey
key = Registry.LocalMachine.OpenSubKey(ProductRootRegKey30))
799
RegistryKey
referenceKey = Registry.CurrentUser.OpenSubKey(TypeProviderRegistryKeyPath);
842
RegistryKey
referenceKey = Registry.CurrentUser.CreateSubKey(TypeProviderRegistryKeyPath);
System.Workflow.Runtime (2)
DebugEngine\DebugController.cs (1)
482
RegistryKey
debugEngineSubKey = Registry.LocalMachine.OpenSubKey(RegistryKeys.DebuggerSubKey);
DebugEngine\DebugControllerThread.cs (1)
100
RegistryKey
debugEngineSubKey = Registry.LocalMachine.OpenSubKey(RegistryKeys.DebuggerSubKey);
System.Xml (4)
System\Xml\Core\XmlReaderSettings.cs (2)
745
private static bool ReadSettingsFromRegistry(
RegistryKey
hive, ref bool value)
752
using (
RegistryKey
xmlRegKey = hive.OpenSubKey(regValuePath, false))
System\Xml\XmlQualifiedName.cs (2)
197
private static bool ReadBoolFromXmlRegistrySettings(
RegistryKey
hive, string regValueName, ref bool value) {
200
using (
RegistryKey
xmlRegKey = hive.OpenSubKey(regValuePath, false)) {
WindowsBase (15)
Base\MS\Internal\IO\Packaging\CustomSignedXml.cs (1)
228
using (
RegistryKey
securityRegKey = Registry.LocalMachine.OpenSubKey(_NetFxSecurityKey, false))
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (1)
953
RegistryKey
key = Registry.LocalMachine.OpenSubKey(_passportActivationRegistryKeyName);
Base\System\Windows\BaseCompatibilityPreferences.cs (1)
251
using (
var
regKey = Registry.CurrentUser.OpenSubKey(WpfPackagingSubKeyPath, RegistryKeyPermissionCheck.ReadSubTree))
Shared\MS\Internal\Invariant.cs (1)
300
RegistryKey
key;
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (1)
560
RegistryKey
userProfileKey = null;
Shared\MS\Internal\SecurityHelper.cs (2)
1391
static internal object ReadRegistryValue(
RegistryKey
baseRegistryKey, string keyName, string valueName )
1398
RegistryKey
key = baseRegistryKey.OpenSubKey(keyName);
Shared\MS\Internal\TextServicesLoader.cs (8)
209
RegistryKey
key;
242
private static EnableState SingleTIPWantsToRun(
RegistryKey
keyLocalMachine, string subKeyName, bool localMachine)
272
private static EnableState IsLangidEnabled(
RegistryKey
key, string subKeyName, bool localMachine)
282
private static EnableState IsAssemblyEnabled(
RegistryKey
key, string subKeyName, bool localMachine)
284
RegistryKey
subKey;
308
private static EnableState IterateSubKeys(
RegistryKey
keyBase, string subKey, IterateHandler handler, bool localMachine)
310
RegistryKey
key;
379
private delegate EnableState IterateHandler(
RegistryKey
key, string subKeyName, bool localMachine);
WsatConfig (1)
Configuration\StdRegProviderWrapper.cs (1)
334
RegistryKey
regKey;
WsatUI (3)
Configuration\RegistryHelper.cs (2)
40
RegistryKey
regKey = Registry.LocalMachine.OpenSubKey(
86
RegistryKey
regKey = Registry.LocalMachine.OpenSubKey(
Configuration\StdRegProviderWrapper.cs (1)
334
RegistryKey
regKey;