93 references to Registry
dotnet (2)
Telemetry\DockerContainerDetectorForTelemetry.cs (1)
20= Registry.LocalMachine.OpenSubKey("System\\CurrentControlSet\\Control"))
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.cs (1)
1802object valueFromRegistry = Registry.GetValue(registryKeyName, valueName, null /* default if key or value name is not found */);
Evaluation\IntrinsicFunctions.cs (2)
211return Registry.GetValue(keyName, valueName, null /* null to match the $(Regsitry:XYZ@ZBC) behaviour */); 227return 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)
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 (11)
BootstrapperUtil\Util.cs (8)
88s_defaultPath = ReadRegistryString(Registry.LocalMachine, String.Concat(BOOTSTRAPPER_REGISTRY_PATH_BASE, BOOTSTRAPPER_REGISTRY_PATH_VERSION_VS2010), REGISTRY_DEFAULTPATH); 94s_defaultPath = ReadRegistryString(Registry.LocalMachine, String.Concat(BOOTSTRAPPER_WOW64_REGISTRY_PATH_BASE, BOOTSTRAPPER_REGISTRY_PATH_VERSION_VS2010), REGISTRY_DEFAULTPATH); 137string defaultPath = ReadRegistryString(Registry.LocalMachine, BOOTSTRAPPER_REGISTRY_PATH_BASE, REGISTRY_DEFAULTPATH); 143defaultPath = ReadRegistryString(Registry.LocalMachine, BOOTSTRAPPER_WOW64_REGISTRY_PATH_BASE, REGISTRY_DEFAULTPATH); 149defaultPath = ReadRegistryString(Registry.LocalMachine, String.Concat(BOOTSTRAPPER_REGISTRY_PATH_BASE, visualStudioVersion), REGISTRY_DEFAULTPATH); 155defaultPath = ReadRegistryString(Registry.LocalMachine, String.Concat(BOOTSTRAPPER_WOW64_REGISTRY_PATH_BASE, visualStudioVersion), REGISTRY_DEFAULTPATH); 173RegistryKey bootstrapperBaseRegKey = Registry.LocalMachine.OpenSubKey(BOOTSTRAPPER_REGISTRY_PATH_BASE); 176bootstrapperBaseRegKey = Registry.LocalMachine.OpenSubKey(BOOTSTRAPPER_WOW64_REGISTRY_PATH_BASE);
ManifestUtil\ComImporter.cs (2)
191using (RegistryKey userKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\CLASSES\\CLSID")) 199using (RegistryKey machineKey = Registry.ClassesRoot.OpenSubKey("CLSID"))
ManifestUtil\Util.cs (1)
279RegistryKey key = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", false);
Microsoft.DotNet.Cli.Utils (7)
DependencyProvider.cs (6)
48/// Returns the root key to use: <see cref="Registry.LocalMachine"/> for per-machine installations or 49/// <see cref="Registry.CurrentUser"/> for per-user installations. 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.VisualBasic.Core (4)
Microsoft\VisualBasic\Interaction.vb (4)
329UserKey = Registry.CurrentUser 366rk = Registry.CurrentUser.OpenSubKey(sAppSect) 427rk = Registry.CurrentUser.OpenSubKey(sAppSect) 'By default, does not request write permission 461rk = Registry.CurrentUser.CreateSubKey(sIniSect)
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)
src\runtime\src\libraries\shims\mscorlib\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)
949lmkey = 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)
140=> Registry.LocalMachine.CreateSubKey(CommonAppDataRegistryKeyName); 421systemColorMode = Math.Abs((Registry.GetValue( 673=> Registry.CurrentUser.CreateSubKey($"Software\\{CompanyName}\\{ProductName}\\{ProductVersion}");
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 (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)
239using RegistryKey? key = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Accessibility");