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