3 writes to _hkey
Microsoft.Win32.Registry (3)
Microsoft\Win32\RegistryKey.cs (3)
96
_hkey
= hkey;
144
_hkey
= null!;
1593
_hkey
= null!;
26 references to _hkey
Microsoft.Win32.Registry (26)
Microsoft\Win32\RegistryKey.cs (26)
117
if (
_hkey
!= null && IsDirty())
119
Interop.Advapi32.RegFlushKey(
_hkey
);
130
if (
_hkey
!= null)
136
_hkey
.Dispose();
225
int ret = Interop.Advapi32.RegCreateKeyEx(
_hkey
,
294
int ret = Interop.Advapi32.RegDeleteKeyEx(
_hkey
, subkey, (int)_regView, 0);
350
int ret = Interop.Advapi32.RegDeleteTree(key.
_hkey
, string.Empty);
359
ret = Interop.Advapi32.RegDeleteKeyEx(key.
_hkey
, string.Empty, (int)_regView, 0);
385
int errorCode = Interop.Advapi32.RegDeleteValue(
_hkey
, name);
506
int ret = Interop.Advapi32.RegOpenKeyEx(
_hkey
, name, 0, (GetRegistryKeyAccess(writable) | (int)_regView), out SafeRegistryHandle result);
550
int ret = Interop.Advapi32.RegOpenKeyEx(
_hkey
, name, 0, (int)rights | (int)_regView, out SafeRegistryHandle result);
577
int ret = Interop.Advapi32.RegOpenKeyEx(
_hkey
, name, 0, GetRegistryKeyAccess(writable) | (int)_regView, out SafeRegistryHandle result);
618
int ret = Interop.Advapi32.RegQueryInfoKey(
_hkey
,
654
return IsSystemKey() ? GetSystemKeyHandle() :
_hkey
;
775
_hkey
,
821
int ret = Interop.Advapi32.RegQueryInfoKey(
_hkey
,
872
_hkey
,
1021
result = Interop.Advapi32.RegQueryValueEx(
_hkey
, name, null, &type, lpData, (uint*)&dataLength);
1204
int ret = Interop.Advapi32.RegQueryValueEx(
_hkey
, name, null, &type, (byte*)null, (uint*)&datasize);
1265
ret = Interop.Advapi32.RegSetValueEx(
_hkey
,
1307
ret = Interop.Advapi32.RegSetValueEx(
_hkey
,
1320
ret = Interop.Advapi32.RegSetValueEx(
_hkey
,
1334
ret = Interop.Advapi32.RegSetValueEx(
_hkey
,
1347
ret = Interop.Advapi32.RegSetValueEx(
_hkey
,
1475
if (
_hkey
== null)
1592
_hkey
.SetHandleAsInvalid();