24 references to CurrentUser
aspire-tray (1)
Program.cs (1)
94
new WindowsRunStartupRegistrationStore(Registry.
CurrentUser
,
Aspire.Tray.Tests (5)
WindowsTrayStartupSettingsTests.cs (5)
19
var store = new WindowsRunStartupRegistrationStore(Registry.
CurrentUser
, path, "AspireTray");
23
using var absent = Registry.
CurrentUser
.OpenSubKey(path);
26
using (var key = Registry.
CurrentUser
.OpenSubKey(path, writable: true))
35
using var remaining = Registry.
CurrentUser
.OpenSubKey(path);
41
Registry.
CurrentUser
.DeleteSubKeyTree(path, throwOnMissingSubKey: false);
Microsoft.DotNet.Cli.Utils (2)
DependencyProvider.cs (2)
105
BaseKey = AllUsers ? Registry.LocalMachine : Registry.
CurrentUser
;
185
var baseKey = allUsers ? Registry.LocalMachine : Registry.
CurrentUser
;
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\MyServices\RegistryProxy.vb (1)
35
Return Registry.
CurrentUser
Microsoft.Win32.Registry (1)
Microsoft\Win32\Registry.cs (1)
48
case 17: baseKey = char.ToUpperInvariant(keyName[6]) == 'L' ? ClassesRoot :
CurrentUser
; break; // HKEY_C[L]ASSES_ROOT, otherwise HKEY_CURRENT_USER
PresentationCore (4)
System\Windows\Input\Stylus\Common\StylusLogic.cs (3)
285
result = ((int)(Registry.
CurrentUser
.OpenSubKey(WpfPointerKey, RegistryKeyPermissionCheck.ReadSubTree)?.GetValue(WpfPointerValue, 0) ?? 0)) == 1;
333
stylusKey = Registry.
CurrentUser
.OpenSubKey(WispPenSystemEventParametersKey);
347
touchKey = Registry.
CurrentUser
.OpenSubKey(WispTouchConfigKey);
System\Windows\Input\TextCompositionManager.cs (1)
903
RegistryKey key = Registry.
CurrentUser
.OpenSubKey("Control Panel\\Input Method");
PresentationFramework (1)
System\Windows\Application.cs (1)
2294
using (RegistryKey soundKey = Registry.
CurrentUser
.OpenSubKey(regPath))
PresentationUI (3)
MS\Internal\Documents\RightsManagementProvider.cs (2)
393
using (RegistryKey defaultRMKey = Registry.
CurrentUser
.OpenSubKey(
461
using (RegistryKey defaultRMKey = Registry.
CurrentUser
.CreateSubKey(
MS\Internal\Documents\RMPublishingDialog.cs (1)
324
using (RegistryKey defaultRMKey = Registry.
CurrentUser
.OpenSubKey(
System.Speech (1)
Internal\ObjectToken\RegistryDataKey.cs (1)
492
Registry.
CurrentUser
,
System.Windows.Forms (4)
System\Windows\Forms\Application.cs (1)
827
=> Registry.
CurrentUser
.CreateSubKey($"Software\\{CompanyName}\\{ProductName}\\{ProductVersion}");
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (2)
29
RegistryKey? key = Registry.
CurrentUser
.OpenSubKey(IESettingsRegPath);
146
key = Registry.
CurrentUser
.OpenSubKey(IEMainRegPath);
System\Windows\Forms\Input\InputLanguage.cs (1)
214
using RegistryKey? key = Registry.
CurrentUser
.OpenSubKey(UserProfileRegistryPath);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
278
using RegistryKey? key = Registry.
CurrentUser
.OpenSubKey(