9e049bd680a92b7f00a58b02a9da6ebe57db6156
[reactos.git] / sdk / include / reactos / idl / lsa.idl
1 /*
2 * Local Security Authority interface definition
3 */
4
5 #include <ms-dtyp.idl>
6
7 typedef [handle] LPWSTR PLSAPR_SERVER_NAME;
8
9 typedef [context_handle] PVOID LSAPR_HANDLE;
10 typedef LSAPR_HANDLE *PLSAPR_HANDLE;
11
12 cpp_quote("#ifndef _WINNT_")
13 typedef struct _LUID {
14 DWORD LowPart;
15 LONG HighPart;
16 } LUID, *PLUID;
17 cpp_quote("#endif")
18
19 cpp_quote("#ifndef _NTDEF_")
20 typedef long NTSTATUS;
21 typedef struct _STRING {
22 WORD Length;
23 WORD MaximumLength;
24 [size_is(MaximumLength), length_is(Length)] LPSTR Buffer;
25 } STRING, *PSTRING;
26
27 cpp_quote("#endif")
28
29 typedef struct _LSAPR_ACL {
30 BYTE AclRevision;
31 BYTE Sbz1;
32 WORD AclSize;
33 [size_is(AclSize - 4)] BYTE Dummy1[*];
34 } LSAPR_ACL, *PLSAPR_ACL;
35
36 cpp_quote("#ifndef _WINNT_")
37 typedef WORD SECURITY_DESCRIPTOR_CONTROL, *PSECURITY_DESCRIPTOR_CONTROL;
38 cpp_quote("#endif")
39
40 typedef struct _LSAPR_SECURITY_DESCRIPTOR {
41 BYTE Revision;
42 BYTE Sbz1;
43 SECURITY_DESCRIPTOR_CONTROL Control;
44 PRPC_SID Owner;
45 PRPC_SID Group;
46 LSAPR_ACL *Sacl;
47 /* FIXME: should be PLSAPR_ACL Sacl; */
48 LSAPR_ACL *Dacl;
49 /* FIXME: should be PLSAPR_ACL Dacl; */
50 } LSAPR_SECURITY_DESCRIPTOR, *PLSAPR_SECURITY_DESCRIPTOR;
51
52 cpp_quote("#if 0")
53
54 typedef enum _SECURITY_IMPERSONATION_LEVEL {
55 SecurityAnonymous = 0,
56 SecurityIdentification,
57 SecurityImpersonation,
58 SecurityDelegation,
59 } SECURITY_IMPERSONATION_LEVEL, *PSECURITY_IMPERSONATION_LEVEL;
60
61 typedef BYTE SECURITY_CONTEXT_TRACKING_MODE, *PSECURITY_CONTEXT_TRACKING_MODE;
62
63 typedef struct _SECURITY_QUALITY_OF_SERVICE {
64 DWORD Length;
65 SECURITY_IMPERSONATION_LEVEL ImpersonationLevel;
66 SECURITY_CONTEXT_TRACKING_MODE ContextTrackingMode;
67 BOOLEAN EffectiveOnly;
68 } SECURITY_QUALITY_OF_SERVICE, *PSECURITY_QUALITY_OF_SERVICE;
69
70 cpp_quote("#endif")
71
72 typedef struct _LSAPR_OBJECT_ATTRIBUTES {
73 DWORD Length;
74 BYTE *RootDirectory;
75 PSTRING ObjectName;
76 DWORD Attributes;
77 PLSAPR_SECURITY_DESCRIPTOR SecurityDescriptor;
78 PSECURITY_QUALITY_OF_SERVICE SecurityQualityOfService;
79 } LSAPR_OBJECT_ATTRIBUTES, *PLSAPR_OBJECT_ATTRIBUTES;
80
81 typedef struct _LSAPR_POLICY_PRIVILEGE_DEF {
82 RPC_UNICODE_STRING Name;
83 LUID LocalValue;
84 } LSAPR_POLICY_PRIVILEGE_DEF, *PLSAPR_POLICY_PRIVILEGE_DEF;
85
86 typedef struct _LSAPR_PRIVILEGE_ENUM_BUFFER {
87 DWORD Entries;
88 [size_is(Entries)] PLSAPR_POLICY_PRIVILEGE_DEF Privileges;
89 } LSAPR_PRIVILEGE_ENUM_BUFFER, *PLSAPR_PRIVILEGE_ENUM_BUFFER;
90
91 typedef struct _LSAPR_ACCOUNT_INFORMATION {
92 PRPC_SID Sid;
93 } LSAPR_ACCOUNT_INFORMATION, *PLSAPR_ACCOUNT_INFORMATION;
94
95 typedef struct _LSAPR_ACCOUNT_ENUM_BUFFER {
96 DWORD EntriesRead;
97 [size_is(EntriesRead)] PLSAPR_ACCOUNT_INFORMATION Information;
98 } LSAPR_ACCOUNT_ENUM_BUFFER, *PLSAPR_ACCOUNT_ENUM_BUFFER;
99
100 cpp_quote("#ifndef _NTSECAPI_H")
101 typedef RPC_UNICODE_STRING LSA_UNICODE_STRING, *PLSA_UNICODE_STRING;
102 cpp_quote("#endif")
103
104 typedef struct _LSAPR_TRUST_INFORMATION {
105 RPC_UNICODE_STRING Name;
106 PRPC_SID Sid;
107 } LSAPR_TRUST_INFORMATION, *PLSAPR_TRUST_INFORMATION;
108
109 typedef struct _LSAPR_REFERENCED_DOMAIN_LIST {
110 DWORD Entries;
111 [size_is(Entries)] PLSAPR_TRUST_INFORMATION Domains;
112 DWORD MaxEntries;
113 } LSAPR_REFERENCED_DOMAIN_LIST, *PLSAPR_REFERENCED_DOMAIN_LIST;
114
115 cpp_quote("#if 0")
116
117 typedef enum _SID_NAME_USE {
118 SidTypeUser = 1,
119 SidTypeGroup,
120 SidTypeDomain,
121 SidTypeAlias,
122 SidTypeWellKnownGroup,
123 SidTypeDeletedAccount,
124 SidTypeInvalid,
125 SidTypeUnknown,
126 SidTypeComputer,
127 SidTypeLabel,
128 } SID_NAME_USE, *PSID_NAME_USE;
129
130 cpp_quote("#endif")
131
132 cpp_quote("#ifndef _NTDEF_")
133
134 typedef struct _LSA_TRANSLATED_SID {
135 SID_NAME_USE Use;
136 DWORD RelativeId;
137 LONG DomainIndex;
138 } LSA_TRANSLATED_SID, *PLSA_TRANSLATED_SID;
139
140 cpp_quote("#endif")
141
142 typedef struct _LSAPR_TRANSLATED_SIDS {
143 DWORD Entries;
144 [size_is(Entries)] PLSA_TRANSLATED_SID Sids;
145 } LSAPR_TRANSLATED_SIDS, *PLSAPR_TRANSLATED_SIDS;
146
147 typedef enum _LSAP_LOOKUP_LEVEL {
148 LsapLookupWksta = 1,
149 LsapLookupPDC,
150 LsapLookupTDL,
151 LsapLookupGC,
152 LsapLookupXForestReferral,
153 LsapLookupXForestResolve,
154 LsapLookupRODCReferralToFullDC,
155 } LSAP_LOOKUP_LEVEL, *PLSAP_LOOKUP_LEVEL;
156
157 typedef struct _LSAPR_SID_INFORMATION {
158 PRPC_SID Sid;
159 } LSAPR_SID_INFORMATION, *PLSAPR_SID_INFORMATION;
160
161 typedef struct _LSAPR_SID_ENUM_BUFFER {
162 DWORD Entries;
163 [size_is(Entries)] PLSAPR_SID_INFORMATION SidInfo;
164 } LSAPR_SID_ENUM_BUFFER, *PLSAPR_SID_ENUM_BUFFER;
165
166 typedef struct _LSAPR_TRANSLATED_NAME {
167 SID_NAME_USE Use;
168 RPC_UNICODE_STRING Name;
169 LONG DomainIndex;
170 } LSAPR_TRANSLATED_NAME, *PLSAPR_TRANSLATED_NAME;
171
172 typedef struct _LSAPR_TRANSLATED_NAMES {
173 DWORD Entries;
174 [size_is(Entries)] PLSAPR_TRANSLATED_NAME Names;
175 } LSAPR_TRANSLATED_NAMES, *PLSAPR_TRANSLATED_NAMES;
176
177 typedef struct _LSAPR_TRANSLATED_NAME_EX {
178 SID_NAME_USE Use;
179 RPC_UNICODE_STRING Name;
180 LONG DomainIndex;
181 DWORD Flags;
182 } LSAPR_TRANSLATED_NAME_EX, *PLSAPR_TRANSLATED_NAME_EX;
183
184 typedef struct _LSAPR_TRANSLATED_NAMES_EX {
185 DWORD Entries;
186 [size_is(Entries)] PLSAPR_TRANSLATED_NAME_EX Names;
187 } LSAPR_TRANSLATED_NAMES_EX, *PLSAPR_TRANSLATED_NAMES_EX;
188
189 typedef struct _LSAPR_TRANSLATED_SID_EX {
190 SID_NAME_USE Use;
191 DWORD RelativeId;
192 LONG DomainIndex;
193 DWORD Flags;
194 } LSAPR_TRANSLATED_SID_EX, *PLSAPR_TRANSLATED_SID_EX;
195
196 typedef struct _LSAPR_TRANSLATED_SIDS_EX {
197 DWORD Entries;
198 [size_is(Entries)] PLSAPR_TRANSLATED_SID_EX Sids;
199 } LSAPR_TRANSLATED_SIDS_EX, *PLSAPR_TRANSLATED_SIDS_EX;
200
201 typedef struct _LSAPR_TRANSLATED_SID_EX2 {
202 SID_NAME_USE Use;
203 PRPC_SID Sid;
204 LONG DomainIndex;
205 DWORD Flags;
206 } LSAPR_TRANSLATED_SID_EX2, *PLSAPR_TRANSLATED_SID_EX2;
207
208 typedef struct _LSAPR_TRANSLATED_SIDS_EX2 {
209 DWORD Entries;
210 [size_is(Entries)] PLSAPR_TRANSLATED_SID_EX2 Sids;
211 } LSAPR_TRANSLATED_SIDS_EX2, *PLSAPR_TRANSLATED_SIDS_EX2;
212
213 typedef LSAPR_TRUST_INFORMATION LSAPR_TRUSTED_DOMAIN_INFORMATION_BASIC;
214
215 typedef struct _LSAPR_SR_SECURITY_DESCRIPTOR {
216 DWORD Length;
217 [size_is(Length)] BYTE *SecurityDescriptor;
218 } LSAPR_SR_SECURITY_DESCRIPTOR, *PLSAPR_SR_SECURITY_DESCRIPTOR;
219
220 cpp_quote("#ifndef _NTSECAPI_H")
221 typedef enum _POLICY_INFORMATION_CLASS {
222 PolicyAuditLogInformation = 1,
223 PolicyAuditEventsInformation,
224 PolicyPrimaryDomainInformation,
225 PolicyPdAccountInformation,
226 PolicyAccountDomainInformation,
227 PolicyLsaServerRoleInformation,
228 PolicyReplicaSourceInformation,
229 PolicyDefaultQuotaInformation,
230 PolicyModificationInformation,
231 PolicyAuditFullSetInformation,
232 PolicyAuditFullQueryInformation,
233 PolicyDnsDomainInformation,
234 PolicyDnsDomainInformationInt,
235 PolicyLocalAccountDomainInformation,
236 PolicyLastEntry,
237 } POLICY_INFORMATION_CLASS, *PPOLICY_INFORMATION_CLASS;
238
239 typedef struct _POLICY_AUDIT_LOG_INFO {
240 DWORD AuditLogPercentFull;
241 DWORD MaximumLogSize;
242 LARGE_INTEGER AuditRetentionPeriod;
243 BOOLEAN AuditLogFullShutdownInProgress;
244 LARGE_INTEGER TimeToShutdown;
245 DWORD NextAuditRecordId;
246 } POLICY_AUDIT_LOG_INFO, *PPOLICY_AUDIT_LOG_INFO;
247 cpp_quote("#endif")
248
249 typedef struct _LSAPR_POLICY_AUDIT_EVENTS_INFO {
250 BOOLEAN AuditingMode;
251 [size_is(MaximumAuditEventCount)] DWORD *EventAuditingOptions;
252 DWORD MaximumAuditEventCount;
253 } LSAPR_POLICY_AUDIT_EVENTS_INFO, *PLSAPR_POLICY_AUDIT_EVENTS_INFO;
254
255 typedef struct _LSAPR_POLICY_PRIMARY_DOM_INFO {
256 RPC_UNICODE_STRING Name;
257 PRPC_SID Sid;
258 } LSAPR_POLICY_PRIMARY_DOM_INFO, *PLSAPR_POLICY_PRIMARY_DOM_INFO;
259
260 typedef struct _LSAPR_POLICY_ACCOUNT_DOM_INFO {
261 RPC_UNICODE_STRING DomainName;
262 PRPC_SID Sid;
263 } LSAPR_POLICY_ACCOUNT_DOM_INFO, *PLSAPR_POLICY_ACCOUNT_DOM_INFO;
264
265 typedef struct _LSAPR_POLICY_PD_ACCOUNT_INFO {
266 RPC_UNICODE_STRING Name;
267 } LSAPR_POLICY_PD_ACCOUNT_INFO, *PLSAPR_POLICY_PD_ACCOUNT_INFO;
268
269 cpp_quote("#ifndef _NTSECAPI_H")
270 typedef enum _POLICY_LSA_SERVER_ROLE {
271 PolicyServerRoleBackup = 2,
272 PolicyServerRolePrimary,
273 } POLICY_LSA_SERVER_ROLE, *PPOLICY_LSA_SERVER_ROLE;
274
275 typedef struct _POLICY_LSA_SERVER_ROLE_INFO {
276 POLICY_LSA_SERVER_ROLE LsaServerRole;
277 } POLICY_LSA_SERVER_ROLE_INFO, *PPOLICY_LSA_SERVER_ROLE_INFO;
278 cpp_quote("#endif")
279
280 typedef struct _POLICY_LSA_REPLICA_SRCE_INFO {
281 RPC_UNICODE_STRING ReplicaSource;
282 RPC_UNICODE_STRING ReplicaAccountName;
283 } POLICY_LSA_REPLICA_SRCE_INFO, *PPOLICY_LSA_REPLICA_SRCE_INFO;
284
285 cpp_quote("#ifndef _WINNT_")
286 typedef struct _QUOTA_LIMITS {
287 INT64 PagedPoolLimit;
288 INT64 NonPagedPoolLimit;
289 INT64 MinimumWorkingSetSize;
290 INT64 MaximumWorkingSetSize;
291 INT64 PagefileLimit;
292 LARGE_INTEGER TimeLimit;
293 } QUOTA_LIMITS, *PQUOTA_LIMITS;
294 cpp_quote("#endif")
295
296 cpp_quote("#ifndef _NTSECAPI_H")
297 typedef struct _POLICY_DEFAULT_QUOTA_INFO {
298 QUOTA_LIMITS QuotaLimits;
299 } POLICY_DEFAULT_QUOTA_INFO, *PPOLICY_DEFAULT_QUOTA_INFO;
300
301 typedef struct _POLICY_MODIFICATION_INFO {
302 LARGE_INTEGER ModifiedId;
303 LARGE_INTEGER DatabaseCreationTime;
304 } POLICY_MODIFICATION_INFO, *PPOLICY_MODIFICATION_INFO;
305
306 typedef struct _POLICY_AUDIT_FULL_SET_INFO {
307 BOOLEAN ShutDownOnFull;
308 } POLICY_AUDIT_FULL_SET_INFO, *PPOLICY_AUDIT_FULL_SET_INFO;
309
310 typedef struct _POLICY_AUDIT_FULL_QUERY_INFO {
311 BOOLEAN ShutDownOnFull;
312 BOOLEAN LogIsFull;
313 } POLICY_AUDIT_FULL_QUERY_INFO, *PPOLICY_AUDIT_FULL_QUERY_INFO;
314 cpp_quote("#endif")
315
316 typedef struct _LSAPR_POLICY_DNS_DOMAIN_INFO {
317 RPC_UNICODE_STRING Name;
318 RPC_UNICODE_STRING DnsDomainName;
319 RPC_UNICODE_STRING DnsForestName;
320 GUID DomainGuid;
321 PRPC_SID Sid;
322 } LSAPR_POLICY_DNS_DOMAIN_INFO, *PLSAPR_POLICY_DNS_DOMAIN_INFO;
323
324 typedef
325 [switch_type(POLICY_INFORMATION_CLASS)] union _LSAPR_POLICY_INFORMATION {
326 [case(PolicyAuditLogInformation)] POLICY_AUDIT_LOG_INFO PolicyAuditLogInfo;
327 [case(PolicyAuditEventsInformation)] LSAPR_POLICY_AUDIT_EVENTS_INFO PolicyAuditEventsInfo;
328 [case(PolicyPrimaryDomainInformation)] LSAPR_POLICY_PRIMARY_DOM_INFO PolicyPrimaryDomInfo;
329 [case(PolicyPdAccountInformation)] LSAPR_POLICY_PD_ACCOUNT_INFO PolicyPdAccountInfo;
330 [case(PolicyAccountDomainInformation)] LSAPR_POLICY_ACCOUNT_DOM_INFO PolicyAccountDomainInfo;
331 [case(PolicyLsaServerRoleInformation)] POLICY_LSA_SERVER_ROLE_INFO PolicyServerRoleInfo;
332 [case(PolicyReplicaSourceInformation)] POLICY_LSA_REPLICA_SRCE_INFO PolicyReplicaSourceInfo;
333 [case(PolicyDefaultQuotaInformation)] POLICY_DEFAULT_QUOTA_INFO PolicyDefaultQuotaInfo;
334 [case(PolicyModificationInformation)] POLICY_MODIFICATION_INFO PolicyModificationInfo;
335 [case(PolicyAuditFullSetInformation)] POLICY_AUDIT_FULL_SET_INFO PolicyAuditFullSetInfo;
336 [case(PolicyAuditFullQueryInformation)] POLICY_AUDIT_FULL_QUERY_INFO PolicyAuditFullQueryInfo;
337 [case(PolicyDnsDomainInformation)] LSAPR_POLICY_DNS_DOMAIN_INFO PolicyDnsDomainInfo;
338 [case(PolicyDnsDomainInformationInt)] LSAPR_POLICY_DNS_DOMAIN_INFO PolicyDnsDomainInfoInt;
339 [case(PolicyLocalAccountDomainInformation)] LSAPR_POLICY_ACCOUNT_DOM_INFO PolicyLocalAccountDomainInfo;
340 } LSAPR_POLICY_INFORMATION, *PLSAPR_POLICY_INFORMATION;
341
342 typedef struct _LSAPR_TRUSTED_ENUM_BUFFER {
343 DWORD EntriesRead;
344 [size_is(EntriesRead)] PLSAPR_TRUST_INFORMATION Information;
345 } LSAPR_TRUSTED_ENUM_BUFFER, *PLSAPR_TRUSTED_ENUM_BUFFER;
346
347 cpp_quote("#ifndef _NTSECAPI_H")
348 typedef enum _TRUSTED_INFORMATION_CLASS {
349 TrustedDomainNameInformation = 1,
350 TrustedControllersInformation,
351 TrustedPosixOffsetInformation,
352 TrustedPasswordInformation,
353 TrustedDomainInformationBasic,
354 TrustedDomainInformationEx,
355 TrustedDomainAuthInformation,
356 TrustedDomainFullInformation,
357 TrustedDomainAuthInformationInternal,
358 TrustedDomainFullInformationInternal,
359 TrustedDomainInformationEx2Internal,
360 TrustedDomainFullInformation2Internal,
361 TrustedDomainSupportedEncryptionTypes,
362 } TRUSTED_INFORMATION_CLASS, *PTRUSTED_INFORMATION_CLASS;
363 cpp_quote("#endif")
364
365 typedef struct _LSAPR_TRUSTED_DOMAIN_NAME_INFO {
366 RPC_UNICODE_STRING Name;
367 } LSAPR_TRUSTED_DOMAIN_NAME_INFO, *PLSAPR_TRUSTED_DOMAIN_NAME_INFO;
368
369 typedef struct _LSAPR_TRUSTED_CONTROLLERS_INFO {
370 DWORD Entries;
371 [size_is(Entries)] PRPC_UNICODE_STRING Names;
372 } LSAPR_TRUSTED_CONTROLLERS_INFO, *PLSAPR_TRUSTED_CONTROLLERS_INFO;
373
374 cpp_quote("#ifndef _NTSECAPI_H")
375 typedef struct _TRUSTED_POSIX_OFFSET_INFO {
376 DWORD Offset;
377 } TRUSTED_POSIX_OFFSET_INFO, *PTRUSTED_POSIX_OFFSET_INFO;
378 cpp_quote("#endif")
379
380 typedef struct _LSAPR_CR_CIPHER_VALUE {
381 DWORD Length;
382 DWORD MaximumLength;
383 [size_is(MaximumLength), length_is(Length)] BYTE *Buffer;
384 } LSAPR_CR_CIPHER_VALUE, *PLSAPR_CR_CIPHER_VALUE;
385
386 typedef struct _LSAPR_TRUSTED_PASSWORD_INFO {
387 PLSAPR_CR_CIPHER_VALUE Password;
388 PLSAPR_CR_CIPHER_VALUE OldPassword;
389 } LSAPR_TRUSTED_PASSWORD_INFO, *PLSAPR_TRUSTED_PASSWORD_INFO;
390
391 typedef struct _LSAPR_USER_RIGHT_SET {
392 DWORD Entries;
393 [size_is(Entries)] PRPC_UNICODE_STRING UserRights;
394 } LSAPR_USER_RIGHT_SET, *PLSAPR_USER_RIGHT_SET;
395
396 cpp_quote("#ifndef _NTSECAPI_H")
397 typedef enum _POLICY_DOMAIN_INFORMATION_CLASS {
398 PolicyDomainQualityOfServiceInformation = 1,
399 PolicyDomainEfsInformation = 2,
400 PolicyDomainKerberosTicketInformation = 3,
401 } POLICY_DOMAIN_INFORMATION_CLASS, *PPOLICY_DOMAIN_INFORMATION_CLASS;
402
403 typedef struct _POLICY_DOMAIN_QUALITY_OF_SERVICE_INFO {
404 DWORD QualityOfService;
405 } POLICY_DOMAIN_QUALITY_OF_SERVICE_INFO, *PPOLICY_DOMAIN_QUALITY_OF_SERVICE_INFO;
406 cpp_quote("#endif")
407
408 typedef struct _LSAPR_POLICY_DOMAIN_EFS_INFO {
409 DWORD InfoLength;
410 [size_is(InfoLength)] BYTE *EfsBlob;
411 } LSAPR_POLICY_DOMAIN_EFS_INFO, *PLSAPR_POLICY_DOMAIN_EFS_INFO;
412
413 cpp_quote("#ifndef _NTSECAPI_H")
414 typedef struct _POLICY_DOMAIN_KERBEROS_TICKET_INFO {
415 DWORD AuthenticationOptions;
416 LARGE_INTEGER MaxServiceTicketAge;
417 LARGE_INTEGER MaxTicketAge;
418 LARGE_INTEGER MaxRenewAge;
419 LARGE_INTEGER MaxClockSkew;
420 LARGE_INTEGER Reserved;
421 } POLICY_DOMAIN_KERBEROS_TICKET_INFO, *PPOLICY_DOMAIN_KERBEROS_TICKET_INFO;
422 cpp_quote("#endif")
423
424 typedef
425 [switch_type(POLICY_DOMAIN_INFORMATION_CLASS)] union _LSAPR_POLICY_DOMAIN_INFORMATION {
426 [case(PolicyDomainQualityOfServiceInformation)] POLICY_DOMAIN_QUALITY_OF_SERVICE_INFO PolicyDomainQualityOfServiceInfo;
427 [case(PolicyDomainEfsInformation)] LSAPR_POLICY_DOMAIN_EFS_INFO PolicyDomainEfsInfo;
428 [case(PolicyDomainKerberosTicketInformation)] POLICY_DOMAIN_KERBEROS_TICKET_INFO PolicyDomainKerbTicketInfo;
429 } LSAPR_POLICY_DOMAIN_INFORMATION, *PLSAPR_POLICY_DOMAIN_INFORMATION;
430
431 typedef struct _LSAPR_TRUSTED_DOMAIN_INFORMATION_EX {
432 RPC_UNICODE_STRING Name;
433 RPC_UNICODE_STRING FlatName;
434 PRPC_SID Sid;
435 DWORD TrustDirection;
436 DWORD TrustType;
437 DWORD TrustAttributes;
438 } LSAPR_TRUSTED_DOMAIN_INFORMATION_EX, *PLSAPR_TRUSTED_DOMAIN_INFORMATION_EX;
439
440 typedef struct _LSAPR_TRUSTED_ENUM_BUFFER_EX {
441 DWORD EntriesRead;
442 [size_is(EntriesRead)] PLSAPR_TRUSTED_DOMAIN_INFORMATION_EX EnumerationBuffer;
443 } LSAPR_TRUSTED_ENUM_BUFFER_EX, *PLSAPR_TRUSTED_ENUM_BUFFER_EX;
444
445 typedef struct _LSAPR_TRUSTED_DOMAIN_INFORMATION_EX2 {
446 RPC_UNICODE_STRING Name;
447 RPC_UNICODE_STRING FlatName;
448 PRPC_SID Sid;
449 DWORD TrustDirection;
450 DWORD TrustType;
451 DWORD TrustAttributes;
452 DWORD ForestTrustLength;
453 [size_is(ForestTrustLength)] BYTE *ForestTrustInfo;
454 } LSAPR_TRUSTED_DOMAIN_INFORMATION_EX2, *PLSAPR_TRUSTED_DOMAIN_INFORMATION_EX2;
455
456 typedef struct _LSAPR_AUTH_INFORMATION {
457 LARGE_INTEGER LastUpdateTime;
458 DWORD AuthType;
459 DWORD AuthInfoLength;
460 [size_is(AuthInfoLength)] BYTE *AuthInfo;
461 } LSAPR_AUTH_INFORMATION, *PLSAPR_AUTH_INFORMATION;
462
463 typedef struct _LSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION {
464 DWORD IncomingAuthInfos;
465 PLSAPR_AUTH_INFORMATION IncomingAuthenticationInformation;
466 PLSAPR_AUTH_INFORMATION IncomingPreviousAuthenticationInformation;
467 DWORD OutgoingAuthInfos;
468 PLSAPR_AUTH_INFORMATION OutgoingAuthenticationInformation;
469 PLSAPR_AUTH_INFORMATION OutgoingPreviousAuthenticationInformation;
470 } LSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION, *PLSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION;
471
472 typedef struct _LSAPR_TRUSTED_DOMAIN_AUTH_BLOB {
473 DWORD AuthSize;
474 [size_is(AuthSize)] BYTE *AuthBlob;
475 } LSAPR_TRUSTED_DOMAIN_AUTH_BLOB, *PLSAPR_TRUSTED_DOMAIN_AUTH_BLOB;
476
477 typedef struct _LSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION_INTERNAL {
478 LSAPR_TRUSTED_DOMAIN_AUTH_BLOB AuthBlob;
479 } LSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION_INTERNAL, *PLSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION_INTERNAL;
480
481 typedef struct _LSAPR_TRUSTED_DOMAIN_FULL_INFORMATION {
482 LSAPR_TRUSTED_DOMAIN_INFORMATION_EX Information;
483 TRUSTED_POSIX_OFFSET_INFO PosixOffset;
484 LSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION AuthInformation;
485 } LSAPR_TRUSTED_DOMAIN_FULL_INFORMATION, *PLSAPR_TRUSTED_DOMAIN_FULL_INFORMATION;
486
487 typedef struct _LSAPR_TRUSTED_DOMAIN_FULL_INFORMATION_INTERNAL {
488 LSAPR_TRUSTED_DOMAIN_INFORMATION_EX Information;
489 TRUSTED_POSIX_OFFSET_INFO PosixOffset;
490 LSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION_INTERNAL AuthInformation;
491 } LSAPR_TRUSTED_DOMAIN_FULL_INFORMATION_INTERNAL, *PLSAPR_TRUSTED_DOMAIN_FULL_INFORMATION_INTERNAL;
492
493 typedef struct _LSAPR_TRUSTED_DOMAIN_FULL_INFORMATION2 {
494 LSAPR_TRUSTED_DOMAIN_INFORMATION_EX2 Information;
495 TRUSTED_POSIX_OFFSET_INFO PosixOffset;
496 LSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION AuthInformation;
497 } LSAPR_TRUSTED_DOMAIN_FULL_INFORMATION2, *PLSAPR_TRUSTED_DOMAIN_FULL_INFORMATION2;
498
499 typedef struct _TRUSTED_DOMAIN_SUPPORTED_ENCRYPTION_TYPES {
500 DWORD SupportedEncryptionTypes;
501 } TRUSTED_DOMAIN_SUPPORTED_ENCRYPTION_TYPES, *PTRUSTED_DOMAIN_SUPPORTED_ENCRYPTION_TYPES;
502
503 typedef
504 [switch_type(TRUSTED_INFORMATION_CLASS)] union _LSAPR_TRUSTED_DOMAIN_INFO {
505 [case(TrustedDomainNameInformation)] LSAPR_TRUSTED_DOMAIN_NAME_INFO TrustedDomainNameInfo;
506 [case(TrustedControllersInformation)] LSAPR_TRUSTED_CONTROLLERS_INFO TrustedControllersInfo;
507 [case(TrustedPosixOffsetInformation)] TRUSTED_POSIX_OFFSET_INFO TrustedPosixOffsetInfo;
508 [case(TrustedPasswordInformation)] LSAPR_TRUSTED_PASSWORD_INFO TrustedPasswordInfo;
509 [case(TrustedDomainInformationBasic)] LSAPR_TRUSTED_DOMAIN_INFORMATION_BASIC TrustedDomainInfoBasic;
510 [case(TrustedDomainInformationEx)] LSAPR_TRUSTED_DOMAIN_INFORMATION_EX TrustedDomainInfoEx;
511 [case(TrustedDomainAuthInformation)] LSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION TrustedAuthInfo;
512 [case(TrustedDomainFullInformation)] LSAPR_TRUSTED_DOMAIN_FULL_INFORMATION TrustedFullInfo;
513 [case(TrustedDomainAuthInformationInternal)] LSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION_INTERNAL TrustedAuthInfoInternal;
514 [case(TrustedDomainFullInformationInternal)] LSAPR_TRUSTED_DOMAIN_FULL_INFORMATION_INTERNAL TrustedFullInfoInternal;
515 [case(TrustedDomainInformationEx2Internal)] LSAPR_TRUSTED_DOMAIN_INFORMATION_EX2 TrustedDomainInfoEx2;
516 [case(TrustedDomainFullInformation2Internal)] LSAPR_TRUSTED_DOMAIN_FULL_INFORMATION2 TrustedFullInfo2;
517 [case(TrustedDomainSupportedEncryptionTypes)] TRUSTED_DOMAIN_SUPPORTED_ENCRYPTION_TYPES TrustedDomainSETs;
518 } LSAPR_TRUSTED_DOMAIN_INFO, *PLSAPR_TRUSTED_DOMAIN_INFO;
519
520 typedef struct _LSAPR_LUID_AND_ATTRIBUTES {
521 LUID Luid;
522 DWORD Attributes;
523 } LSAPR_LUID_AND_ATTRIBUTES, *PLSAPR_LUID_AND_ATTRIBUTES;
524
525 typedef struct _LSAPR_PRIVILEGE_SET {
526 DWORD PrivilegeCount;
527 DWORD Control;
528 [size_is(PrivilegeCount)] LSAPR_LUID_AND_ATTRIBUTES Privilege[*];
529 } LSAPR_PRIVILEGE_SET, *PLSAPR_PRIVILEGE_SET;
530
531 cpp_quote("#ifndef _NTSECAPI_H")
532 typedef enum _LSA_FOREST_TRUST_RECORD_TYPE {
533 ForestTrustTopLevelName = 0,
534 ForestTrustTopLevelNameEx = 1,
535 ForestTrustDomainInfo = 2,
536 } LSA_FOREST_TRUST_RECORD_TYPE;
537
538 typedef struct _LSA_FOREST_TRUST_BINARY_DATA {
539 DWORD Length;
540 [size_is(Length)] BYTE *Buffer;
541 } LSA_FOREST_TRUST_BINARY_DATA, *PLSA_FOREST_TRUST_BINARY_DATA;
542
543 typedef struct _LSA_FOREST_TRUST_DOMAIN_INFO {
544 PRPC_SID Sid;
545 LSA_UNICODE_STRING DnsName;
546 LSA_UNICODE_STRING NetbiosName;
547 } LSA_FOREST_TRUST_DOMAIN_INFO, *PLSA_FOREST_TRUST_DOMAIN_INFO;
548
549 typedef struct _LSA_FOREST_TRUST_RECORD {
550 DWORD Flags;
551 LSA_FOREST_TRUST_RECORD_TYPE ForestTrustType;
552 LARGE_INTEGER Time;
553 [switch_type(LSA_FOREST_TRUST_RECORD_TYPE), switch_is(ForestTrustType)] union {
554 [case(ForestTrustTopLevelName, ForestTrustTopLevelNameEx)] LSA_UNICODE_STRING TopLevelName;
555 [case(ForestTrustDomainInfo)] LSA_FOREST_TRUST_DOMAIN_INFO DomainInfo;
556 [default] LSA_FOREST_TRUST_BINARY_DATA Data;
557 } ForestTrustData;
558 } LSA_FOREST_TRUST_RECORD, *PLSA_FOREST_TRUST_RECORD;
559
560 typedef struct _LSA_FOREST_TRUST_INFORMATION {
561 DWORD RecordCount;
562 [size_is(RecordCount)] PLSA_FOREST_TRUST_RECORD *Entries;
563 } LSA_FOREST_TRUST_INFORMATION, *PLSA_FOREST_TRUST_INFORMATION;
564
565 typedef enum _LSA_FOREST_TRUST_COLLISION_RECORD_TYPE {
566 CollisionTdo = 0,
567 CollisionXref,
568 CollisionOther,
569 } LSA_FOREST_TRUST_COLLISION_RECORD_TYPE;
570
571 typedef struct _LSA_FOREST_TRUST_COLLISION_RECORD {
572 DWORD Index;
573 LSA_FOREST_TRUST_COLLISION_RECORD_TYPE Type;
574 DWORD Flags;
575 LSA_UNICODE_STRING Name;
576 } LSA_FOREST_TRUST_COLLISION_RECORD, *PLSA_FOREST_TRUST_COLLISION_RECORD;
577
578 typedef struct _LSA_FOREST_TRUST_COLLISION_INFORMATION {
579 DWORD RecordCount;
580 [size_is(RecordCount)] PLSA_FOREST_TRUST_COLLISION_RECORD *Entries;
581 } LSA_FOREST_TRUST_COLLISION_INFORMATION, *PLSA_FOREST_TRUST_COLLISION_INFORMATION;
582 cpp_quote("#endif")
583
584
585 /* Credentials */
586
587 typedef struct _CREDPR_TARGET_INFORMATION
588 {
589 LPWSTR TargetName;
590 LPWSTR NetbiosServerName;
591 LPWSTR DnsServerName;
592 LPWSTR NetbiosDomainName;
593 LPWSTR DnsDomainName;
594 LPWSTR DnsTreeName;
595 LPWSTR PackageName;
596 ULONG Flags;
597 } CREDPR_TARGET_INFORMATION, *PCREDPR_TARGET_INFORMATION;
598
599
600 [
601 uuid(12345778-1234-abcd-ef00-0123456789ab),
602 version(0.0),
603 pointer_default(unique),
604 endpoint("ncacn_np:[\\pipe\\lsarpc]")
605 #ifndef __midl
606 ,explicit_handle
607 #endif
608 ]
609 interface lsarpc
610 {
611 /* Function 0 */
612 NTSTATUS
613 __stdcall
614 LsarClose(
615 [in, out] LSAPR_HANDLE *ObjectHandle);
616
617 /* Function 1 */
618 NTSTATUS
619 __stdcall
620 LsarDelete(
621 [in] LSAPR_HANDLE ObjectHandle);
622
623 /* Function 2 */
624 NTSTATUS
625 __stdcall
626 LsarEnumeratePrivileges(
627 [in] LSAPR_HANDLE PolicyHandle,
628 [in, out] DWORD *EnumerationContext,
629 [out] PLSAPR_PRIVILEGE_ENUM_BUFFER EnumerationBuffer,
630 [in] DWORD PreferedMaximumLength);
631
632 /* Function 3 */
633 NTSTATUS
634 __stdcall
635 LsarQuerySecurityObject(
636 [in] LSAPR_HANDLE ObjectHandle,
637 [in] SECURITY_INFORMATION SecurityInformation,
638 [out] PLSAPR_SR_SECURITY_DESCRIPTOR *SecurityDescriptor);
639
640 /* Function 4 */
641 NTSTATUS
642 __stdcall
643 LsarSetSecurityObject(
644 [in] LSAPR_HANDLE ObjectHandle,
645 [in] SECURITY_INFORMATION SecurityInformation,
646 [in] PLSAPR_SR_SECURITY_DESCRIPTOR SecurityDescriptor);
647
648 /* Function 5 */
649 NTSTATUS
650 __stdcall
651 LsarChangePassword(
652 [in] PRPC_UNICODE_STRING String1,
653 [in] PRPC_UNICODE_STRING String2,
654 [in] PRPC_UNICODE_STRING String3,
655 [in] PRPC_UNICODE_STRING String4,
656 [in] PRPC_UNICODE_STRING String5);
657
658 /* Function 6 */
659 NTSTATUS
660 __stdcall
661 LsarOpenPolicy(
662 [in, unique] PLSAPR_SERVER_NAME SystemName,
663 [in] PLSAPR_OBJECT_ATTRIBUTES ObjectAttributes,
664 [in] ACCESS_MASK DesiredAccess,
665 [out] LSAPR_HANDLE *PolicyHandle);
666
667 /* Function 7 */
668 NTSTATUS
669 __stdcall
670 LsarQueryInformationPolicy(
671 [in] LSAPR_HANDLE PolicyHandle,
672 [in] POLICY_INFORMATION_CLASS InformationClass,
673 [out, switch_is(InformationClass)] PLSAPR_POLICY_INFORMATION *PolicyInformation);
674
675 /* Function 8 */
676 NTSTATUS
677 __stdcall
678 LsarSetInformationPolicy(
679 [in] LSAPR_HANDLE PolicyHandle,
680 [in] POLICY_INFORMATION_CLASS InformationClass,
681 [in, switch_is(InformationClass)] PLSAPR_POLICY_INFORMATION PolicyInformation);
682
683 /* Function 9 */
684 NTSTATUS
685 __stdcall
686 LsarClearAuditLog(
687 [in] LSAPR_HANDLE ObjectHandle);
688
689 /* Function 10 */
690 NTSTATUS
691 __stdcall
692 LsarCreateAccount(
693 [in] LSAPR_HANDLE PolicyHandle,
694 [in] PRPC_SID AccountSid,
695 [in] ACCESS_MASK DesiredAccess,
696 [out] LSAPR_HANDLE *AccountHandle);
697
698 /* Function 11 */
699 NTSTATUS
700 __stdcall
701 LsarEnumerateAccounts(
702 [in] LSAPR_HANDLE PolicyHandle,
703 [in, out] DWORD *EnumerationContext,
704 [out] PLSAPR_ACCOUNT_ENUM_BUFFER EnumerationBuffer,
705 [in] DWORD PreferedMaximumLength);
706
707 /* Function 12 */
708 NTSTATUS
709 __stdcall
710 LsarCreateTrustedDomain(
711 [in] LSAPR_HANDLE PolicyHandle,
712 [in] PLSAPR_TRUST_INFORMATION TrustedDomainInformation,
713 [in] ACCESS_MASK DesiredAccess,
714 [out] LSAPR_HANDLE *TrustedDomainHandle);
715
716 /* Function 13 */
717 NTSTATUS
718 __stdcall
719 LsarEnumerateTrustedDomains(
720 [in] LSAPR_HANDLE PolicyHandle,
721 [in, out] DWORD *EnumerationContext,
722 [out] PLSAPR_TRUSTED_ENUM_BUFFER EnumerationBuffer,
723 [in] DWORD PreferedMaximumLength);
724
725 /* Function 14 */
726 NTSTATUS
727 __stdcall
728 LsarLookupNames(
729 [in] LSAPR_HANDLE PolicyHandle,
730 [in] DWORD Count,
731 [in, size_is(Count)] PRPC_UNICODE_STRING Names,
732 [out] PLSAPR_REFERENCED_DOMAIN_LIST *ReferencedDomains,
733 [in, out] PLSAPR_TRANSLATED_SIDS TranslatedSids,
734 [in] LSAP_LOOKUP_LEVEL LookupLevel,
735 [in, out] DWORD *MappedCount);
736
737 /* Function 15 */
738 NTSTATUS
739 __stdcall
740 LsarLookupSids(
741 [in] LSAPR_HANDLE PolicyHandle,
742 [in] PLSAPR_SID_ENUM_BUFFER SidEnumBuffer,
743 [out] PLSAPR_REFERENCED_DOMAIN_LIST *ReferencedDomains,
744 [in, out] PLSAPR_TRANSLATED_NAMES TranslatedNames,
745 [in] LSAP_LOOKUP_LEVEL LookupLevel,
746 [in, out] DWORD *MappedCount);
747
748 /* Function 16 */
749 NTSTATUS
750 __stdcall
751 LsarCreateSecret(
752 [in] LSAPR_HANDLE PolicyHandle,
753 [in] PRPC_UNICODE_STRING SecretName,
754 [in] ACCESS_MASK DesiredAccess,
755 [out] LSAPR_HANDLE *SecretHandle);
756
757 /* Function 17 */
758 NTSTATUS
759 __stdcall
760 LsarOpenAccount(
761 [in] LSAPR_HANDLE PolicyHandle,
762 [in] PRPC_SID AccountSid,
763 [in] ACCESS_MASK DesiredAccess,
764 [out] LSAPR_HANDLE *AccountHandle);
765
766 /* Function 18 */
767 NTSTATUS
768 __stdcall
769 LsarEnumeratePrivilegesAccount(
770 [in] LSAPR_HANDLE AccountHandle,
771 [out] PLSAPR_PRIVILEGE_SET *Privileges);
772
773 /* Function 19 */
774 NTSTATUS
775 __stdcall
776 LsarAddPrivilegesToAccount(
777 [in] LSAPR_HANDLE AccountHandle,
778 [in] PLSAPR_PRIVILEGE_SET Privileges);
779
780 /* Function 20 */
781 NTSTATUS
782 __stdcall
783 LsarRemovePrivilegesFromAccount(
784 [in] LSAPR_HANDLE AccountHandle,
785 [in] BOOLEAN AllPrivileges,
786 [in, unique] PLSAPR_PRIVILEGE_SET Privileges);
787
788 /* Function 21 */
789 NTSTATUS
790 __stdcall
791 LsarGetQuotasForAccount(
792 [in] LSAPR_HANDLE AccountHandle,
793 [out] PQUOTA_LIMITS QuotaLimits);
794
795 /* Function 22 */
796 NTSTATUS
797 __stdcall
798 LsarSetQuotasForAccount(
799 [in] LSAPR_HANDLE AccountHandle,
800 [in] PQUOTA_LIMITS QuotaLimits);
801
802 /* Function 23 */
803 NTSTATUS
804 __stdcall
805 LsarGetSystemAccessAccount(
806 [in] LSAPR_HANDLE AccountHandle,
807 [out] ACCESS_MASK *SystemAccess);
808
809 /* Function 24 */
810 NTSTATUS
811 __stdcall
812 LsarSetSystemAccessAccount(
813 [in] LSAPR_HANDLE AccountHandle,
814 [in] ACCESS_MASK SystemAccess);
815
816 /* Function 25 */
817 NTSTATUS
818 __stdcall
819 LsarOpenTrustedDomain(
820 [in] LSAPR_HANDLE PolicyHandle,
821 [in] PRPC_SID TrustedDomainSid,
822 [in] ACCESS_MASK DesiredAccess,
823 [out] LSAPR_HANDLE *TrustedDomainHandle);
824
825 /* Function 26 */
826 NTSTATUS
827 __stdcall
828 LsarQueryInfoTrustedDomain(
829 [in] LSAPR_HANDLE TrustedDomainHandle,
830 [in] TRUSTED_INFORMATION_CLASS InformationClass,
831 [out, switch_is(InformationClass)] PLSAPR_TRUSTED_DOMAIN_INFO *TrustedDomainInformation);
832
833 /* Function 27 */
834 NTSTATUS
835 __stdcall
836 LsarSetInformationTrustedDomain(
837 [in] LSAPR_HANDLE TrustedDomainHandle,
838 [in] TRUSTED_INFORMATION_CLASS InformationClass,
839 [in, switch_is(InformationClass)] PLSAPR_TRUSTED_DOMAIN_INFO TrustedDomainInformation);
840
841 /* Function 28 */
842 NTSTATUS
843 __stdcall
844 LsarOpenSecret(
845 [in] LSAPR_HANDLE PolicyHandle,
846 [in] PRPC_UNICODE_STRING SecretName,
847 [in] ACCESS_MASK DesiredAccess,
848 [out] LSAPR_HANDLE *SecretHandle);
849
850 /* Function 29 */
851 NTSTATUS
852 __stdcall
853 LsarSetSecret(
854 [in] LSAPR_HANDLE SecretHandle,
855 [in, unique] PLSAPR_CR_CIPHER_VALUE EncryptedCurrentValue,
856 [in, unique] PLSAPR_CR_CIPHER_VALUE EncryptedOldValue);
857
858 /* Function 30 */
859 NTSTATUS
860 __stdcall
861 LsarQuerySecret(
862 [in] LSAPR_HANDLE SecretHandle,
863 [in, out, unique] PLSAPR_CR_CIPHER_VALUE *EncryptedCurrentValue,
864 [in, out, unique] PLARGE_INTEGER CurrentValueSetTime,
865 [in, out, unique] PLSAPR_CR_CIPHER_VALUE *EncryptedOldValue,
866 [in, out, unique] PLARGE_INTEGER OldValueSetTime);
867
868 /* Function 31 */
869 NTSTATUS
870 __stdcall
871 LsarLookupPrivilegeValue(
872 [in] LSAPR_HANDLE PolicyHandle,
873 [in] PRPC_UNICODE_STRING Name,
874 [out] PLUID Value);
875
876 /* Function 32 */
877 NTSTATUS
878 __stdcall
879 LsarLookupPrivilegeName(
880 [in] LSAPR_HANDLE PolicyHandle,
881 [in] PLUID Value,
882 [out] PRPC_UNICODE_STRING *Name);
883
884 /* Function 33 */
885 NTSTATUS
886 __stdcall
887 LsarLookupPrivilegeDisplayName(
888 [in] LSAPR_HANDLE PolicyHandle,
889 [in] PRPC_UNICODE_STRING Name,
890 [in] USHORT ClientLanguage,
891 [in] USHORT ClientSystemDefaultLanguage,
892 [out] PRPC_UNICODE_STRING *DisplayName,
893 [out] USHORT *LanguageReturned);
894
895 /* Function 34 */
896 NTSTATUS
897 __stdcall
898 LsarDeleteObject(
899 [in, out] LSAPR_HANDLE *ObjectHandle);
900
901 cpp_quote("#if _WIN32_WINNT >= 0x0351")
902
903 /* Function 35 */
904 NTSTATUS
905 __stdcall
906 LsarEnumerateAccountsWithUserRight(
907 [in] LSAPR_HANDLE PolicyHandle,
908 [in, unique] PRPC_UNICODE_STRING UserRight,
909 [out] PLSAPR_ACCOUNT_ENUM_BUFFER EnumerationBuffer);
910
911 /* Function 36 */
912 NTSTATUS
913 __stdcall
914 LsarEnumerateAccountRights(
915 [in] LSAPR_HANDLE PolicyHandle,
916 [in] PRPC_SID AccountSid,
917 [out] PLSAPR_USER_RIGHT_SET UserRights);
918
919 /* Function 37 */
920 NTSTATUS
921 __stdcall
922 LsarAddAccountRights(
923 [in] LSAPR_HANDLE PolicyHandle,
924 [in] PRPC_SID AccountSid,
925 [in] PLSAPR_USER_RIGHT_SET UserRights);
926
927 /* Function 38 */
928 NTSTATUS
929 __stdcall
930 LsarRemoveAccountRights(
931 [in] LSAPR_HANDLE PolicyHandle,
932 [in] PRPC_SID AccountSid,
933 [in] BOOLEAN AllRights,
934 [in] PLSAPR_USER_RIGHT_SET UserRights);
935
936 /* Function 39 */
937 NTSTATUS
938 __stdcall
939 LsarQueryTrustedDomainInfo(
940 [in] LSAPR_HANDLE PolicyHandle,
941 [in] PRPC_SID TrustedDomainSid,
942 [in] TRUSTED_INFORMATION_CLASS InformationClass,
943 [out, switch_is(InformationClass)] PLSAPR_TRUSTED_DOMAIN_INFO *TrustedDomainInformation);
944
945 /* Function 40 */
946 NTSTATUS
947 __stdcall
948 LsarSetTrustedDomainInfo(
949 [in] LSAPR_HANDLE PolicyHandle,
950 [in] PRPC_SID TrustedDomainSid,
951 [in] TRUSTED_INFORMATION_CLASS InformationClass,
952 [in, switch_is(InformationClass)] PLSAPR_TRUSTED_DOMAIN_INFO TrustedDomainInformation);
953
954 /* Function 41 */
955 NTSTATUS
956 __stdcall
957 LsarDeleteTrustedDomain(
958 [in] LSAPR_HANDLE PolicyHandle,
959 [in] PRPC_SID TrustedDomainSid);
960
961 /* Function 42 */
962 NTSTATUS
963 __stdcall
964 LsarStorePrivateData(
965 [in] LSAPR_HANDLE PolicyHandle,
966 [in] PRPC_UNICODE_STRING KeyName,
967 [in, unique] PLSAPR_CR_CIPHER_VALUE EncryptedData);
968
969 /* Function 43 */
970 NTSTATUS
971 __stdcall
972 LsarRetrievePrivateData(
973 [in] LSAPR_HANDLE PolicyHandle,
974 [in] PRPC_UNICODE_STRING KeyName,
975 [in, out] PLSAPR_CR_CIPHER_VALUE *EncryptedData);
976
977 /* Function 44 */
978 NTSTATUS
979 __stdcall
980 LsarOpenPolicy2(
981 [in, unique, string] PLSAPR_SERVER_NAME SystemName,
982 [in] PLSAPR_OBJECT_ATTRIBUTES ObjectAttributes,
983 [in] ACCESS_MASK DesiredAccess,
984 [out] LSAPR_HANDLE *PolicyHandle);
985
986 /* Function 45 */
987 NTSTATUS
988 __stdcall
989 LsarGetUserName(
990 [in, unique, string] PLSAPR_SERVER_NAME SystemName,
991 [in, out] PRPC_UNICODE_STRING *UserName,
992 [in, out, unique] PRPC_UNICODE_STRING *DomainName);
993
994 cpp_quote("#if _WIN32_WINNT >= 0x0500")
995
996 /* Function 46 */
997 NTSTATUS
998 __stdcall
999 LsarQueryInformationPolicy2(
1000 [in] LSAPR_HANDLE PolicyHandle,
1001 [in] POLICY_INFORMATION_CLASS InformationClass,
1002 [out, switch_is(InformationClass)] PLSAPR_POLICY_INFORMATION *PolicyInformation);
1003
1004 /* Function 47 */
1005 NTSTATUS
1006 __stdcall
1007 LsarSetInformationPolicy2(
1008 [in] LSAPR_HANDLE PolicyHandle,
1009 [in] POLICY_INFORMATION_CLASS InformationClass,
1010 [in, switch_is(InformationClass)] PLSAPR_POLICY_INFORMATION PolicyInformation);
1011
1012 /* Function 48 */
1013 NTSTATUS
1014 __stdcall
1015 LsarQueryTrustedDomainInfoByName(
1016 [in] LSAPR_HANDLE PolicyHandle,
1017 [in] PRPC_UNICODE_STRING TrustedDomainName,
1018 [in] POLICY_INFORMATION_CLASS InformationClass,
1019 [out, switch_is(InformationClass)] PLSAPR_TRUSTED_DOMAIN_INFO *PolicyInformation);
1020
1021 /* Function 49 */
1022 NTSTATUS
1023 __stdcall
1024 LsarSetTrustedDomainInfoByName(
1025 [in] LSAPR_HANDLE PolicyHandle,
1026 [in] PRPC_UNICODE_STRING TrustedDomainName,
1027 [in] POLICY_INFORMATION_CLASS InformationClass,
1028 [in, switch_is(InformationClass)] PLSAPR_TRUSTED_DOMAIN_INFO PolicyInformation);
1029
1030 /* Function 50 */
1031 NTSTATUS
1032 __stdcall
1033 LsarEnumerateTrustedDomainsEx(
1034 [in] LSAPR_HANDLE PolicyHandle,
1035 [in, out] DWORD *EnumerationContext,
1036 [out] PLSAPR_TRUSTED_ENUM_BUFFER_EX EnumerationBuffer,
1037 [in] DWORD PreferedMaximumLength);
1038
1039 /* Function 51 */
1040 NTSTATUS
1041 __stdcall
1042 LsarCreateTrustedDomainEx(
1043 [in] LSAPR_HANDLE PolicyHandle,
1044 [in] PLSAPR_TRUSTED_DOMAIN_INFORMATION_EX TrustedDomainInformation,
1045 [in] PLSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION AuthentificationInformation,
1046 [in] ACCESS_MASK DesiredAccess,
1047 [out] LSAPR_HANDLE *TrustedDomainHandle);
1048
1049 /* Function 52 */
1050 NTSTATUS
1051 __stdcall
1052 LsarSetPolicyReplicationHandle(
1053 [in, out] PLSAPR_HANDLE PolicyHandle);
1054
1055 /* Function 53 */
1056 NTSTATUS
1057 __stdcall
1058 LsarQueryDomainInformationPolicy(
1059 [in] LSAPR_HANDLE PolicyHandle,
1060 [in] POLICY_INFORMATION_CLASS InformationClass,
1061 [out, switch_is(InformationClass)] PLSAPR_POLICY_DOMAIN_INFORMATION *PolicyInformation);
1062
1063 /* Function 54 */
1064 NTSTATUS
1065 __stdcall
1066 LsarSetDomainInformationPolicy(
1067 [in] LSAPR_HANDLE PolicyHandle,
1068 [in] POLICY_INFORMATION_CLASS InformationClass,
1069 [in, switch_is(InformationClass)] PLSAPR_POLICY_DOMAIN_INFORMATION PolicyInformation);
1070
1071 /* Function 55 */
1072 NTSTATUS
1073 __stdcall
1074 LsarOpenTrustedDomainByName(
1075 [in] LSAPR_HANDLE PolicyHandle,
1076 [in] PRPC_UNICODE_STRING TrustedDomainName,
1077 [in] ACCESS_MASK DesiredAccess,
1078 [out] LSAPR_HANDLE *TrustedDomainHandle);
1079
1080 /* Function 56 */
1081 NTSTATUS
1082 __stdcall
1083 LsarTestCall(
1084 [in] handle_t hBinding); /* FIXME */
1085
1086 /* Function 57 */
1087 NTSTATUS
1088 __stdcall
1089 LsarLookupSids2(
1090 [in] LSAPR_HANDLE PolicyHandle,
1091 [in] PLSAPR_SID_ENUM_BUFFER SidEnumBuffer,
1092 [out] PLSAPR_REFERENCED_DOMAIN_LIST *ReferencedDomains,
1093 [in, out] PLSAPR_TRANSLATED_NAMES_EX TranslatedNames,
1094 [in] LSAP_LOOKUP_LEVEL LookupLevel,
1095 [in, out] DWORD *MappedCount,
1096 [in] DWORD LookupOptions,
1097 [in] DWORD ClientRevision);
1098
1099 /* Function 58 */
1100 NTSTATUS
1101 __stdcall
1102 LsarLookupNames2(
1103 [in] LSAPR_HANDLE PolicyHandle,
1104 [in] DWORD Count,
1105 [in, size_is(Count)] PRPC_UNICODE_STRING Names,
1106 [out] PLSAPR_REFERENCED_DOMAIN_LIST *ReferencedDomains,
1107 [in, out] PLSAPR_TRANSLATED_SIDS_EX TranslatedSids,
1108 [in] LSAP_LOOKUP_LEVEL LookupLevel,
1109 [in, out] DWORD *MappedCount,
1110 [in] DWORD LookupOptions,
1111 [in] DWORD ClientRevision);
1112
1113 /* Function 59 */
1114 NTSTATUS
1115 __stdcall
1116 LsarCreateTrustedDomainEx2(
1117 [in] LSAPR_HANDLE PolicyHandle,
1118 [in] PLSAPR_TRUSTED_DOMAIN_INFORMATION_EX TrustedDomainInformation,
1119 [in] PLSAPR_TRUSTED_DOMAIN_AUTH_INFORMATION_INTERNAL AuthentificationInformation,
1120 [in] ACCESS_MASK DesiredAccess,
1121 [out] LSAPR_HANDLE *TrustedDomainHandle);
1122
1123 cpp_quote("#if _WIN32_WINNT >= 0x0501")
1124
1125 /* Function 60 */
1126 NTSTATUS
1127 __stdcall
1128 CredrWrite(
1129 [in] handle_t hBinding); /* FIXME */
1130
1131 /* Function 61 */
1132 NTSTATUS
1133 __stdcall
1134 CredrRead(
1135 [in] handle_t hBinding); /* FIXME */
1136
1137 /* Function 62 */
1138 NTSTATUS
1139 __stdcall
1140 CredrEnumerate(
1141 [in] handle_t hBinding); /* FIXME */
1142
1143 /* Function 63 */
1144 NTSTATUS
1145 __stdcall
1146 CredrWriteDomainCredentials(
1147 [in] handle_t hBinding); /* FIXME */
1148
1149 /* Function 64 */
1150 NTSTATUS
1151 __stdcall
1152 CredrReadDomainCredentials(
1153 [in] handle_t hBinding); /* FIXME */
1154
1155 /* Function 65 */
1156 NTSTATUS
1157 __stdcall
1158 CredrDelete(
1159 [in] handle_t hBinding,
1160 [in, unique, string] LPWSTR TargetName,
1161 [in] DWORD Type,
1162 [in] DWORD Flags); /* FIXME */
1163
1164 /* Function 66 */
1165 NTSTATUS
1166 __stdcall
1167 CredrGetTargetInfo(
1168 [in] handle_t hBinding,
1169 [in, unique, string] LPWSTR TargetName,
1170 [in] DWORD Flags,
1171 [out] CREDPR_TARGET_INFORMATION *TargetInformation); /* FIXME */
1172
1173 /* Function 67 */
1174 NTSTATUS
1175 __stdcall
1176 CredrProfileLoaded(
1177 [in] handle_t hBinding); /* FIXME */
1178
1179 /* Function 68 */
1180 NTSTATUS
1181 __stdcall
1182 LsarLookupNames3(
1183 [in] LSAPR_HANDLE PolicyHandle,
1184 [in] DWORD Count,
1185 [in, size_is(Count)] PRPC_UNICODE_STRING Names,
1186 [out] PLSAPR_REFERENCED_DOMAIN_LIST *ReferencedDomains,
1187 [in, out] PLSAPR_TRANSLATED_SIDS_EX2 TranslatedSids,
1188 [in] LSAP_LOOKUP_LEVEL LookupLevel,
1189 [in, out] DWORD *MappedCount,
1190 [in] DWORD LookupOptions,
1191 [in] DWORD ClientRevision);
1192
1193 /* Function 69 */
1194 NTSTATUS
1195 __stdcall
1196 CredrGetSessionTypes(
1197 [in] handle_t hBinding,
1198 [in] DWORD MaximumPersistCount,
1199 [out, size_is(MaximumPersistCount)] DWORD *MaximumPersist); /* FIXME */
1200
1201 /* Function 70 */
1202 NTSTATUS
1203 __stdcall
1204 LsarRegisterAuditEvent(
1205 [in] handle_t hBinding); /* FIXME */
1206
1207 /* Function 71 */
1208 NTSTATUS
1209 __stdcall
1210 LsarGenAuditEvent(
1211 [in] handle_t hBinding); /* FIXME */
1212
1213 /* Function 72 */
1214 NTSTATUS
1215 __stdcall
1216 LsarUnregisterAuditEvent(
1217 [in] handle_t hBinding); /* FIXME */
1218
1219 /* Function 73 */
1220 NTSTATUS
1221 __stdcall
1222 LsarQueryForestTrustInformation(
1223 [in] LSAPR_HANDLE PolicyHandle,
1224 [in] PLSA_UNICODE_STRING TrustedDomainName,
1225 [in] LSA_FOREST_TRUST_RECORD_TYPE HighestRecordType,
1226 [out] PLSA_FOREST_TRUST_INFORMATION *ForestTrustInfo);
1227
1228 /* Function 74 */
1229 NTSTATUS
1230 __stdcall
1231 LsarSetForestTrustInformation(
1232 [in] LSAPR_HANDLE PolicyHandle,
1233 [in] PLSA_UNICODE_STRING TrustedDomainName,
1234 [in] LSA_FOREST_TRUST_RECORD_TYPE HighestRecordType,
1235 [in] PLSA_FOREST_TRUST_INFORMATION ForestTrustInfo,
1236 [in] BOOLEAN CheckOnly,
1237 [out] PLSA_FOREST_TRUST_COLLISION_INFORMATION *CollisionInfo);
1238
1239 /* Function 75 */
1240 NTSTATUS
1241 __stdcall
1242 CredrRename(
1243 [in] handle_t hBinding,
1244 [in, unique, string] LPWSTR OldTargetName,
1245 [in, unique, string] LPWSTR NewTargetName,
1246 [in] DWORD Type,
1247 [in] DWORD Flags); /* FIXME */
1248
1249 /* Function 76 */
1250 NTSTATUS
1251 __stdcall
1252 LsarLookupSids3(
1253 [in] LSAPR_HANDLE PolicyHandle,
1254 [in] PLSAPR_SID_ENUM_BUFFER SidEnumBuffer,
1255 [out] PLSAPR_REFERENCED_DOMAIN_LIST *ReferencedDomains,
1256 [in, out] PLSAPR_TRANSLATED_NAMES_EX TranslatedNames,
1257 [in] LSAP_LOOKUP_LEVEL LookupLevel,
1258 [in, out] DWORD *MappedCount,
1259 [in] DWORD LookupOptions,
1260 [in] DWORD ClientRevision);
1261
1262 /* Function 77 */
1263 NTSTATUS
1264 __stdcall
1265 LsarLookupNames4(
1266 [in] LSAPR_HANDLE PolicyHandle,
1267 [in] DWORD Count,
1268 [in, size_is(Count)] PRPC_UNICODE_STRING Names,
1269 [out] PLSAPR_REFERENCED_DOMAIN_LIST *ReferencedDomains,
1270 [in, out] PLSAPR_TRANSLATED_SIDS_EX2 TranslatedSids,
1271 [in] LSAP_LOOKUP_LEVEL LookupLevel,
1272 [in, out] DWORD *MappedCount,
1273 [in] DWORD LookupOptions,
1274 [in] DWORD ClientRevision);
1275
1276 /* Function 78 */
1277 NTSTATUS
1278 __stdcall
1279 LsarOpenPolicySce(
1280 [in, unique] PLSAPR_SERVER_NAME SystemName,
1281 [in] PLSAPR_OBJECT_ATTRIBUTES ObjectAttributes,
1282 [in] ACCESS_MASK DesiredAccess,
1283 [out] LSAPR_HANDLE *PolicyHandle);
1284
1285 /* Function 79 */
1286 NTSTATUS
1287 __stdcall
1288 LsarAdtRegisterSecurityEventSource(
1289 [in] handle_t hBinding); /* FIXME */
1290
1291 /* Function 80 */
1292 NTSTATUS
1293 __stdcall
1294 LsarAdtUnregisterSecurityEventSource(
1295 [in] handle_t hBinding); /* FIXME */
1296
1297 /* Function 81 */
1298 NTSTATUS
1299 __stdcall
1300 LsarAdtReportSecurityEvent(
1301 [in] handle_t hBinding); /* FIXME */
1302
1303 cpp_quote("#endif /* _WIN32_WINNT >= 0x0501 */")
1304 cpp_quote("#endif /* _WIN32_WINNT >= 0x0500 */")
1305 cpp_quote("#endif /* _WIN32_WINNT >= 0x0351 */")
1306
1307 }