92 references to RegistryKeyPermissionCheck
mscorlib (87)
microsoft\win32\registrykey.cs (80)
159
private volatile
RegistryKeyPermissionCheck
checkMode;
295
public RegistryKey CreateSubKey(String subkey,
RegistryKeyPermissionCheck
permissionCheck)
303
public RegistryKey CreateSubKey(String subkey,
RegistryKeyPermissionCheck
permissionCheck, RegistryOptions options)
311
return CreateSubKeyInternal(subkey, writable ?
RegistryKeyPermissionCheck
.ReadWriteSubTree :
RegistryKeyPermissionCheck
.ReadSubTree, null, RegistryOptions.None);
317
return CreateSubKeyInternal(subkey, writable ?
RegistryKeyPermissionCheck
.ReadWriteSubTree :
RegistryKeyPermissionCheck
.ReadSubTree, null, options);
325
public unsafe RegistryKey CreateSubKey(String subkey,
RegistryKeyPermissionCheck
permissionCheck, RegistrySecurity registrySecurity)
333
public unsafe RegistryKey CreateSubKey(String subkey,
RegistryKeyPermissionCheck
permissionCheck, RegistryOptions registryOptions, RegistrySecurity registrySecurity)
343
private unsafe RegistryKey CreateSubKeyInternal(String subkey,
RegistryKeyPermissionCheck
permissionCheck, object registrySecurityObj, RegistryOptions registryOptions)
353
RegistryKey key = InternalOpenSubKey(subkey, (permissionCheck !=
RegistryKeyPermissionCheck
.ReadSubTree));
355
CheckPermission(RegistryInternalCheck.CheckSubKeyWritePermission, subkey, false,
RegistryKeyPermissionCheck
.Default);
362
CheckPermission(RegistryInternalCheck.CheckSubKeyCreatePermission, subkey, false,
RegistryKeyPermissionCheck
.Default);
389
GetRegistryKeyAccess(permissionCheck !=
RegistryKeyPermissionCheck
.ReadSubTree) | (int)regView,
395
RegistryKey key = new RegistryKey(result, (permissionCheck !=
RegistryKeyPermissionCheck
.ReadSubTree), false, remoteKey, false, regView);
433
CheckPermission(RegistryInternalCheck.CheckSubKeyWritePermission, subkey, false,
RegistryKeyPermissionCheck
.Default);
501
CheckPermission(RegistryInternalCheck.CheckSubTreeWritePermission, subkey, false,
RegistryKeyPermissionCheck
.Default);
586
CheckPermission(RegistryInternalCheck.CheckValueWritePermission, name, false,
RegistryKeyPermissionCheck
.Default);
638
key.checkMode =
RegistryKeyPermissionCheck
.Default;
708
key.checkMode =
RegistryKeyPermissionCheck
.Default;
734
CheckPermission(RegistryInternalCheck.CheckOpenSubKeyWithWritablePermission, name, writable,
RegistryKeyPermissionCheck
.Default);
765
public RegistryKey OpenSubKey(String name,
RegistryKeyPermissionCheck
permissionCheck) {
781
public RegistryKey OpenSubKey(String name,
RegistryKeyPermissionCheck
permissionCheck, RegistryRights rights) {
788
private RegistryKey InternalOpenSubKey(String name,
RegistryKeyPermissionCheck
permissionCheck, int rights) {
802
RegistryKey key = new RegistryKey(result, (permissionCheck ==
RegistryKeyPermissionCheck
.ReadWriteSubTree), false, remoteKey, false, regView);
867
CheckPermission(RegistryInternalCheck.CheckKeyReadPermission, null, false,
RegistryKeyPermissionCheck
.Default);
998
CheckPermission(RegistryInternalCheck.CheckKeyReadPermission, null, false,
RegistryKeyPermissionCheck
.Default);
1043
CheckPermission(RegistryInternalCheck.CheckKeyReadPermission, null, false,
RegistryKeyPermissionCheck
.Default);
1077
CheckPermission(RegistryInternalCheck.CheckKeyReadPermission, null, false,
RegistryKeyPermissionCheck
.Default);
1128
CheckPermission(RegistryInternalCheck.CheckValueReadPermission, name, false,
RegistryKeyPermissionCheck
.Default);
1153
CheckPermission(RegistryInternalCheck.CheckValueReadPermission, name, false,
RegistryKeyPermissionCheck
.Default);
1168
CheckPermission(RegistryInternalCheck.CheckValueReadPermission, name, false,
RegistryKeyPermissionCheck
.Default);
1394
CheckPermission(RegistryInternalCheck.CheckValueReadPermission, name, false,
RegistryKeyPermissionCheck
.Default);
1472
CheckPermission(RegistryInternalCheck.CheckValueWritePermission, name, false,
RegistryKeyPermissionCheck
.Default);
1475
CheckPermission(RegistryInternalCheck.CheckValueCreatePermission, name, false,
RegistryKeyPermissionCheck
.Default);
1835
private void CheckPermission(RegistryInternalCheck check, string item, bool subKeyWritable,
RegistryKeyPermissionCheck
subKeyCheck) {
1855
BCLDebug.Assert(checkMode ==
RegistryKeyPermissionCheck
.Default, "Should be called from a key opened under default mode only!");
1857
BCLDebug.Assert(subKeyCheck ==
RegistryKeyPermissionCheck
.Default, "subKeyCheck should be Default (unused)");
1867
BCLDebug.Assert(checkMode !=
RegistryKeyPermissionCheck
.ReadSubTree, "We shouldn't allow creating sub key under read-only key!");
1869
BCLDebug.Assert(subKeyCheck ==
RegistryKeyPermissionCheck
.Default, "subKeyCheck should be Default (unused)");
1870
if( checkMode ==
RegistryKeyPermissionCheck
.Default) {
1881
BCLDebug.Assert(checkMode !=
RegistryKeyPermissionCheck
.ReadSubTree, "We shouldn't allow creating sub key under read-only key!");
1883
BCLDebug.Assert(subKeyCheck ==
RegistryKeyPermissionCheck
.Default, "subKeyCheck should be Default (unused)");
1884
if( checkMode ==
RegistryKeyPermissionCheck
.Default) {
1899
BCLDebug.Assert(subKeyCheck ==
RegistryKeyPermissionCheck
.Default, "subKeyCheck should be Default (unused)");
1900
if( checkMode ==
RegistryKeyPermissionCheck
.Default) {
1911
BCLDebug.Assert(checkMode !=
RegistryKeyPermissionCheck
.ReadSubTree, "We shouldn't allow writing value to read-only key!");
1913
BCLDebug.Assert(subKeyCheck ==
RegistryKeyPermissionCheck
.Default, "subKeyCheck should be Default (unused)");
1914
if( checkMode ==
RegistryKeyPermissionCheck
.Default) {
1926
BCLDebug.Assert(subKeyCheck ==
RegistryKeyPermissionCheck
.Default, "subKeyCheck should be Default (unused)");
1938
BCLDebug.Assert(subKeyCheck ==
RegistryKeyPermissionCheck
.Default, "subKeyCheck should be Default (unused)");
1939
if( checkMode ==
RegistryKeyPermissionCheck
.Default) {
1950
BCLDebug.Assert(checkMode !=
RegistryKeyPermissionCheck
.ReadSubTree, "We shouldn't allow writing value to read-only key!");
1952
BCLDebug.Assert(subKeyCheck ==
RegistryKeyPermissionCheck
.Default, "subKeyCheck should be Default (unused)");
1954
if( checkMode ==
RegistryKeyPermissionCheck
.Default) {
1965
BCLDebug.Assert(checkMode !=
RegistryKeyPermissionCheck
.ReadSubTree, "We shouldn't allow creating value under read-only key!");
1967
BCLDebug.Assert(subKeyCheck ==
RegistryKeyPermissionCheck
.Default, "subKeyCheck should be Default (unused)");
1969
if( checkMode ==
RegistryKeyPermissionCheck
.Default) {
1980
if( checkMode ==
RegistryKeyPermissionCheck
.Default) {
1983
BCLDebug.Assert(subKeyCheck ==
RegistryKeyPermissionCheck
.Default, "subKeyCheck should be Default (unused)");
1995
if( subKeyCheck ==
RegistryKeyPermissionCheck
.ReadSubTree) {
1996
if( checkMode ==
RegistryKeyPermissionCheck
.Default) {
2006
else if(subKeyCheck ==
RegistryKeyPermissionCheck
.ReadWriteSubTree) {
2007
if( checkMode !=
RegistryKeyPermissionCheck
.ReadWriteSubTree) {
2023
BCLDebug.Assert(subKeyCheck ==
RegistryKeyPermissionCheck
.Default, "subKeyCheck should be Default (unused)");
2026
if(checkMode ==
RegistryKeyPermissionCheck
.Default) {
2036
if( subKeyWritable && (checkMode ==
RegistryKeyPermissionCheck
.ReadSubTree)) {
2053
if(subKeyCheck ==
RegistryKeyPermissionCheck
.Default) {
2054
if( checkMode ==
RegistryKeyPermissionCheck
.Default) {
2118
static int GetRegistryKeyAccess(
RegistryKeyPermissionCheck
mode) {
2121
case
RegistryKeyPermissionCheck
.ReadSubTree:
2122
case
RegistryKeyPermissionCheck
.Default:
2126
case
RegistryKeyPermissionCheck
.ReadWriteSubTree:
2138
private
RegistryKeyPermissionCheck
GetSubKeyPermissonCheck(bool subkeyWritable) {
2139
if( checkMode ==
RegistryKeyPermissionCheck
.Default) {
2144
return
RegistryKeyPermissionCheck
.ReadWriteSubTree;
2147
return
RegistryKeyPermissionCheck
.ReadSubTree;
2172
static private void ValidateKeyMode(
RegistryKeyPermissionCheck
mode) {
2173
if( mode <
RegistryKeyPermissionCheck
.Default || mode >
RegistryKeyPermissionCheck
.ReadWriteSubTree) {
system\runtime\interopservices\registrationservices.cs (2)
965
RegistryKeyPermissionCheck
.ReadSubTree))
974
RegistryKeyPermissionCheck
.ReadSubTree))
system\timezoneinfo.cs (5)
936
RegistryKeyPermissionCheck
.Default,
1435
RegistryKeyPermissionCheck
.Default,
2314
RegistryKeyPermissionCheck
.Default,
2491
RegistryKeyPermissionCheck
.Default,
2776
RegistryKeyPermissionCheck
.Default,
WindowsBase (1)
Base\System\Windows\BaseCompatibilityPreferences.cs (1)
251
using (var regKey = Registry.CurrentUser.OpenSubKey(WpfPackagingSubKeyPath,
RegistryKeyPermissionCheck
.ReadSubTree))
WsatConfig (1)
Configuration\StdRegProviderWrapper.cs (1)
337
RegistryKeyPermissionCheck
.ReadWriteSubTree,
WsatUI (3)
Configuration\RegistryHelper.cs (2)
42
RegistryKeyPermissionCheck
.ReadWriteSubTree,
88
RegistryKeyPermissionCheck
.ReadWriteSubTree,
Configuration\StdRegProviderWrapper.cs (1)
337
RegistryKeyPermissionCheck
.ReadWriteSubTree,