87 references to Registry
dotnet-aot (3)
parent\dotnet\Commands\Workload\Install\WorkloadInstallRecords\ReadOnlyWindowsWorkloadInstallationRecordRepository.cs (1)
21: this(Registry.LocalMachine, @$"SOFTWARE\Microsoft\dotnet\InstalledWorkloads\Standalone\{s_hostArchitecture}")
parent\dotnet\Telemetry\DockerContainerDetectorForTelemetry.cs (1)
20= Registry.LocalMachine.OpenSubKey("System\\CurrentControlSet\\Control"))
parent\dotnet\Telemetry\ExternalTelemetryProperties.cs (1)
31return (string?)Registry.GetValue(Key, ValueName, defaultValue: "");
Microsoft.AspNetCore.DataProtection (1)
RegistryPolicyResolver.cs (1)
30_getPolicyRegKey = () => Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\DotNetPackages\Microsoft.AspNetCore.DataProtection");
Microsoft.Build (3)
Evaluation\Expander.PropertyExpander.cs (1)
734object valueFromRegistry = Registry.GetValue(registryKeyName, valueName, null /* default if key or value name is not found */);
Evaluation\IntrinsicFunctions.cs (2)
210return Registry.GetValue(keyName, valueName, null /* null to match the $(Regsitry:XYZ@ZBC) behaviour */); 226return Registry.GetValue(keyName, valueName, defaultValue);
Microsoft.Build.Framework (3)
EncodingUtilities.cs (1)
307using RegistryKey? windowsVersionRegistry = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
NativeMethods.cs (2)
348using (RegistryKey fileSystemKey = Registry.LocalMachine.OpenSubKey(WINDOWS_FILE_SYSTEM_REGISTRY_KEY)) 401using (RegistryKey policyKey = Registry.LocalMachine.OpenSubKey(WINDOWS_SAC_REGISTRY_KEY))
Microsoft.Build.Tasks.Core (9)
BootstrapperUtil\Util.cs (8)
157string p = ReadRegistryString(Registry.LocalMachine, String.Concat(BOOTSTRAPPER_REGISTRY_PATH_BASE, BOOTSTRAPPER_REGISTRY_PATH_VERSION_VS2010), REGISTRY_DEFAULTPATH); 163p = ReadRegistryString(Registry.LocalMachine, String.Concat(BOOTSTRAPPER_WOW64_REGISTRY_PATH_BASE, BOOTSTRAPPER_REGISTRY_PATH_VERSION_VS2010), REGISTRY_DEFAULTPATH); 167string defaultPath = ReadRegistryString(Registry.LocalMachine, BOOTSTRAPPER_REGISTRY_PATH_BASE, REGISTRY_DEFAULTPATH); 173defaultPath = ReadRegistryString(Registry.LocalMachine, BOOTSTRAPPER_WOW64_REGISTRY_PATH_BASE, REGISTRY_DEFAULTPATH); 179defaultPath = ReadRegistryString(Registry.LocalMachine, String.Concat(BOOTSTRAPPER_REGISTRY_PATH_BASE, normalizedVersion), REGISTRY_DEFAULTPATH); 185defaultPath = ReadRegistryString(Registry.LocalMachine, String.Concat(BOOTSTRAPPER_WOW64_REGISTRY_PATH_BASE, normalizedVersion), REGISTRY_DEFAULTPATH); 198RegistryKey bootstrapperBaseRegKey = Registry.LocalMachine.OpenSubKey(BOOTSTRAPPER_REGISTRY_PATH_BASE); 201bootstrapperBaseRegKey = Registry.LocalMachine.OpenSubKey(BOOTSTRAPPER_WOW64_REGISTRY_PATH_BASE);
ManifestUtil\Util.cs (1)
279RegistryKey key = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", false);
Microsoft.DotNet.Cli.Utils (5)
DependencyProvider.cs (4)
105BaseKey = AllUsers ? Registry.LocalMachine : Registry.CurrentUser; 185var baseKey = allUsers ? Registry.LocalMachine : Registry.CurrentUser;
UILanguageOverride.cs (1)
134using RegistryKey? windowsVersionRegistry = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (1)
parent\parent\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\ReadOnlyWindowsWorkloadInstallationRecordRepository.cs (1)
21: this(Registry.LocalMachine, @$"SOFTWARE\Microsoft\dotnet\InstalledWorkloads\Standalone\{s_hostArchitecture}")
Microsoft.VisualBasic.Forms (9)
Microsoft\VisualBasic\MyServices\RegistryProxy.vb (9)
23Return Registry.ClassesRoot 29Return Registry.CurrentConfig 35Return Registry.CurrentUser 41Return Registry.LocalMachine 47Return Registry.PerformanceData 53Return Registry.Users 60Return Registry.GetValue(keyName, valueName, defaultValue) 64Registry.SetValue(keyName, valueName, value) 73Registry.SetValue(keyName, valueName, value, valueKind)
mscorlib (1)
parent\ref\mscorlib.cs (1)
12[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.Registry))]
PresentationCore (7)
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
297RegistryKey regkey = Registry.LocalMachine;
System\Windows\Diagnostics\VisualDiagnostics.cs (1)
343RegistryKey key = Registry.LocalMachine.OpenSubKey(c_devmodeRegKey);
System\Windows\Input\Stylus\Common\StylusLogic.cs (3)
285result = ((int)(Registry.CurrentUser.OpenSubKey(WpfPointerKey, RegistryKeyPermissionCheck.ReadSubTree)?.GetValue(WpfPointerValue, 0) ?? 0)) == 1; 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 (8)
MS\Internal\IO\Packaging\PackageFilter.cs (3)
515Registry.ClassesRoot, 553RegistryKey mimeContentType = FindSubkey(Registry.ClassesRoot, _mimeContentTypeKey); 581Registry.ClassesRoot,
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\SerializerProvider.cs (1)
221private static readonly RegistryKey _rootKey = Registry.LocalMachine;
System\Windows\ThemeManager.cs (2)
456var useLightTheme = Registry.GetValue(RegPersonalizeKeyPath, 461useLightTheme = Registry.GetValue(RegPersonalizeKeyPath,
PresentationUI (3)
MS\Internal\Documents\RightsManagementProvider.cs (2)
393using (RegistryKey defaultRMKey = Registry.CurrentUser.OpenSubKey( 461using (RegistryKey defaultRMKey = Registry.CurrentUser.CreateSubKey(
MS\Internal\Documents\RMPublishingDialog.cs (1)
324using (RegistryKey defaultRMKey = Registry.CurrentUser.OpenSubKey(
System.Data.OleDb (2)
System\Data\Common\AdapterUtil.cs (2)
1098using (RegistryKey? key = Registry.ClassesRoot.OpenSubKey(subkey, false)) 1116using (RegistryKey? key = Registry.LocalMachine.OpenSubKey(subkey, false))
System.Diagnostics.EventLog (4)
src\runtime\src\libraries\Common\src\System\Diagnostics\NetFrameworkUtils.cs (1)
129baseKey = Registry.LocalMachine;
System\Diagnostics\EventLog.cs (2)
288baseKey = Registry.LocalMachine; 679lmkey = Registry.LocalMachine;
System\Diagnostics\EventLogInternal.cs (1)
951lmkey = Registry.LocalMachine;
System.Diagnostics.PerformanceCounter (7)
src\runtime\src\libraries\Common\src\System\Diagnostics\NetFrameworkUtils.cs (1)
129baseKey = Registry.LocalMachine;
System\Diagnostics\PerformanceCounterLib.cs (5)
519serviceParentKey = Registry.LocalMachine.OpenSubKey(ServicePath, true); 602serviceKey = Registry.LocalMachine.OpenSubKey(ServicePath, true); 676key = Registry.LocalMachine.OpenSubKey(keyPath); 970using RegistryKey libraryParentKey = Registry.LocalMachine.OpenSubKey(PerflibPath); 1025Registry.PerformanceData :
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.Speech (5)
Internal\ObjectToken\RegistryDataKey.cs (4)
490Registry.ClassesRoot, 491Registry.LocalMachine, 492Registry.CurrentUser, 493Registry.CurrentConfig
Internal\ObjectToken\SAPICategories.cs (1)
44using (RegistryDataKey deviceKey = RegistryDataKey.Create(deviceName.Substring(pos + 1), Registry.LocalMachine))
System.Windows.Forms (8)
System\Windows\Forms\Application.cs (3)
145=> Registry.LocalMachine.CreateSubKey(CommonAppDataRegistryKeyName); 495systemColorMode = Math.Abs((Registry.GetValue( 827=> Registry.CurrentUser.CreateSubKey($"Software\\{CompanyName}\\{ProductName}\\{ProductVersion}");
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (2)
29RegistryKey? key = Registry.CurrentUser.OpenSubKey(IESettingsRegPath); 146key = Registry.CurrentUser.OpenSubKey(IEMainRegPath);
System\Windows\Forms\Input\InputLanguage.cs (3)
110using RegistryKey? key = Registry.LocalMachine.OpenSubKey($@"{KeyboardLayoutsRegistryPath}\{LayoutId}"); 147using RegistryKey? key = Registry.LocalMachine.OpenSubKey(KeyboardLayoutsRegistryPath); 214using RegistryKey? key = Registry.CurrentUser.OpenSubKey(UserProfileRegistryPath);
System.Windows.Forms.Design (5)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
297using RegistryKey? regkey = Registry.LocalMachine.OpenSubKey(
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (2)
47using RegistryKey? key = Registry.ClassesRoot.OpenSubKey(controlKey); 248using RegistryKey? key = Registry.ClassesRoot.OpenSubKey(controlKey)
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)
278using RegistryKey? key = Registry.CurrentUser.OpenSubKey(