43 references to LocalMachine
dotnet (1)
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 (9)
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\Util.cs (1)
279RegistryKey key = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", false);
Microsoft.DotNet.Cli.Utils (4)
DependencyProvider.cs (3)
48/// Returns the root key to use: <see cref="Registry.LocalMachine"/> for per-machine installations or 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.Forms (1)
Microsoft\VisualBasic\MyServices\RegistryProxy.vb (1)
41Return Registry.LocalMachine
Microsoft.Win32.Registry (1)
Microsoft\Win32\Registry.cs (1)
49case 18: baseKey = LocalMachine; break; // HKEY_LOCAL_MACHINE
PresentationCore (2)
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
297RegistryKey regkey = Registry.LocalMachine;
System\Windows\Diagnostics\VisualDiagnostics.cs (1)
343RegistryKey key = Registry.LocalMachine.OpenSubKey(c_devmodeRegKey);
PresentationFramework (2)
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.Data.OleDb (1)
System\Data\Common\AdapterUtil.cs (1)
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 (6)
src\runtime\src\libraries\Common\src\System\Diagnostics\NetFrameworkUtils.cs (1)
129baseKey = Registry.LocalMachine;
System\Diagnostics\PerformanceCounterLib.cs (4)
519serviceParentKey = Registry.LocalMachine.OpenSubKey(ServicePath, true); 602serviceKey = Registry.LocalMachine.OpenSubKey(ServicePath, true); 676key = Registry.LocalMachine.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.Speech (2)
Internal\ObjectToken\RegistryDataKey.cs (1)
491Registry.LocalMachine,
Internal\ObjectToken\SAPICategories.cs (1)
44using (RegistryDataKey deviceKey = RegistryDataKey.Create(deviceName.Substring(pos + 1), Registry.LocalMachine))
System.Windows.Forms (3)
System\Windows\Forms\Application.cs (1)
140=> Registry.LocalMachine.CreateSubKey(CommonAppDataRegistryKeyName);
System\Windows\Forms\Input\InputLanguage.cs (2)
110using RegistryKey? key = Registry.LocalMachine.OpenSubKey($@"{KeyboardLayoutsRegistryPath}\{LayoutId}"); 147using RegistryKey? key = Registry.LocalMachine.OpenSubKey(KeyboardLayoutsRegistryPath);
System.Windows.Forms.Design (1)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
297using RegistryKey? regkey = Registry.LocalMachine.OpenSubKey(