11// This file contains auto-generated code.
22// Generated from `Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a`.
3-
43namespace Microsoft
54{
65 namespace Win32
@@ -10,25 +9,23 @@ public static class Registry
109 public static Microsoft . Win32 . RegistryKey ClassesRoot ;
1110 public static Microsoft . Win32 . RegistryKey CurrentConfig ;
1211 public static Microsoft . Win32 . RegistryKey CurrentUser ;
13- public static object GetValue ( string keyName , string valueName , object defaultValue ) => throw null ;
1412 public static Microsoft . Win32 . RegistryKey LocalMachine ;
1513 public static Microsoft . Win32 . RegistryKey PerformanceData ;
14+ public static Microsoft . Win32 . RegistryKey Users ;
15+ public static object GetValue ( string keyName , string valueName , object defaultValue ) => throw null ;
1616 public static void SetValue ( string keyName , string valueName , object value ) => throw null ;
1717 public static void SetValue ( string keyName , string valueName , object value , Microsoft . Win32 . RegistryValueKind valueKind ) => throw null ;
18- public static Microsoft . Win32 . RegistryKey Users ;
1918 }
20-
21- public enum RegistryHive : int
19+ public enum RegistryHive
2220 {
2321 ClassesRoot = - 2147483648 ,
24- CurrentConfig = - 2147483643 ,
2522 CurrentUser = - 2147483647 ,
2623 LocalMachine = - 2147483646 ,
27- PerformanceData = - 2147483644 ,
2824 Users = - 2147483645 ,
25+ PerformanceData = - 2147483644 ,
26+ CurrentConfig = - 2147483643 ,
2927 }
30-
31- public class RegistryKey : System . MarshalByRefObject , System . IDisposable
28+ public sealed class RegistryKey : System . MarshalByRefObject , System . IDisposable
3229 {
3330 public void Close ( ) => throw null ;
3431 public Microsoft . Win32 . RegistryKey CreateSubKey ( string subkey ) => throw null ;
@@ -56,74 +53,67 @@ public class RegistryKey : System.MarshalByRefObject, System.IDisposable
5653 public object GetValue ( string name , object defaultValue , Microsoft . Win32 . RegistryValueOptions options ) => throw null ;
5754 public Microsoft . Win32 . RegistryValueKind GetValueKind ( string name ) => throw null ;
5855 public string [ ] GetValueNames ( ) => throw null ;
59- public Microsoft . Win32 . SafeHandles . SafeRegistryHandle Handle { get => throw null ; }
60- public string Name { get => throw null ; }
6156 public static Microsoft . Win32 . RegistryKey OpenBaseKey ( Microsoft . Win32 . RegistryHive hKey , Microsoft . Win32 . RegistryView view ) => throw null ;
6257 public static Microsoft . Win32 . RegistryKey OpenRemoteBaseKey ( Microsoft . Win32 . RegistryHive hKey , string machineName ) => throw null ;
6358 public static Microsoft . Win32 . RegistryKey OpenRemoteBaseKey ( Microsoft . Win32 . RegistryHive hKey , string machineName , Microsoft . Win32 . RegistryView view ) => throw null ;
6459 public Microsoft . Win32 . RegistryKey OpenSubKey ( string name ) => throw null ;
6560 public Microsoft . Win32 . RegistryKey OpenSubKey ( string name , Microsoft . Win32 . RegistryKeyPermissionCheck permissionCheck ) => throw null ;
6661 public Microsoft . Win32 . RegistryKey OpenSubKey ( string name , Microsoft . Win32 . RegistryKeyPermissionCheck permissionCheck , System . Security . AccessControl . RegistryRights rights ) => throw null ;
67- public Microsoft . Win32 . RegistryKey OpenSubKey ( string name , System . Security . AccessControl . RegistryRights rights ) => throw null ;
6862 public Microsoft . Win32 . RegistryKey OpenSubKey ( string name , bool writable ) => throw null ;
63+ public Microsoft . Win32 . RegistryKey OpenSubKey ( string name , System . Security . AccessControl . RegistryRights rights ) => throw null ;
6964 public void SetAccessControl ( System . Security . AccessControl . RegistrySecurity registrySecurity ) => throw null ;
7065 public void SetValue ( string name , object value ) => throw null ;
7166 public void SetValue ( string name , object value , Microsoft . Win32 . RegistryValueKind valueKind ) => throw null ;
72- public int SubKeyCount { get => throw null ; }
7367 public override string ToString ( ) => throw null ;
68+ public Microsoft . Win32 . SafeHandles . SafeRegistryHandle Handle { get => throw null ; }
69+ public string Name { get => throw null ; }
70+ public int SubKeyCount { get => throw null ; }
7471 public int ValueCount { get => throw null ; }
7572 public Microsoft . Win32 . RegistryView View { get => throw null ; }
7673 }
77-
78- public enum RegistryKeyPermissionCheck : int
74+ public enum RegistryKeyPermissionCheck
7975 {
8076 Default = 0 ,
8177 ReadSubTree = 1 ,
8278 ReadWriteSubTree = 2 ,
8379 }
84-
8580 [ System . Flags ]
86- public enum RegistryOptions : int
81+ public enum RegistryOptions
8782 {
8883 None = 0 ,
8984 Volatile = 1 ,
9085 }
91-
92- public enum RegistryValueKind : int
86+ public enum RegistryValueKind
9387 {
88+ None = - 1 ,
89+ Unknown = 0 ,
90+ String = 1 ,
91+ ExpandString = 2 ,
9492 Binary = 3 ,
9593 DWord = 4 ,
96- ExpandString = 2 ,
9794 MultiString = 7 ,
98- None = - 1 ,
9995 QWord = 11 ,
100- String = 1 ,
101- Unknown = 0 ,
10296 }
103-
10497 [ System . Flags ]
105- public enum RegistryValueOptions : int
98+ public enum RegistryValueOptions
10699 {
107- DoNotExpandEnvironmentNames = 1 ,
108100 None = 0 ,
101+ DoNotExpandEnvironmentNames = 1 ,
109102 }
110-
111- public enum RegistryView : int
103+ public enum RegistryView
112104 {
113105 Default = 0 ,
114- Registry32 = 512 ,
115106 Registry64 = 256 ,
107+ Registry32 = 512 ,
116108 }
117-
118109 namespace SafeHandles
119110 {
120- public class SafeRegistryHandle : Microsoft . Win32 . SafeHandles . SafeHandleZeroOrMinusOneIsInvalid
111+ public sealed class SafeRegistryHandle : Microsoft . Win32 . SafeHandles . SafeHandleZeroOrMinusOneIsInvalid
121112 {
122- protected override bool ReleaseHandle ( ) => throw null ;
123113 public SafeRegistryHandle ( ) : base ( default ( bool ) ) => throw null ;
124- public SafeRegistryHandle ( System . IntPtr preexistingHandle , bool ownsHandle ) : base ( default ( bool ) ) => throw null ;
114+ public SafeRegistryHandle ( nint preexistingHandle , bool ownsHandle ) : base ( default ( bool ) ) => throw null ;
115+ protected override bool ReleaseHandle ( ) => throw null ;
125116 }
126-
127117 }
128118 }
129119}
@@ -133,51 +123,45 @@ namespace Security
133123 {
134124 namespace AccessControl
135125 {
136- public class RegistryAccessRule : System . Security . AccessControl . AccessRule
126+ public sealed class RegistryAccessRule : System . Security . AccessControl . AccessRule
137127 {
138128 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 ) ) => throw null ;
139129 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 ) ) => throw null ;
140130 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 ) ) => throw null ;
141131 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 ) ) => throw null ;
142132 public System . Security . AccessControl . RegistryRights RegistryRights { get => throw null ; }
143133 }
144-
145- public class RegistryAuditRule : System . Security . AccessControl . AuditRule
134+ public sealed class RegistryAuditRule : System . Security . AccessControl . AuditRule
146135 {
147136 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 ) ) => throw null ;
148137 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 ) ) => throw null ;
149138 public System . Security . AccessControl . RegistryRights RegistryRights { get => throw null ; }
150139 }
151-
152140 [ System . Flags ]
153- public enum RegistryRights : int
141+ public enum RegistryRights
154142 {
155- ChangePermissions = 262144 ,
156- CreateLink = 32 ,
143+ QueryValues = 1 ,
144+ SetValue = 2 ,
157145 CreateSubKey = 4 ,
158- Delete = 65536 ,
159146 EnumerateSubKeys = 8 ,
160- ExecuteKey = 131097 ,
161- FullControl = 983103 ,
162147 Notify = 16 ,
163- QueryValues = 1 ,
164- ReadKey = 131097 ,
148+ CreateLink = 32 ,
149+ Delete = 65536 ,
165150 ReadPermissions = 131072 ,
166- SetValue = 2 ,
167- TakeOwnership = 524288 ,
168151 WriteKey = 131078 ,
152+ ExecuteKey = 131097 ,
153+ ReadKey = 131097 ,
154+ ChangePermissions = 262144 ,
155+ TakeOwnership = 524288 ,
156+ FullControl = 983103 ,
169157 }
170-
171- public class RegistrySecurity : System . Security . AccessControl . NativeObjectSecurity
158+ public sealed class RegistrySecurity : System . Security . AccessControl . NativeObjectSecurity
172159 {
173- public override System . Type AccessRightType { get => throw null ; }
160+ public RegistrySecurity ( ) : base ( default ( bool ) , default ( System . Security . AccessControl . ResourceType ) ) => throw null ;
174161 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 ;
175- public override System . Type AccessRuleType { get => throw null ; }
176162 public void AddAccessRule ( System . Security . AccessControl . RegistryAccessRule rule ) => throw null ;
177163 public void AddAuditRule ( System . Security . AccessControl . RegistryAuditRule rule ) => throw null ;
178164 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 ;
179- public override System . Type AuditRuleType { get => throw null ; }
180- public RegistrySecurity ( ) : base ( default ( bool ) , default ( System . Security . AccessControl . ResourceType ) ) => throw null ;
181165 public bool RemoveAccessRule ( System . Security . AccessControl . RegistryAccessRule rule ) => throw null ;
182166 public void RemoveAccessRuleAll ( System . Security . AccessControl . RegistryAccessRule rule ) => throw null ;
183167 public void RemoveAccessRuleSpecific ( System . Security . AccessControl . RegistryAccessRule rule ) => throw null ;
@@ -187,8 +171,10 @@ public class RegistrySecurity : System.Security.AccessControl.NativeObjectSecuri
187171 public void ResetAccessRule ( System . Security . AccessControl . RegistryAccessRule rule ) => throw null ;
188172 public void SetAccessRule ( System . Security . AccessControl . RegistryAccessRule rule ) => throw null ;
189173 public void SetAuditRule ( System . Security . AccessControl . RegistryAuditRule rule ) => throw null ;
174+ public override System . Type AccessRightType { get => throw null ; }
175+ public override System . Type AccessRuleType { get => throw null ; }
176+ public override System . Type AuditRuleType { get => throw null ; }
190177 }
191-
192178 }
193179 }
194180}
0 commit comments