76 references to OpenSubKey
dotnet (2)
Telemetry\DevDeviceIDGetter.cs (1)
44using (var key = RegistryKey.OpenBaseKey(RegistryHive.CurrentUser, RegistryView.Registry64).OpenSubKey(@"SOFTWARE\Microsoft\DeveloperTools"))
Telemetry\DockerContainerDetectorForTelemetry.cs (1)
20= Registry.LocalMachine.OpenSubKey("System\\CurrentControlSet\\Control"))
Microsoft.AspNetCore.DataProtection (1)
RegistryPolicyResolver.cs (1)
30_getPolicyRegKey = () => Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\DotNetPackages\Microsoft.AspNetCore.DataProtection");
Microsoft.Build.Framework (3)
EncodingUtilities.cs (1)
307using RegistryKey? windowsVersionRegistry = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
NativeMethods.cs (2)
345using (RegistryKey fileSystemKey = Registry.LocalMachine.OpenSubKey(WINDOWS_FILE_SYSTEM_REGISTRY_KEY)) 398using (RegistryKey policyKey = Registry.LocalMachine.OpenSubKey(WINDOWS_SAC_REGISTRY_KEY))
Microsoft.Build.Tasks.Core (10)
BootstrapperUtil\Util.cs (3)
173RegistryKey bootstrapperBaseRegKey = Registry.LocalMachine.OpenSubKey(BOOTSTRAPPER_REGISTRY_PATH_BASE); 176bootstrapperBaseRegKey = Registry.LocalMachine.OpenSubKey(BOOTSTRAPPER_WOW64_REGISTRY_PATH_BASE); 181RegistryKey additionalPackagePathsRegKey = bootstrapperBaseRegKey.OpenSubKey(BOOTSTRAPPER_REGISTRY_ADDITIONAL_PACKAGE_PATHS_KEYNAME);
ManifestUtil\ComImporter.cs (5)
191using (RegistryKey userKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\CLASSES\\CLSID")) 199using (RegistryKey machineKey = Registry.ClassesRoot.OpenSubKey("CLSID")) 212using (RegistryKey clsidKey = classesRootKey.OpenSubKey("CLSID")) 233RegistryKey classKey = rootKey.OpenSubKey(sclsid); 247RegistryKey subKey = classKey.OpenSubKey(subKeyName);
src\msbuild\src\Shared\RegistryHelper.cs (2)
26using (RegistryKey? subKey = baseKey.OpenSubKey(subkey)) 47using (RegistryKey? key = baseKey.OpenSubKey(subkey))
Microsoft.Build.Utilities.Core (3)
src\msbuild\src\Shared\RegistryHelper.cs (2)
26using (RegistryKey? subKey = baseKey.OpenSubKey(subkey)) 47using (RegistryKey? key = baseKey.OpenSubKey(subkey))
ToolLocationHelper.cs (1)
2734using (RegistryKey versionKey = baseKey.OpenSubKey(platformSDKsRegistryKey))
Microsoft.DotNet.Cli.Utils (5)
DependencyProvider.cs (4)
165using RegistryKey? dependentsKey = BaseKey.OpenSubKey(DependentsKeyPath); 177using RegistryKey? providerKey = BaseKey.OpenSubKey(ProviderKeyPath); 186using RegistryKey? dependenciesKey = baseKey.OpenSubKey(DependenciesKeyRelativePath); 190using RegistryKey? providerKey = dependenciesKey?.OpenSubKey(providerKeyName);
UILanguageOverride.cs (1)
134using RegistryKey? windowsVersionRegistry = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
Microsoft.Extensions.AI.Evaluation.Console (1)
Telemetry\DeviceIdHelper.cs (1)
73using RegistryKey? key = baseKey.OpenSubKey(RegistryKeyPath);
Microsoft.TestPlatform.CoreUtilities (1)
Helpers\WindowsRegistryHelper.cs (1)
35var keyRegistry = _registryKey.OpenSubKey(name);
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
Microsoft.Win32.Registry (1)
Microsoft\Win32\Registry.cs (1)
71using (RegistryKey? key = basekey.OpenSubKey(subKeyName))
PresentationCore (6)
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
298RegistryKey recognizerKey = regkey.OpenSubKey(GestureRecognizerPath);
System\Windows\Diagnostics\VisualDiagnostics.cs (1)
343RegistryKey key = Registry.LocalMachine.OpenSubKey(c_devmodeRegKey);
System\Windows\Input\Stylus\Common\StylusLogic.cs (2)
333stylusKey = Registry.CurrentUser.OpenSubKey(WispPenSystemEventParametersKey); 347touchKey = Registry.CurrentUser.OpenSubKey(WispTouchConfigKey);
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (1)
99key = Registry.ClassesRoot.OpenSubKey(subkeyToOpen);
System\Windows\Input\TextCompositionManager.cs (1)
903RegistryKey key = Registry.CurrentUser.OpenSubKey("Control Panel\\Input Method");
PresentationFramework (7)
MS\Internal\IO\Packaging\PackageFilter.cs (2)
539currentKey = currentKey.OpenSubKey(keyPath[keyNameIndex]); 554RegistryKey mimeTypeKey = (mimeContentType?.OpenSubKey(contentType.ToString()));
System\Windows\Application.cs (1)
2294using (RegistryKey soundKey = Registry.CurrentUser.OpenSubKey(regPath))
System\Windows\Documents\RtfToXamlReader.cs (1)
3708RegistryKey rk = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes");
System\Windows\Documents\Serialization\SerializerDescriptor.cs (1)
158RegistryKey key = plugIns.OpenSubKey(keyName);
System\Windows\Documents\Serialization\SerializerProvider.cs (2)
77if (!overwrite && plugIns.OpenSubKey(serializerKey) != null) 103if (plugIns.OpenSubKey(serializerKey) == null)
PresentationUI (2)
MS\Internal\Documents\RightsManagementProvider.cs (1)
393using (RegistryKey defaultRMKey = Registry.CurrentUser.OpenSubKey(
MS\Internal\Documents\RMPublishingDialog.cs (1)
324using (RegistryKey defaultRMKey = Registry.CurrentUser.OpenSubKey(
System.Diagnostics.EventLog (5)
src\runtime\src\libraries\Common\src\System\Diagnostics\NetFrameworkUtils.cs (4)
136complusReg = baseKey.OpenSubKey("SOFTWARE\\Microsoft\\.NETFramework"); 147RegistryKey? policyKey = complusReg.OpenSubKey("policy"); 157RegistryKey? bestKey = policyKey.OpenSubKey(versionPrefix); 197RegistryKey? k = policyKey.OpenSubKey(majorVersion);
System\Diagnostics\EventLog.cs (1)
386using (RegistryKey? logKey = eventlogkey.OpenSubKey(logName))
System.Diagnostics.PerformanceCounter (8)
src\runtime\src\libraries\Common\src\System\Diagnostics\NetFrameworkUtils.cs (4)
136complusReg = baseKey.OpenSubKey("SOFTWARE\\Microsoft\\.NETFramework"); 147RegistryKey? policyKey = complusReg.OpenSubKey("policy"); 157RegistryKey? bestKey = policyKey.OpenSubKey(versionPrefix); 197RegistryKey? k = policyKey.OpenSubKey(majorVersion);
System\Diagnostics\PerformanceCounterLib.cs (3)
676key = Registry.LocalMachine.OpenSubKey(keyPath); 685key = baseKey.OpenSubKey(keyPath); 970using RegistryKey libraryParentKey = Registry.LocalMachine.OpenSubKey(PerflibPath);
System\Diagnostics\SharedPerformanceCounter.cs (1)
636categoryKey = Registry.LocalMachine.OpenSubKey(PerformanceCounterLib.ServicePath + "\\" + _categoryName + "\\Performance");
System.Management (2)
System\Management\ManagementScope.cs (2)
49s_switchesRegKey = Registry.LocalMachine.OpenSubKey(RegKeyLocation); 292RegistryKey netFrameworkSubKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\.NETFramework\");
System.Windows.Forms (7)
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (2)
29RegistryKey? key = Registry.CurrentUser.OpenSubKey(IESettingsRegPath); 131key = Registry.CurrentUser.OpenSubKey(IEMainRegPath);
System\Windows\Forms\Input\InputLanguage.cs (5)
110using RegistryKey? key = Registry.LocalMachine.OpenSubKey($@"{KeyboardLayoutsRegistryPath}\{LayoutId}"); 147using RegistryKey? key = Registry.LocalMachine.OpenSubKey(KeyboardLayoutsRegistryPath); 153using RegistryKey? subKey = key.OpenSubKey(subKeyName); 214using RegistryKey? key = Registry.CurrentUser.OpenSubKey(UserProfileRegistryPath); 219using RegistryKey? subKey = key.OpenSubKey(language);
System.Windows.Forms.Design (9)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
297using RegistryKey? regkey = Registry.LocalMachine.OpenSubKey(
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (6)
47using RegistryKey? key = Registry.ClassesRoot.OpenSubKey(controlKey); 50using RegistryKey? verKey = key?.OpenSubKey("Version"); 248using RegistryKey? key = Registry.ClassesRoot.OpenSubKey(controlKey) 255using RegistryKey? tlbKey = key.OpenSubKey("TypeLib"); 260using RegistryKey? verKey = key.OpenSubKey("Version"); 302using RegistryKey? inprocServerKey = key.OpenSubKey("InprocServer32");
System\Windows\Forms\Design\DocumentDesigner.cs (2)
758key = Registry.ClassesRoot.OpenSubKey(controlKey); 767designtimeKey = Registry.ClassesRoot.OpenSubKey(category);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
239using RegistryKey? key = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Accessibility");