167 references to Registry
ComSvcConfig (1)
WasAdminWrapper.cs (1)
46RegistryKey inetStpKey = Registry.LocalMachine.OpenSubKey(inetStp);
mscorlib (39)
microsoft\win32\registry.cs (6)
111basekey = Registry.CurrentUser; 114basekey = Registry.LocalMachine; 117basekey = Registry.ClassesRoot; 120basekey = Registry.Users; 123basekey = Registry.PerformanceData; 126basekey = Registry.CurrentConfig;
system\diagnostics\eventing\eventprovider.cs (1)
545data = Microsoft.Win32.Registry.GetValue(regKey, valueName, null) as byte[];
system\environment.cs (6)
671Registry.LocalMachine.OpenSubKey(@"System\CurrentControlSet\Control\Session Manager\Environment", false)) { 684Registry.CurrentUser.OpenSubKey("Environment", false)) { 869Registry.LocalMachine.OpenSubKey(@"System\CurrentControlSet\Control\Session Manager\Environment", false)) { 876Registry.CurrentUser.OpenSubKey("Environment", false)) { 983Registry.LocalMachine.OpenSubKey(@"System\CurrentControlSet\Control\Session Manager\Environment", true)) { 1001Registry.CurrentUser.OpenSubKey("Environment", true)) {
system\globalization\culturedata.cs (1)
796Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.LocalMachine.InternalOpenSubKey(s_RegionKey, false);
system\globalization\hijricalendar.cs (1)
270key = Microsoft.Win32.Registry.CurrentUser.InternalOpenSubKey(InternationalRegKey, false);
system\runtime\interopservices\registrationservices.cs (17)
381using (RegistryKey RecordRootKey = Registry.ClassesRoot.CreateSubKey(strRecordRootName)) 427using (RegistryKey TypeNameKey = Registry.ClassesRoot.CreateSubKey(strProgId)) 440using (RegistryKey ClsIdRootKey = Registry.ClassesRoot.CreateSubKey(strClsIdRootName)) 503using (RegistryKey ClsIdRootKey = Registry.ClassesRoot.CreateSubKey(strClsIdRootName)) 548using (RegistryKey RecordRootKey = Registry.ClassesRoot.OpenSubKey(strRecordRootName, true)) 585Registry.ClassesRoot.DeleteSubKey(strRecordRootName); 616using (RegistryKey ClsIdRootKey = Registry.ClassesRoot.OpenSubKey(strClsIdRootName, true)) 740Registry.ClassesRoot.DeleteSubKey(strClsIdRootName); 752using (RegistryKey TypeNameKey = Registry.ClassesRoot.OpenSubKey(strProgId, true)) 779Registry.ClassesRoot.DeleteSubKey(strProgId); 803using (RegistryKey ClsIdRootKey = Registry.ClassesRoot.OpenSubKey(strClsIdRootName, true)) 858Registry.ClassesRoot.DeleteSubKey(strClsIdRootName); 878using (RegistryKey TypeLibRootKey = Registry.ClassesRoot.CreateSubKey(strTlbRootName)) 904using (RegistryKey TypeLibRootKey = Registry.ClassesRoot.OpenSubKey(strTlbRootName, true)) 936Registry.ClassesRoot.DeleteSubKey(strTlbRootName); 948using (RegistryKey ComponentCategoryKey = Registry.ClassesRoot.CreateSubKey(strComponentCategorySubKey)) 963using (RegistryKey componentCategoryKey = Registry.ClassesRoot.OpenSubKey(strComponentCategorySubKey,
system\runtime\interopservices\typelibconverter.cs (1)
193using (RegistryKey TypeLibKey = Registry.ClassesRoot.OpenSubKey("TypeLib", false))
system\security\cryptography\utils.cs (1)
531using (RegistryKey fipsAlgorithmPolicyKey = Registry.LocalMachine.OpenSubKey(@"System\CurrentControlSet\Control\Lsa", false))
system\timezoneinfo.cs (5)
933using (RegistryKey reg = Registry.LocalMachine.OpenSubKey( 1432using (RegistryKey key = Registry.LocalMachine.OpenSubKey( 2310using (RegistryKey dynamicKey = Registry.LocalMachine.OpenSubKey( 2487using (RegistryKey key = Registry.LocalMachine.OpenSubKey( 2772using (RegistryKey key = Registry.LocalMachine.OpenSubKey(
PresentationCore (6)
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (1)
107using (Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(MS.Internal.RegistryKeys.FRAMEWORK_RegKey))
Core\CSharp\MS\Internal\FontCache\FontSourceCollection.cs (1)
199using (RegistryKey fontsKey = Registry.LocalMachine.OpenSubKey(InstalledWindowsFontsRegistryKey))
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
389RegistryKey regkey = Registry.LocalMachine;
Core\CSharp\System\Windows\Diagnostics\VisualDiagnostics.cs (1)
389RegistryKey key = Registry.LocalMachine.OpenSubKey(c_devmodeRegKey);
Core\CSharp\System\Windows\Input\TextCompositionManager.cs (1)
1066key = Registry.CurrentUser.OpenSubKey("Control Panel\\Input Method");
Shared\MS\Internal\SafeSecurityHelper.cs (1)
388featureKey = Registry.LocalMachine.OpenSubKey(RegistryKeys.WPF_Features);
PresentationFramework (14)
src\Framework\MS\Internal\AppModel\AssemblyFilter.cs (2)
157featureKey = Registry.LocalMachine.OpenSubKey(KILL_BIT_REGISTRY_LOCATION); 166featureKey = Registry.LocalMachine.OpenSubKey(KILL_BIT_REGISTRY_LOCATION + @"\" + assemblyName);
src\Framework\MS\Internal\IO\Packaging\PackageFilter.cs (3)
531Registry.ClassesRoot, 569RegistryKey mimeContentType = FindSubkey(Registry.ClassesRoot, _mimeContentTypeKey); 597Registry.ClassesRoot,
src\Framework\System\Windows\Application.cs (1)
2618using (RegistryKey soundKey = Registry.CurrentUser.OpenSubKey(regPath))
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (1)
3763RegistryKey rk = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes");
src\Framework\System\Windows\Documents\Serialization\SerializerProvider.cs (1)
294private static readonly RegistryKey _rootKey = Registry.LocalMachine;
src\Framework\System\Windows\Interop\DocobjHost.cs (5)
454using (RegistryKey lsaKey = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\Lsa")) 1142object errorPageSetting = Microsoft.Win32.Registry.GetValue( 1146errorPageSetting = Microsoft.Win32.Registry.GetValue( 1242string xpsViewerPath = Microsoft.Win32.Registry.GetValue( 1275object isolatedStorageRegistryValue = Microsoft.Win32.Registry.GetValue(
src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
388featureKey = Registry.LocalMachine.OpenSubKey(RegistryKeys.WPF_Features);
SMSvcHost (1)
System\ServiceModel\Activation\SMSvcHost.cs (1)
38using (RegistryKey localMachine = Registry.LocalMachine)
System (21)
compmod\microsoft\win32\SystemEvents.cs (1)
1043RegistryKey key = Registry.LocalMachine.OpenSubKey(string.Format(System.Globalization.CultureInfo.CurrentCulture,
compmod\system\codedom\compiler\RedistVersionInfo.cs (1)
112dir = Registry.GetValue(registryPath, MSBuildToolsPath, null) as string;
net\System\Net\_DigestClient.cs (1)
747using (RegistryKey lsaKey = Registry.LocalMachine.OpenSubKey(suppressExtendedProtectionKey)) {
net\System\Net\_RegBlobWebProxyDataBuilder.cs (1)
84lmKey = Registry.LocalMachine.OpenSubKey(PolicyKey);
net\System\Net\HttpSysSettings.cs (1)
46RegistryKey httpSysParameters = Registry.LocalMachine.OpenSubKey(httpSysParametersKey);
net\System\Net\HybridWebProxyFinder.cs (1)
117using (RegistryKey key = Registry.LocalMachine.OpenSubKey(allowFallbackKey))
net\System\Net\Internal.cs (1)
727using (RegistryKey installTypeKey = Registry.LocalMachine.OpenSubKey(OSInstallTypeRegKey))
net\System\Net\NetRegistryConfiguration.cs (1)
119using (RegistryKey key = Registry.LocalMachine.OpenSubKey(path))
services\monitoring\system\diagnosticts\EventLog.cs (2)
446baseKey = Registry.LocalMachine; 1056lmkey = Registry.LocalMachine;
services\monitoring\system\diagnosticts\EventLogInternal.cs (1)
1135lmkey = Registry.LocalMachine;
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (6)
461serviceParentKey = Registry.LocalMachine.OpenSubKey(ServicePath, true); 556serviceKey = Registry.LocalMachine.OpenSubKey(ServicePath, true); 628key = Registry.LocalMachine.OpenSubKey(keyPath); 900libraryParentKey = Registry.LocalMachine.OpenSubKey(PerflibPath); 964libraryKey = Registry.PerformanceData; 1196perfDataKey = Registry.PerformanceData;
services\monitoring\system\diagnosticts\ProcessStartInfo.cs (2)
298key = Registry.ClassesRoot.OpenSubKey(extension); 302key = Registry.ClassesRoot.OpenSubKey(value + "\\shell");
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (1)
616categoryKey = Registry.LocalMachine.OpenSubKey(PerformanceCounterLib.ServicePath + "\\" + categoryName + "\\Performance");
sys\system\io\ports\SerialPort.cs (1)
681baseKey = Registry.LocalMachine;
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (1)
145RegistryKey validationRegistryKey = Registry.CurrentUser.OpenSubKey(validationKeyPath.ToString());
System.Data (4)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (1)
145RegistryKey validationRegistryKey = Registry.CurrentUser.OpenSubKey(validationKeyPath.ToString());
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
2187using(RegistryKey key = Registry.ClassesRoot.OpenSubKey(subkey, false)) { 2207using(RegistryKey key = Registry.LocalMachine.OpenSubKey(subkey, false)) {
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCspProvider.cs (1)
473RegistryKey key = Registry.LocalMachine.OpenSubKey(keyName);
System.IdentityModel (2)
System\IdentityModel\SecurityUtils.cs (2)
220using (RegistryKey fipsAlgorithmPolicyKey = Registry.LocalMachine.OpenSubKey(fipsPolicyRegistryKey, false)) 272using (RegistryKey securityRegKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\.NETFramework\Security", false))
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\CardSpaceShim.cs (1)
235using (RegistryKey implDllKey = Registry.LocalMachine.OpenSubKey(REDIRECT_DLL_REG_KEY))
System.Management (4)
Instrumentation\WMICapabilities.cs (3)
32 wmiNetKey = Registry.LocalMachine.OpenSubKey(WMINetKeyPath, false); 33wmiKey = Registry.LocalMachine.OpenSubKey(WMIKeyPath, false); 80RegistryKey wmiCIMOMKey = Registry.LocalMachine.OpenSubKey(WMICIMOMKeyPath, true);
managementscope.cs (1)
54s_switchesRegKey = Registry.LocalMachine.OpenSubKey(RegKeyLocation);
System.Net (1)
net\PeerToPeer\UnsafePeerToPeerMethods.cs (1)
301using (RegistryKey installTypeKey = Registry.LocalMachine.OpenSubKey(OSInstallTypeRegKey)) {
System.Security (2)
system\security\cryptography\xml\signedxml.cs (1)
746using (RegistryKey stringListKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\.NETFramework\Security\" + subkey, false)) {
system\security\cryptography\xml\utils.cs (1)
486using (RegistryKey securityRegKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\.NETFramework\Security", false)) {
System.ServiceModel (6)
System\ServiceModel\Activation\Iis7Helper.cs (1)
53using (RegistryKey localMachine = Registry.LocalMachine)
System\ServiceModel\ComIntegration\TypeCacheManager.cs (3)
77interfaceKey = Registry.LocalMachine.OpenSubKey(keyName, false); 82interfaceKey = Registry.ClassesRoot.OpenSubKey(keyName, false); 354using (RegistryKey clsidKey = Registry.LocalMachine.OpenSubKey(keyName, false))
System\ServiceModel\Security\SecurityUtils.cs (1)
1178using (RegistryKey channelBindingPolicyKey = Registry.LocalMachine.OpenSubKey(suppressChannelBindingRegistryKey, false))
System\ServiceModel\Security\SecurityUtilsEx.cs (1)
58using (RegistryKey fipsAlgorithmPolicyKey = Registry.LocalMachine.OpenSubKey(fipsPolicyRegistryKey, false))
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\MetabaseSettings.cs (1)
481using (RegistryKey registryKey = Registry.LocalMachine.OpenSubKey(IISConstants.CBTRegistryHKLMPath))
System.Web (7)
Compilation\MultiTargetingUtil.cs (2)
227object o = Registry.GetValue(path, "TargetVersion", null); 249var baseKey = Registry.LocalMachine.OpenSubKey(path);
Configuration\serverconfig.cs (1)
82object ver = Registry.GetValue("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\InetStp", "MajorVersion", 0);
State\SessionStateModule.cs (1)
1094object o = Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET", "SessionStateLockedItemPollInterval", 0);
Util\AspCompat.cs (1)
310regKey = Registry.ClassesRoot.OpenSubKey("CLSID\\{" + clsid + "}\\InprocServer32" );
Util\EnableViewStateMacRegistryHelper.cs (1)
68int rawValue = (int)Registry.GetValue(keyName, "AspNetEnforceViewStateMac", defaultValue: 0 /* disabled by default */);
Util\Misc.cs (1)
174return Registry.LocalMachine.OpenSubKey(key);
System.Windows.Forms (13)
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (1)
1124RegistryKey key = Registry.CurrentUser.OpenSubKey(wintrustPolicyFlagsRegPath);
winforms\Managed\System\WinForms\Application.cs (3)
182return Registry.LocalMachine.CreateSubKey(CommonAppDataRegistryKeyName); 206RegistryKey key = Registry.LocalMachine.OpenSubKey(CommonAppDataRegistryKeyName); 723return Registry.CurrentUser.CreateSubKey(string.Format(CultureInfo.CurrentCulture, template, CompanyName, ProductName, ProductVersion));
winforms\Managed\System\WinForms\InputLanguage.cs (3)
194RegistryKey key = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\Keyboard Layouts\\" + keyName); 211RegistryKey substitutions = Registry.CurrentUser.OpenSubKey("Keyboard Layout\\Substitutes"); 232RegistryKey layouts = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\Keyboard Layouts");
winforms\Managed\System\WinForms\LinkUtilities.cs (2)
41RegistryKey key = Registry.CurrentUser.OpenSubKey(IESettingsRegPath); 135key = Registry.CurrentUser.OpenSubKey(IEMainRegPath);
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
211RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\.NETFramework");
winforms\Managed\System\WinForms\NativeWindow.cs (1)
499RegistryKey debugKey = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\.NETFramework");
winforms\Managed\System\WinForms\TrustManager.cs (2)
256RegistryKey key = Registry.ClassesRoot.OpenSubKey("http\\shell\\open\\command"); 787using (RegistryKey key = Registry.LocalMachine.OpenSubKey(PromptingLevelKeyName))
System.Workflow.Activities (5)
Common\CompModHelpers.cs (5)
72keyPath = userRegistryKey.ToString().Substring(Registry.CurrentUser.ToString().Length + 1); 567using (RegistryKey key = Registry.LocalMachine.OpenSubKey(ProductRootRegKey)) 615using (RegistryKey key = Registry.LocalMachine.OpenSubKey(ProductRootRegKey30)) 801RegistryKey referenceKey = Registry.CurrentUser.OpenSubKey(TypeProviderRegistryKeyPath); 844RegistryKey referenceKey = Registry.CurrentUser.CreateSubKey(TypeProviderRegistryKeyPath);
System.Workflow.ComponentModel (11)
AuthoringOM\Compiler\CompileXomlTask.cs (2)
460ndpSetupKey = Registry.LocalMachine.OpenSubKey(NDPSetupRegistryBranch); 886RegistryKey winoeKey = Registry.LocalMachine.OpenSubKey(Helpers.ProductRootRegKey);
AuthoringOM\Design\Themes.cs (2)
340RegistryKey themeKey = Registry.CurrentUser.OpenSubKey(WorkflowTheme.RegistryKeyPath); 384RegistryKey themeKey = Registry.CurrentUser.CreateSubKey(WorkflowTheme.RegistryKeyPath);
AuthoringOM\Design\WorkflowPrinting.cs (2)
437RegistryKey key = Registry.CurrentUser.OpenSubKey(WinOEPrintingSubKey); 487RegistryKey key = Registry.CurrentUser.CreateSubKey(WinOEPrintingSubKey);
Shared\CompModHelpers.cs (5)
70keyPath = userRegistryKey.ToString().Substring(Registry.CurrentUser.ToString().Length + 1); 565using (RegistryKey key = Registry.LocalMachine.OpenSubKey(ProductRootRegKey)) 613using (RegistryKey key = Registry.LocalMachine.OpenSubKey(ProductRootRegKey30)) 799RegistryKey referenceKey = Registry.CurrentUser.OpenSubKey(TypeProviderRegistryKeyPath); 842RegistryKey referenceKey = Registry.CurrentUser.CreateSubKey(TypeProviderRegistryKeyPath);
System.Workflow.Runtime (2)
DebugEngine\DebugController.cs (1)
482RegistryKey debugEngineSubKey = Registry.LocalMachine.OpenSubKey(RegistryKeys.DebuggerSubKey);
DebugEngine\DebugControllerThread.cs (1)
100RegistryKey debugEngineSubKey = Registry.LocalMachine.OpenSubKey(RegistryKeys.DebuggerSubKey);
System.Xml (4)
System\Xml\Core\XmlReaderSettings.cs (2)
733if (!ReadSettingsFromRegistry(Registry.LocalMachine, ref enableSettings)) 736ReadSettingsFromRegistry(Registry.CurrentUser, ref enableSettings);
System\Xml\XmlQualifiedName.cs (2)
190if (!ReadBoolFromXmlRegistrySettings(Registry.CurrentUser, regValueName, ref disableHashing)) { 191ReadBoolFromXmlRegistrySettings(Registry.LocalMachine, regValueName, ref disableHashing);
WindowsBase (11)
Base\MS\Internal\AvTrace.cs (1)
235Registry.CurrentUser,
Base\MS\Internal\IO\Packaging\CustomSignedXml.cs (1)
228using (RegistryKey securityRegKey = Registry.LocalMachine.OpenSubKey(_NetFxSecurityKey, false))
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (1)
953RegistryKey key = Registry.LocalMachine.OpenSubKey(_passportActivationRegistryKeyName);
Base\System\Windows\BaseCompatibilityPreferences.cs (1)
251using (var regKey = Registry.CurrentUser.OpenSubKey(WpfPackagingSubKeyPath, RegistryKeyPermissionCheck.ReadSubTree))
Shared\MS\Internal\Invariant.cs (1)
314key = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\.NETFramework");
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (1)
565userProfileKey = Registry.LocalMachine.OpenSubKey(_profileListKeyName + @"\" + userSid);
Shared\MS\Internal\Registry.cs (1)
51object value = Registry.GetValue(keyPath, valueName, null);
Shared\MS\Internal\TextServicesLoader.cs (3)
218key = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\CTF", false); 230tipsWantToRun = IterateSubKeys(Registry.LocalMachine, "SOFTWARE\\Microsoft\\CTF\\TIP",new IterateHandler(SingleTIPWantsToRun), true) == EnableState.Enabled; 253result = IterateSubKeys(Registry.CurrentUser, "SOFTWARE\\Microsoft\\CTF\\TIP\\" + subKeyName + "\\LanguageProfile", new IterateHandler(IsLangidEnabled), false);
Shared\MS\Utility\Trace.cs (1)
157return int.Equals(1, Microsoft.Win32.Registry.GetValue(regKey, "ClassicETW", 0));
WsatConfig (4)
Configuration\RegistryExceptionHelper.cs (3)
42registryBase += Registry.ClassesRoot.Name; 45registryBase += Registry.CurrentUser.Name; 48registryBase += Registry.LocalMachine.Name;
Configuration\StdRegProviderWrapper.cs (1)
335regKey = Registry.LocalMachine.OpenSubKey(
WsatUI (6)
Configuration\RegistryExceptionHelper.cs (3)
42registryBase += Registry.ClassesRoot.Name; 45registryBase += Registry.CurrentUser.Name; 48registryBase += Registry.LocalMachine.Name;
Configuration\RegistryHelper.cs (2)
40RegistryKey regKey = Registry.LocalMachine.OpenSubKey( 86RegistryKey regKey = Registry.LocalMachine.OpenSubKey(
Configuration\StdRegProviderWrapper.cs (1)
335regKey = Registry.LocalMachine.OpenSubKey(