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