1
1
// This file contains auto-generated code.
2
2
// Generated from `Microsoft.Win32.Registry, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a`.
3
-
4
3
namespace Microsoft
5
4
{
6
5
namespace Win32
@@ -17,18 +16,16 @@ public static class Registry
17
16
public static void SetValue ( string keyName , string valueName , object value , Microsoft . Win32 . RegistryValueKind valueKind ) => throw null ;
18
17
public static Microsoft . Win32 . RegistryKey Users ;
19
18
}
20
-
21
- public enum RegistryHive : int
19
+ public enum RegistryHive
22
20
{
23
21
ClassesRoot = - 2147483648 ,
24
- CurrentConfig = - 2147483643 ,
25
22
CurrentUser = - 2147483647 ,
26
23
LocalMachine = - 2147483646 ,
27
- PerformanceData = - 2147483644 ,
28
24
Users = - 2147483645 ,
25
+ PerformanceData = - 2147483644 ,
26
+ CurrentConfig = - 2147483643 ,
29
27
}
30
-
31
- public class RegistryKey : System . MarshalByRefObject , System . IDisposable
28
+ public sealed class RegistryKey : System . MarshalByRefObject , System . IDisposable
32
29
{
33
30
public void Close ( ) => throw null ;
34
31
public Microsoft . Win32 . RegistryKey CreateSubKey ( string subkey ) => throw null ;
@@ -64,8 +61,8 @@ public class RegistryKey : System.MarshalByRefObject, System.IDisposable
64
61
public Microsoft . Win32 . RegistryKey OpenSubKey ( string name ) => throw null ;
65
62
public Microsoft . Win32 . RegistryKey OpenSubKey ( string name , Microsoft . Win32 . RegistryKeyPermissionCheck permissionCheck ) => throw null ;
66
63
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 ;
68
64
public Microsoft . Win32 . RegistryKey OpenSubKey ( string name , bool writable ) => throw null ;
65
+ public Microsoft . Win32 . RegistryKey OpenSubKey ( string name , System . Security . AccessControl . RegistryRights rights ) => throw null ;
69
66
public void SetAccessControl ( System . Security . AccessControl . RegistrySecurity registrySecurity ) => throw null ;
70
67
public void SetValue ( string name , object value ) => throw null ;
71
68
public void SetValue ( string name , object value , Microsoft . Win32 . RegistryValueKind valueKind ) => throw null ;
@@ -74,56 +71,49 @@ public class RegistryKey : System.MarshalByRefObject, System.IDisposable
74
71
public int ValueCount { get => throw null ; }
75
72
public Microsoft . Win32 . RegistryView View { get => throw null ; }
76
73
}
77
-
78
- public enum RegistryKeyPermissionCheck : int
74
+ public enum RegistryKeyPermissionCheck
79
75
{
80
76
Default = 0 ,
81
77
ReadSubTree = 1 ,
82
78
ReadWriteSubTree = 2 ,
83
79
}
84
-
85
80
[ System . Flags ]
86
- public enum RegistryOptions : int
81
+ public enum RegistryOptions
87
82
{
88
83
None = 0 ,
89
84
Volatile = 1 ,
90
85
}
91
-
92
- public enum RegistryValueKind : int
86
+ public enum RegistryValueKind
93
87
{
88
+ None = - 1 ,
89
+ Unknown = 0 ,
90
+ String = 1 ,
91
+ ExpandString = 2 ,
94
92
Binary = 3 ,
95
93
DWord = 4 ,
96
- ExpandString = 2 ,
97
94
MultiString = 7 ,
98
- None = - 1 ,
99
95
QWord = 11 ,
100
- String = 1 ,
101
- Unknown = 0 ,
102
96
}
103
-
104
97
[ System . Flags ]
105
- public enum RegistryValueOptions : int
98
+ public enum RegistryValueOptions
106
99
{
107
- DoNotExpandEnvironmentNames = 1 ,
108
100
None = 0 ,
101
+ DoNotExpandEnvironmentNames = 1 ,
109
102
}
110
-
111
- public enum RegistryView : int
103
+ public enum RegistryView
112
104
{
113
105
Default = 0 ,
114
- Registry32 = 512 ,
115
106
Registry64 = 256 ,
107
+ Registry32 = 512 ,
116
108
}
117
-
118
109
namespace SafeHandles
119
110
{
120
- public class SafeRegistryHandle : Microsoft . Win32 . SafeHandles . SafeHandleZeroOrMinusOneIsInvalid
111
+ public sealed class SafeRegistryHandle : Microsoft . Win32 . SafeHandles . SafeHandleZeroOrMinusOneIsInvalid
121
112
{
122
- protected override bool ReleaseHandle ( ) => throw null ;
123
113
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 ;
125
116
}
126
-
127
117
}
128
118
}
129
119
}
@@ -133,42 +123,39 @@ namespace Security
133
123
{
134
124
namespace AccessControl
135
125
{
136
- public class RegistryAccessRule : System . Security . AccessControl . AccessRule
126
+ public sealed class RegistryAccessRule : System . Security . AccessControl . AccessRule
137
127
{
138
128
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 ;
139
129
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 ;
140
130
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 ;
141
131
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 ;
142
132
public System . Security . AccessControl . RegistryRights RegistryRights { get => throw null ; }
143
133
}
144
-
145
- public class RegistryAuditRule : System . Security . AccessControl . AuditRule
134
+ public sealed class RegistryAuditRule : System . Security . AccessControl . AuditRule
146
135
{
147
136
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 ;
148
137
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 ;
149
138
public System . Security . AccessControl . RegistryRights RegistryRights { get => throw null ; }
150
139
}
151
-
152
140
[ System . Flags ]
153
- public enum RegistryRights : int
141
+ public enum RegistryRights
154
142
{
155
- ChangePermissions = 262144 ,
156
- CreateLink = 32 ,
143
+ QueryValues = 1 ,
144
+ SetValue = 2 ,
157
145
CreateSubKey = 4 ,
158
- Delete = 65536 ,
159
146
EnumerateSubKeys = 8 ,
160
- ExecuteKey = 131097 ,
161
- FullControl = 983103 ,
162
147
Notify = 16 ,
163
- QueryValues = 1 ,
164
- ReadKey = 131097 ,
148
+ CreateLink = 32 ,
149
+ Delete = 65536 ,
165
150
ReadPermissions = 131072 ,
166
- SetValue = 2 ,
167
- TakeOwnership = 524288 ,
168
151
WriteKey = 131078 ,
152
+ ExecuteKey = 131097 ,
153
+ ReadKey = 131097 ,
154
+ ChangePermissions = 262144 ,
155
+ TakeOwnership = 524288 ,
156
+ FullControl = 983103 ,
169
157
}
170
-
171
- public class RegistrySecurity : System . Security . AccessControl . NativeObjectSecurity
158
+ public sealed class RegistrySecurity : System . Security . AccessControl . NativeObjectSecurity
172
159
{
173
160
public override System . Type AccessRightType { get => throw null ; }
174
161
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 ;
@@ -188,7 +175,6 @@ public class RegistrySecurity : System.Security.AccessControl.NativeObjectSecuri
188
175
public void SetAccessRule ( System . Security . AccessControl . RegistryAccessRule rule ) => throw null ;
189
176
public void SetAuditRule ( System . Security . AccessControl . RegistryAuditRule rule ) => throw null ;
190
177
}
191
-
192
178
}
193
179
}
194
180
}
0 commit comments