| 1 |
// Licensed to the .NET Foundation under one or more agreements. |
| 2 |
// The .NET Foundation licenses this file to you under the MIT license. |
| 3 |
// See the LICENSE file in the project root for more information. |
| 4 |
// ------------------------------------------------------------------------------ |
| 5 |
// Changes to this file must follow the http://aka.ms/api-review process. |
| 6 |
// ------------------------------------------------------------------------------ |
| 7 |
|
| 8 |
|
| 9 |
namespace Microsoft.Win32 |
| 10 |
{ |
| 11 |
public static partial class Registry |
| 12 |
{ |
| 13 |
public static readonly Microsoft.Win32.RegistryKey ClassesRoot; |
| 14 |
public static readonly Microsoft.Win32.RegistryKey CurrentConfig; |
| 15 |
public static readonly Microsoft.Win32.RegistryKey CurrentUser; |
| 16 |
public static readonly Microsoft.Win32.RegistryKey LocalMachine; |
| 17 |
public static readonly Microsoft.Win32.RegistryKey PerformanceData; |
| 18 |
public static readonly Microsoft.Win32.RegistryKey Users; |
| 19 |
public static object GetValue(string keyName, string valueName, object defaultValue) { throw null; } |
| 20 |
public static void SetValue(string keyName, string valueName, object value) { } |
| 21 |
public static void SetValue(string keyName, string valueName, object value, Microsoft.Win32.RegistryValueKind valueKind) { } |
| 22 |
} |
| 23 |
public enum RegistryHive |
| 24 |
{ |
| 25 |
ClassesRoot = -2147483648, |
| 26 |
CurrentConfig = -2147483643, |
| 27 |
CurrentUser = -2147483647, |
| 28 |
LocalMachine = -2147483646, |
| 29 |
PerformanceData = -2147483644, |
| 30 |
Users = -2147483645, |
| 31 |
} |
| 32 |
public sealed partial class RegistryKey : System.MarshalByRefObject, System.IDisposable |
| 33 |
{ |
| 34 |
internal RegistryKey() { } |
| 35 |
public Microsoft.Win32.SafeHandles.SafeRegistryHandle Handle { get { throw null; } } |
| 36 |
public string Name { get { throw null; } } |
| 37 |
public int SubKeyCount { get { throw null; } } |
| 38 |
public int ValueCount { get { throw null; } } |
| 39 |
public Microsoft.Win32.RegistryView View { get { throw null; } } |
| 40 |
public Microsoft.Win32.RegistryKey CreateSubKey(string subkey) { throw null; } |
| 41 |
public Microsoft.Win32.RegistryKey CreateSubKey(string subkey, bool writable) { throw null; } |
| 42 |
public Microsoft.Win32.RegistryKey CreateSubKey(string subkey, bool writable, Microsoft.Win32.RegistryOptions options) { throw null; } |
| 43 |
public Microsoft.Win32.RegistryKey CreateSubKey(string subkey, Microsoft.Win32.RegistryKeyPermissionCheck permissionCheck) { throw null; } |
| 44 |
public Microsoft.Win32.RegistryKey CreateSubKey(string subkey, Microsoft.Win32.RegistryKeyPermissionCheck permissionCheck, Microsoft.Win32.RegistryOptions registryOptions) { throw null; } |
| 45 |
public Microsoft.Win32.RegistryKey CreateSubKey(string subkey, Microsoft.Win32.RegistryKeyPermissionCheck permissionCheck, Microsoft.Win32.RegistryOptions registryOptions, System.Security.AccessControl.RegistrySecurity registrySecurity) { throw null; } |
| 46 |
public Microsoft.Win32.RegistryKey CreateSubKey(string subkey, Microsoft.Win32.RegistryKeyPermissionCheck permissionCheck, System.Security.AccessControl.RegistrySecurity registrySecurity) { throw null; } |
| 47 |
public void DeleteSubKey(string subkey) { } |
| 48 |
public void DeleteSubKey(string subkey, bool throwOnMissingSubKey) { } |
| 49 |
public void DeleteSubKeyTree(string subkey) { } |
| 50 |
public void DeleteSubKeyTree(string subkey, bool throwOnMissingSubKey) { } |
| 51 |
public void DeleteValue(string name) { } |
| 52 |
public void DeleteValue(string name, bool throwOnMissingValue) { } |
| 53 |
public void Dispose() { } |
| 54 |
public void Close() { throw null; } |
| 55 |
public void Flush() { } |
| 56 |
public static Microsoft.Win32.RegistryKey FromHandle(Microsoft.Win32.SafeHandles.SafeRegistryHandle handle) { throw null; } |
| 57 |
public static Microsoft.Win32.RegistryKey FromHandle(Microsoft.Win32.SafeHandles.SafeRegistryHandle handle, Microsoft.Win32.RegistryView view) { throw null; } |
| 58 |
public string[] GetSubKeyNames() { throw null; } |
| 59 |
public object GetValue(string name) { throw null; } |
| 60 |
public object GetValue(string name, object defaultValue) { throw null; } |
| 61 |
public object GetValue(string name, object defaultValue, Microsoft.Win32.RegistryValueOptions options) { throw null; } |
| 62 |
public Microsoft.Win32.RegistryValueKind GetValueKind(string name) { throw null; } |
| 63 |
public string[] GetValueNames() { throw null; } |
| 64 |
public static Microsoft.Win32.RegistryKey OpenBaseKey(Microsoft.Win32.RegistryHive hKey, Microsoft.Win32.RegistryView view) { throw null; } |
| 65 |
public static Microsoft.Win32.RegistryKey OpenRemoteBaseKey(Microsoft.Win32.RegistryHive hKey, string machineName) { throw null; } |
| 66 |
public static Microsoft.Win32.RegistryKey OpenRemoteBaseKey(Microsoft.Win32.RegistryHive hKey, string machineName, Microsoft.Win32.RegistryView view) { throw null; } |
| 67 |
public Microsoft.Win32.RegistryKey OpenSubKey(string name) { throw null; } |
| 68 |
public Microsoft.Win32.RegistryKey OpenSubKey(string name, bool writable) { throw null; } |
| 69 |
public Microsoft.Win32.RegistryKey OpenSubKey(string name, Microsoft.Win32.RegistryKeyPermissionCheck permissionCheck) { throw null; } |
| 70 |
public Microsoft.Win32.RegistryKey OpenSubKey(string name, System.Security.AccessControl.RegistryRights rights) { throw null; } |
| 71 |
public Microsoft.Win32.RegistryKey OpenSubKey(string name, Microsoft.Win32.RegistryKeyPermissionCheck permissionCheck, System.Security.AccessControl.RegistryRights rights) { throw null; } |
| 72 |
public System.Security.AccessControl.RegistrySecurity GetAccessControl() { throw null; } |
| 73 |
public System.Security.AccessControl.RegistrySecurity GetAccessControl(System.Security.AccessControl.AccessControlSections includeSections) { throw null; } |
| 74 |
public void SetAccessControl(System.Security.AccessControl.RegistrySecurity registrySecurity) { throw null; } |
| 75 |
public void SetValue(string name, object value) { } |
| 76 |
public void SetValue(string name, object value, Microsoft.Win32.RegistryValueKind valueKind) { } |
| 77 |
public override string ToString() { throw null; } |
| 78 |
} |
| 79 |
[System.FlagsAttribute] |
| 80 |
public enum RegistryOptions |
| 81 |
{ |
| 82 |
None = 0, |
| 83 |
Volatile = 1, |
| 84 |
} |
| 85 |
public enum RegistryValueKind |
| 86 |
{ |
| 87 |
Binary = 3, |
| 88 |
DWord = 4, |
| 89 |
ExpandString = 2, |
| 90 |
MultiString = 7, |
| 91 |
None = -1, |
| 92 |
QWord = 11, |
| 93 |
String = 1, |
| 94 |
Unknown = 0, |
| 95 |
} |
| 96 |
[System.FlagsAttribute] |
| 97 |
public enum RegistryValueOptions |
| 98 |
{ |
| 99 |
DoNotExpandEnvironmentNames = 1, |
| 100 |
None = 0, |
| 101 |
} |
| 102 |
public enum RegistryView |
| 103 |
{ |
| 104 |
Default = 0, |
| 105 |
Registry32 = 512, |
| 106 |
Registry64 = 256, |
| 107 |
} |
| 108 |
public enum RegistryKeyPermissionCheck |
| 109 |
{ |
| 110 |
Default = 0, |
| 111 |
ReadSubTree = 1, |
| 112 |
ReadWriteSubTree = 2, |
| 113 |
} |
| 114 |
} |
| 115 |
namespace Microsoft.Win32.SafeHandles |
| 116 |
{ |
| 117 |
public sealed partial class SafeRegistryHandle : Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid |
| 118 |
{ |
| 119 |
public SafeRegistryHandle(System.IntPtr preexistingHandle, bool ownsHandle) : base(default(bool)) { } |
| 120 |
public override bool IsInvalid { get { throw null; } } |
| 121 |
protected override bool ReleaseHandle() { throw null; } |
| 122 |
} |
| 123 |
} |
| 124 |
namespace System.Security.AccessControl |
| 125 |
{ |
| 126 |
[System.FlagsAttribute] |
| 127 |
public enum RegistryRights |
| 128 |
{ |
| 129 |
ChangePermissions = 262144, |
| 130 |
CreateLink = 32, |
| 131 |
CreateSubKey = 4, |
| 132 |
Delete = 65536, |
| 133 |
EnumerateSubKeys = 8, |
| 134 |
ExecuteKey = 131097, |
| 135 |
FullControl = 983103, |
| 136 |
Notify = 16, |
| 137 |
QueryValues = 1, |
| 138 |
ReadKey = 131097, |
| 139 |
ReadPermissions = 131072, |
| 140 |
SetValue = 2, |
| 141 |
TakeOwnership = 524288, |
| 142 |
WriteKey = 131078, |
| 143 |
} |
| 144 |
public sealed partial class RegistryAccessRule : System.Security.AccessControl.AccessRule |
| 145 |
{ |
| 146 |
public RegistryAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.RegistryRights registryRights, System.Security.AccessControl.AccessControlType type) : base(default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Security.AccessControl.AccessControlType)) { } |
| 147 |
public RegistryAccessRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.RegistryRights registryRights, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AccessControlType type) : base(default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Security.AccessControl.AccessControlType)) { } |
| 148 |
public RegistryAccessRule(string identity, System.Security.AccessControl.RegistryRights registryRights, System.Security.AccessControl.AccessControlType type) : base(default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Security.AccessControl.AccessControlType)) { } |
| 149 |
public RegistryAccessRule(string identity, System.Security.AccessControl.RegistryRights registryRights, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AccessControlType type) : base(default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Security.AccessControl.AccessControlType)) { } |
| 150 |
public System.Security.AccessControl.RegistryRights RegistryRights { get { throw null; } } |
| 151 |
} |
| 152 |
public sealed partial class RegistryAuditRule : System.Security.AccessControl.AuditRule |
| 153 |
{ |
| 154 |
public RegistryAuditRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.RegistryRights registryRights, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AuditFlags flags) : base(default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Security.AccessControl.AuditFlags)) { } |
| 155 |
public RegistryAuditRule(string identity, System.Security.AccessControl.RegistryRights registryRights, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AuditFlags flags) : base(default(System.Security.Principal.IdentityReference), default(int), default(bool), default(System.Security.AccessControl.InheritanceFlags), default(System.Security.AccessControl.PropagationFlags), default(System.Security.AccessControl.AuditFlags)) { } |
| 156 |
public System.Security.AccessControl.RegistryRights RegistryRights { get { throw null; } } |
| 157 |
} |
| 158 |
public sealed partial class RegistrySecurity : System.Security.AccessControl.NativeObjectSecurity |
| 159 |
{ |
| 160 |
public RegistrySecurity() : base(default(bool), default(System.Security.AccessControl.ResourceType)) { } |
| 161 |
public override System.Type AccessRightType { get { throw null; } } |
| 162 |
public override System.Type AccessRuleType { get { throw null; } } |
| 163 |
public override System.Type AuditRuleType { get { throw null; } } |
| 164 |
public override System.Security.AccessControl.AccessRule AccessRuleFactory(System.Security.Principal.IdentityReference identityReference, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AccessControlType type) { throw null; } |
| 165 |
public void AddAccessRule(System.Security.AccessControl.RegistryAccessRule rule) { } |
| 166 |
public void AddAuditRule(System.Security.AccessControl.RegistryAuditRule rule) { } |
| 167 |
public override System.Security.AccessControl.AuditRule AuditRuleFactory(System.Security.Principal.IdentityReference identityReference, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AuditFlags flags) { throw null; } |
| 168 |
public bool RemoveAccessRule(System.Security.AccessControl.RegistryAccessRule rule) { throw null; } |
| 169 |
public void RemoveAccessRuleAll(System.Security.AccessControl.RegistryAccessRule rule) { } |
| 170 |
public void RemoveAccessRuleSpecific(System.Security.AccessControl.RegistryAccessRule rule) { } |
| 171 |
public bool RemoveAuditRule(System.Security.AccessControl.RegistryAuditRule rule) { throw null; } |
| 172 |
public void RemoveAuditRuleAll(System.Security.AccessControl.RegistryAuditRule rule) { } |
| 173 |
public void RemoveAuditRuleSpecific(System.Security.AccessControl.RegistryAuditRule rule) { } |
| 174 |
public void ResetAccessRule(System.Security.AccessControl.RegistryAccessRule rule) { } |
| 175 |
public void SetAccessRule(System.Security.AccessControl.RegistryAccessRule rule) { } |
| 176 |
public void SetAuditRule(System.Security.AccessControl.RegistryAuditRule rule) { } |
| 177 |
} |
| 178 |
} |