3 instantiations of SafeRegistryHandle
mscorlib (3)
microsoft\win32\registrykey.cs (2)
635
SafeRegistryHandle srh = new
SafeRegistryHandle
(hKey, isPerf);
694
int ret = Win32Native.RegConnectRegistry(machineName, new
SafeRegistryHandle
(new IntPtr((int)hKey), false), out foreignHKey);
system\AppContext\AppContextDefaultValues.DesktopOverrides.cs (1)
133
using (SafeRegistryHandle hklm = new
SafeRegistryHandle
((IntPtr)RegistryHive.LocalMachine, true))
41 references to SafeRegistryHandle
mscorlib (41)
microsoft\win32\registrykey.cs (14)
155
private volatile
SafeRegistryHandle
hkey = null;
189
private RegistryKey(
SafeRegistryHandle
hkey, bool writable, RegistryView view)
204
private RegistryKey(
SafeRegistryHandle
hkey, bool writable, bool systemkey, bool remoteKey, bool isPerfData, RegistryView view) {
255
SafeRegistryHandle
.RegCloseKey(RegistryKey.HKEY_PERFORMANCE_DATA);
383
SafeRegistryHandle
result = null;
635
SafeRegistryHandle
srh = new SafeRegistryHandle(hKey, isPerf);
693
SafeRegistryHandle
foreignHKey = null;
735
SafeRegistryHandle
result = null;
799
SafeRegistryHandle
result = null;
828
SafeRegistryHandle
result = null;
883
public
SafeRegistryHandle
Handle {
920
SafeRegistryHandle
result;
946
public static RegistryKey FromHandle(
SafeRegistryHandle
handle) {
955
public static RegistryKey FromHandle(
SafeRegistryHandle
handle, RegistryView view) {
microsoft\win32\win32native.cs (23)
1770
SafeRegistryHandle
key, out
SafeRegistryHandle
result);
1776
internal static extern int RegCreateKeyEx(
SafeRegistryHandle
hKey, String lpSubKey,
1779
out
SafeRegistryHandle
hkResult, out int lpdwDisposition);
1783
internal static extern int RegDeleteKey(
SafeRegistryHandle
hKey, String lpSubKey);
1787
internal static extern int RegDeleteKeyEx(
SafeRegistryHandle
hKey, String lpSubKey,
1792
internal static extern int RegDeleteValue(
SafeRegistryHandle
hKey, String lpValueName);
1796
internal unsafe static extern int RegEnumKeyEx(
SafeRegistryHandle
hKey, int dwIndex,
1803
internal unsafe static extern int RegEnumValue(
SafeRegistryHandle
hKey, int dwIndex,
1811
internal static extern int RegFlushKey(
SafeRegistryHandle
hKey);
1815
internal static extern int RegOpenKeyEx(
SafeRegistryHandle
hKey, String lpSubKey,
1816
int ulOptions, int samDesired, out
SafeRegistryHandle
hkResult);
1821
int ulOptions, int samDesired, out
SafeRegistryHandle
hkResult);
1825
internal static extern int RegQueryInfoKey(
SafeRegistryHandle
hKey, [Out]StringBuilder lpClass,
1834
internal static extern int RegQueryValueEx(
SafeRegistryHandle
hKey, String lpValueName,
1840
internal static extern int RegQueryValueEx(
SafeRegistryHandle
hKey, String lpValueName,
1846
internal static extern int RegQueryValueEx(
SafeRegistryHandle
hKey, String lpValueName,
1852
internal static extern int RegQueryValueEx(
SafeRegistryHandle
hKey, String lpValueName,
1858
internal static extern int RegQueryValueEx(
SafeRegistryHandle
hKey, String lpValueName,
1864
internal static extern int RegSetValueEx(
SafeRegistryHandle
hKey, String lpValueName,
1869
internal static extern int RegSetValueEx(
SafeRegistryHandle
hKey, String lpValueName,
1874
internal static extern int RegSetValueEx(
SafeRegistryHandle
hKey, String lpValueName,
1879
internal static extern int RegSetValueEx(
SafeRegistryHandle
hKey, String lpValueName,
system\AppContext\AppContextDefaultValues.DesktopOverrides.cs (2)
133
using (
SafeRegistryHandle
hklm = new SafeRegistryHandle((IntPtr)RegistryHive.LocalMachine, true))
135
SafeRegistryHandle
hkey = null;
system\security\accesscontrol\registrysecurity.cs (2)
152
internal RegistrySecurity(
SafeRegistryHandle
hKey, String name, AccessControlSections includeSections)
238
internal void Persist(
SafeRegistryHandle
hKey, String keyName)