54 references to OpenSubKey
IIS.FunctionalTests (1)
src\Shared\TransportTestHelpers\HttpSysHttp3SupportedAttribute.cs (1)
28using var key = Registry.LocalMachine.OpenSubKey(@"SYSTEM\CurrentControlSet\services\HTTP\Parameters");
Microsoft.AspNetCore.DataProtection (1)
RegistryPolicyResolver.cs (1)
30_getPolicyRegKey = () => Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\DotNetPackages\Microsoft.AspNetCore.DataProtection");
Microsoft.AspNetCore.InternalTesting.Tests (4)
MaximumOSVersionTest.cs (2)
42var versionKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion"); 55var versionKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
MinimumOSVersionTest.cs (2)
41var versionKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion"); 54var versionKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\TransportTestHelpers\HttpSysHttp3SupportedAttribute.cs (1)
28using var key = Registry.LocalMachine.OpenSubKey(@"SYSTEM\CurrentControlSet\services\HTTP\Parameters");
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
src\SignalR\common\Shared\TestCertificates.cs (1)
18var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
Microsoft.Build (2)
FrameworkLocationHelper.cs (1)
1110using (RegistryKey subKey = baseKey.OpenSubKey(registryBaseKeyName))
Utilities\RegistryKeyWrapper.cs (1)
211_wrappedKey = _registryHive.OpenSubKey(_registryKeyPath);
Microsoft.Build.CommandLine.UnitTests (2)
RegistryHelper.cs (2)
26using (RegistryKey? subKey = baseKey.OpenSubKey(subkey)) 47using (RegistryKey? key = baseKey.OpenSubKey(subkey))
Microsoft.Build.Engine (3)
Engine\RegistryKeyWrapper.cs (1)
211wrappedKey = registryHive.OpenSubKey(registryKeyPath);
Shared\FrameworkLocationHelper.cs (1)
430.OpenSubKey(registryBaseKeyName);
Solution\VCWrapperProject.cs (1)
308using (RegistryKey subKey = root.OpenSubKey(subKeyName))
Microsoft.Build.Framework (2)
EncodingUtilities.cs (1)
305using RegistryKey? windowsVersionRegistry = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
NativeMethods.cs (1)
612using (RegistryKey fileSystemKey = Registry.LocalMachine.OpenSubKey(WINDOWS_FILE_SYSTEM_REGISTRY_KEY))
Microsoft.Build.Tasks.Core (10)
BootstrapperUtil\Util.cs (3)
168RegistryKey bootstrapperBaseRegKey = Registry.LocalMachine.OpenSubKey(BOOTSTRAPPER_REGISTRY_PATH_BASE); 171bootstrapperBaseRegKey = Registry.LocalMachine.OpenSubKey(BOOTSTRAPPER_WOW64_REGISTRY_PATH_BASE); 176RegistryKey additionalPackagePathsRegKey = bootstrapperBaseRegKey.OpenSubKey(BOOTSTRAPPER_REGISTRY_ADDITIONAL_PACKAGE_PATHS_KEYNAME);
ManifestUtil\ComImporter.cs (5)
171using (RegistryKey userKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\CLASSES\\CLSID")) 179using (RegistryKey machineKey = Registry.ClassesRoot.OpenSubKey("CLSID")) 192using (RegistryKey clsidKey = classesRootKey.OpenSubKey("CLSID")) 213RegistryKey classKey = rootKey.OpenSubKey(sclsid); 227RegistryKey subKey = classKey.OpenSubKey(subKeyName);
RegistryHelper.cs (2)
26using (RegistryKey? subKey = baseKey.OpenSubKey(subkey)) 47using (RegistryKey? key = baseKey.OpenSubKey(subkey))
Microsoft.Build.Utilities.Core (3)
RegistryHelper.cs (2)
26using (RegistryKey? subKey = baseKey.OpenSubKey(subkey)) 47using (RegistryKey? key = baseKey.OpenSubKey(subkey))
ToolLocationHelper.cs (1)
2728using (RegistryKey versionKey = baseKey.OpenSubKey(platformSDKsRegistryKey))
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\Interaction.vb (2)
366rk = Registry.CurrentUser.OpenSubKey(sAppSect) 427rk = Registry.CurrentUser.OpenSubKey(sAppSect) 'By default, does not request write permission
MSBuildTaskHost (1)
NativeMethods.cs (1)
612using (RegistryKey fileSystemKey = Registry.LocalMachine.OpenSubKey(WINDOWS_FILE_SYSTEM_REGISTRY_KEY))
PresentationCore (8)
MS\Internal\FontCache\FontSourceCollection.cs (1)
142using (RegistryKey fontsKey = Registry.LocalMachine.OpenSubKey(InstalledWindowsFontsRegistryKey))
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
320RegistryKey recognizerKey = regkey.OpenSubKey(GestureRecognizerPath);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
331featureKey = Registry.LocalMachine.OpenSubKey(RegistryKeys.WPF_Features);
System\Windows\Diagnostics\VisualDiagnostics.cs (1)
349RegistryKey key = Registry.LocalMachine.OpenSubKey(c_devmodeRegKey);
System\Windows\Input\Stylus\Common\StylusLogic.cs (2)
351stylusKey = Registry.CurrentUser.OpenSubKey(WispPenSystemEventParametersKey); 365touchKey = Registry.CurrentUser.OpenSubKey(WispTouchConfigKey);
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (1)
106key = Registry.ClassesRoot.OpenSubKey(subkeyToOpen);
System\Windows\Input\TextCompositionManager.cs (1)
904key = Registry.CurrentUser.OpenSubKey("Control Panel\\Input Method");
PresentationFramework (10)
MS\Internal\AppModel\AssemblyFilter.cs (2)
80featureKey = Registry.LocalMachine.OpenSubKey(KILL_BIT_REGISTRY_LOCATION); 89featureKey = Registry.LocalMachine.OpenSubKey($@"{KILL_BIT_REGISTRY_LOCATION}\{assemblyName}");
MS\Internal\IO\Packaging\PackageFilter.cs (2)
548currentKey = currentKey.OpenSubKey(keyPath[keyNameIndex]); 563RegistryKey mimeTypeKey = (mimeContentType == null ? null : mimeContentType.OpenSubKey(contentType.ToString()));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
331featureKey = Registry.LocalMachine.OpenSubKey(RegistryKeys.WPF_Features);
System\Windows\Application.cs (1)
2290using (RegistryKey soundKey = Registry.CurrentUser.OpenSubKey(regPath))
System\Windows\Documents\RtfToXamlReader.cs (1)
3704RegistryKey rk = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes");
System\Windows\Documents\Serialization\SerializerDescriptor.cs (1)
163RegistryKey key = plugIns.OpenSubKey(keyName);
System\Windows\Documents\Serialization\SerializerProvider.cs (2)
92if (!overwrite && plugIns.OpenSubKey(serializerKey) != null) 118if (plugIns.OpenSubKey(serializerKey) == null)
PresentationUI (2)
MS\Internal\Documents\RightsManagementProvider.cs (1)
398using (RegistryKey defaultRMKey = Registry.CurrentUser.OpenSubKey(
MS\Internal\Documents\RMPublishingDialog.cs (1)
332using (RegistryKey defaultRMKey = Registry.CurrentUser.OpenSubKey(
SignalR.Client.FunctionalTestApp (1)
src\SignalR\common\Shared\TestCertificates.cs (1)
18var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");