101 references to Registry
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
101var iisRegistryKey = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\InetStp", writable: false);
src\Shared\TransportTestHelpers\HttpSysHttp3SupportedAttribute.cs (1)
28using var key = Registry.LocalMachine.OpenSubKey(@"SYSTEM\CurrentControlSet\services\HTTP\Parameters");
IIS.LongTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
101var iisRegistryKey = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\InetStp", writable: false);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
168Registry.LocalMachine,
IIS.NewHandler.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
101var iisRegistryKey = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\InetStp", writable: false);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
168Registry.LocalMachine,
IIS.NewShim.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
101var iisRegistryKey = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\InetStp", writable: false);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
168Registry.LocalMachine,
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
101var iisRegistryKey = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\InetStp", writable: false);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
168Registry.LocalMachine,
Microsoft.AspNetCore.DataProtection (1)
RegistryPolicyResolver.cs (1)
30_getPolicyRegKey = () => Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\DotNetPackages\Microsoft.AspNetCore.DataProtection");
Microsoft.AspNetCore.DataProtection.Tests (3)
Internal\KeyManagementOptionsSetupTest.cs (1)
118return Registry.CurrentUser.CreateSubKey(@"SOFTWARE\Microsoft\ASP.NET\temp");
RegistryPolicyResolverTests.cs (1)
290return Registry.CurrentUser.CreateSubKey(@"SOFTWARE\Microsoft\ASP.NET\temp");
Repositories\RegistryXmlRepositoryTests.cs (1)
150return Registry.CurrentUser.CreateSubKey(@"SOFTWARE\Microsoft\ASP.NET\temp");
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 (4)
Evaluation\Expander.cs (1)
1715object valueFromRegistry = Registry.GetValue(registryKeyName, valueName, null /* default if key or value name is not found */);
Evaluation\IntrinsicFunctions.cs (2)
201return Registry.GetValue(keyName, valueName, null /* null to match the $(Regsitry:XYZ@ZBC) behaviour */); 218return Registry.GetValue(keyName, valueName, defaultValue);
Utilities\RegistryKeyWrapper.cs (1)
52: this(registryKeyPath, Registry.LocalMachine)
Microsoft.Build.Engine (5)
Engine\Expander.cs (1)
909object valueFromRegistry = Registry.GetValue(registryKeyName,
Engine\IntrinsicFunctions.cs (2)
155return Registry.GetValue(keyName, valueName, null /* null to match the $(Regsitry:XYZ@ZBC) behaviour */); 163return Registry.GetValue(keyName, valueName, defaultValue);
Engine\RegistryKeyWrapper.cs (1)
50: this(registryKeyPath, Registry.LocalMachine)
Shared\FrameworkLocationHelper.cs (1)
428Microsoft.Win32.RegistryKey baseKey = Microsoft.Win32.Registry
Microsoft.Build.Engine.UnitTests (20)
Evaluation\Expander_Tests.cs (20)
1747RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 1756Registry.CurrentUser.DeleteSubKey(@"Software\Microsoft\MSBuild_test"); 1769RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 1781Registry.CurrentUser.DeleteSubKey(@"Software\Microsoft\MSBuild_test"); 1794RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 1803Registry.CurrentUser.DeleteSubKey(@"Software\Microsoft\MSBuild_test"); 1817RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 1826Registry.CurrentUser.DeleteSubKey(@"Software\Microsoft\MSBuild_test"); 1839RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 1848Registry.CurrentUser.DeleteSubKey(@"Software\Microsoft\MSBuild_test"); 1861RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 1870Registry.CurrentUser.DeleteSubKey(@"Software\Microsoft\MSBuild_test"); 3771RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 3780Registry.CurrentUser.DeleteSubKey(@"Software\Microsoft\MSBuild_test"); 3795RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 3804Registry.CurrentUser.DeleteSubKey(@"Software\Microsoft\MSBuild_test"); 3819RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 3828Registry.CurrentUser.DeleteSubKey(@"Software\Microsoft\MSBuild_test"); 3843RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 3852Registry.CurrentUser.DeleteSubKey(@"Software\Microsoft\MSBuild_test");
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 (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); 132string defaultPath = ReadRegistryString(Registry.LocalMachine, BOOTSTRAPPER_REGISTRY_PATH_BASE, REGISTRY_DEFAULTPATH); 138defaultPath = ReadRegistryString(Registry.LocalMachine, BOOTSTRAPPER_WOW64_REGISTRY_PATH_BASE, REGISTRY_DEFAULTPATH); 144defaultPath = ReadRegistryString(Registry.LocalMachine, String.Concat(BOOTSTRAPPER_REGISTRY_PATH_BASE, visualStudioVersion), REGISTRY_DEFAULTPATH); 150defaultPath = ReadRegistryString(Registry.LocalMachine, String.Concat(BOOTSTRAPPER_WOW64_REGISTRY_PATH_BASE, visualStudioVersion), REGISTRY_DEFAULTPATH); 168RegistryKey bootstrapperBaseRegKey = Registry.LocalMachine.OpenSubKey(BOOTSTRAPPER_REGISTRY_PATH_BASE); 171bootstrapperBaseRegKey = Registry.LocalMachine.OpenSubKey(BOOTSTRAPPER_WOW64_REGISTRY_PATH_BASE);
ManifestUtil\ComImporter.cs (2)
171using (RegistryKey userKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\CLASSES\\CLSID")) 179using (RegistryKey machineKey = Registry.ClassesRoot.OpenSubKey("CLSID"))
ManifestUtil\Util.cs (1)
295RegistryKey key = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", false);
Microsoft.Build.Tasks.UnitTests (8)
AssemblyDependency\Miscellaneous.cs (2)
2317RegistryKey baseKey = Registry.CurrentUser; 2332RegistryKey baseKey = Registry.CurrentUser;
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (6)
2518return Registry.CurrentUser; 2522return Registry.LocalMachine; 2538if (baseKey == Registry.CurrentUser) 2666if (baseKey == Registry.LocalMachine) 2786if (baseKey == Registry.CurrentUser) 2866if (baseKey == Registry.LocalMachine)
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)
MSBuildTaskHost (1)
NativeMethods.cs (1)
612using (RegistryKey fileSystemKey = Registry.LocalMachine.OpenSubKey(WINDOWS_FILE_SYSTEM_REGISTRY_KEY))
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
12[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.Registry))]
PresentationCore (9)
MS\Internal\FontCache\FontSourceCollection.cs (1)
142using (RegistryKey fontsKey = Registry.LocalMachine.OpenSubKey(InstalledWindowsFontsRegistryKey))
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
319RegistryKey regkey = Registry.LocalMachine;
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 (3)
303result = ((int)(Registry.CurrentUser.OpenSubKey(WpfPointerKey, RegistryKeyPermissionCheck.ReadSubTree)?.GetValue(WpfPointerValue, 0) ?? 0)) == 1; 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 (12)
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 (3)
524Registry.ClassesRoot, 562RegistryKey mimeContentType = FindSubkey(Registry.ClassesRoot, _mimeContentTypeKey); 590Registry.ClassesRoot,
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\SerializerProvider.cs (1)
236private static readonly RegistryKey _rootKey = Registry.LocalMachine;
System\Windows\ThemeManager.cs (3)
160string systemTheme = Registry.GetValue(_regThemeKeyPath, 173var useLightTheme = Registry.GetValue(_regPersonalizeKeyPath, 178useLightTheme = Registry.GetValue(_regPersonalizeKeyPath,
PresentationUI (3)
MS\Internal\Documents\RightsManagementProvider.cs (2)
398using (RegistryKey defaultRMKey = Registry.CurrentUser.OpenSubKey( 466using (RegistryKey defaultRMKey = Registry.CurrentUser.CreateSubKey(
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");