66 references to OpenSubKey
mscorlib (30)
microsoft\win32\registrykey.cs (1)
856
return
OpenSubKey
(name, false);
system\environment.cs (6)
671
Registry.LocalMachine.
OpenSubKey
(@"System\CurrentControlSet\Control\Session Manager\Environment", false)) {
684
Registry.CurrentUser.
OpenSubKey
("Environment", false)) {
869
Registry.LocalMachine.
OpenSubKey
(@"System\CurrentControlSet\Control\Session Manager\Environment", false)) {
876
Registry.CurrentUser.
OpenSubKey
("Environment", false)) {
983
Registry.LocalMachine.
OpenSubKey
(@"System\CurrentControlSet\Control\Session Manager\Environment", true)) {
1001
Registry.CurrentUser.
OpenSubKey
("Environment", true)) {
system\globalization\japanesecalendar.cs (1)
174
RegistryKey key = RegistryKey.GetBaseKey(RegistryKey.HKEY_LOCAL_MACHINE).
OpenSubKey
(c_japaneseErasHive, false);
system\runtime\interopservices\registrationservices.cs (19)
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))
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))
system\runtime\interopservices\typelibconverter.cs (2)
193
using (RegistryKey TypeLibKey = Registry.ClassesRoot.
OpenSubKey
("TypeLib", false))
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 (17)
services\monitoring\system\diagnosticts\EventLog.cs (6)
450
eventKey = baseKey.
OpenSubKey
("SYSTEM\\CurrentControlSet\\Services\\EventLog", true);
462
logKey = eventKey.
OpenSubKey
(logName, true);
824
logKey = eventkey.
OpenSubKey
(logName, false); // try to find log file key immediately.
900
RegistryKey logKey = eventkey.
OpenSubKey
(logNames[i], /*writable*/!readOnly);
902
sourceKey = logKey.
OpenSubKey
(source, /*writable*/!readOnly);
1063
return lmkey.
OpenSubKey
(EventLogKey, writable);
services\monitoring\system\diagnosticts\EventLogEntry.cs (3)
478
logKey = eventKey.
OpenSubKey
("Application", /*writable*/false);
480
logKey = eventKey.
OpenSubKey
(logName, /*writable*/false);
483
return logKey.
OpenSubKey
(source, /*writable*/false);
services\monitoring\system\diagnosticts\EventLogInternal.cs (2)
1142
return lmkey.
OpenSubKey
(EventLogKey, writable);
1168
logkey = eventkey.
OpenSubKey
(logname, writable);
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (5)
461
serviceParentKey = Registry.LocalMachine.
OpenSubKey
(ServicePath, true);
463
serviceKey = serviceParentKey.
OpenSubKey
(categoryName + "\\Performance", true);
481
linkageKey = serviceParentKey.
OpenSubKey
(categoryName + "\\Linkage" , true);
556
serviceKey = Registry.LocalMachine.
OpenSubKey
(ServicePath, true);
559
using (RegistryKey categoryKey = serviceKey.
OpenSubKey
(categoryName, true)) {
sys\system\io\ports\SerialPort.cs (1)
682
serialKey = baseKey.
OpenSubKey
(@"HARDWARE\DEVICEMAP\SERIALCOMM", false);
System.Data (2)
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)) {
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.Management (3)
Instrumentation\WMICapabilities.cs (3)
32
wmiNetKey = Registry.LocalMachine.
OpenSubKey
(WMINetKeyPath, false);
33
wmiKey = Registry.LocalMachine.
OpenSubKey
(WMIKeyPath, false);
80
RegistryKey wmiCIMOMKey = Registry.LocalMachine.
OpenSubKey
(WMICIMOMKeyPath, true);
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 (5)
System\ServiceModel\ComIntegration\TypeCacheManager.cs (3)
77
interfaceKey = Registry.LocalMachine.
OpenSubKey
(keyName, false);
82
interfaceKey = Registry.ClassesRoot.
OpenSubKey
(keyName, false);
354
using (RegistryKey clsidKey = Registry.LocalMachine.
OpenSubKey
(keyName, false))
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.Xml (2)
System\Xml\Core\XmlReaderSettings.cs (1)
752
using (RegistryKey xmlRegKey = hive.
OpenSubKey
(regValuePath, false))
System\Xml\XmlQualifiedName.cs (1)
200
using (RegistryKey xmlRegKey = hive.
OpenSubKey
(regValuePath, false)) {
WindowsBase (3)
Base\MS\Internal\IO\Packaging\CustomSignedXml.cs (1)
228
using (RegistryKey securityRegKey = Registry.LocalMachine.
OpenSubKey
(_NetFxSecurityKey, false))
Shared\MS\Internal\TextServicesLoader.cs (2)
218
key = Registry.CurrentUser.
OpenSubKey
("Software\\Microsoft\\CTF", false);
314
key = keyBase.
OpenSubKey
(subKey, false);