[ADVAPI32]
[reactos.git] / reactos / include / psdk / ntsecapi.h
1 #ifndef _NTSECAPI_H
2 #define _NTSECAPI_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 #define KERB_WRAP_NO_ENCRYPT 0x80000001
8 #define LOGON_GUEST 1
9 #define LOGON_NOENCRYPTION 2
10 #define LOGON_CACHED_ACCOUNT 4
11 #define LOGON_USED_LM_PASSWORD 8
12 #define LOGON_EXTRA_SIDS 32
13 #define LOGON_SUBAUTH_SESSION_KEY 64
14 #define LOGON_SERVER_TRUST_ACCOUNT 128
15 #define LOGON_NTLMV2_ENABLED 256
16 #define LOGON_RESOURCE_GROUPS 512
17 #define LOGON_PROFILE_PATH_RETURNED 1024
18 #define LOGON_GRACE_LOGON 16777216
19 #define LSA_MODE_PASSWORD_PROTECTED 1
20 #define LSA_MODE_INDIVIDUAL_ACCOUNTS 2
21 #define LSA_MODE_MANDATORY_ACCESS 3
22 #define LSA_MODE_LOG_FULL 4
23 #define LSA_SUCCESS(x) ((LONG)(x)>=0)
24 #define MICROSOFT_KERBEROS_NAME_A "Kerberos"
25 #define MICROSOFT_KERBEROS_NAME_W L"Kerberos"
26 #define MSV1_0_ALLOW_SERVER_TRUST_ACCOUNT 32
27 #define MSV1_0_ALLOW_WORKSTATION_TRUST_ACCOUNT 2048
28 #define MSV1_0_CHALLENGE_LENGTH 8
29 #define MSV1_0_CLEARTEXT_PASSWORD_ALLOWED 2
30 #define MSV1_0_CRED_LM_PRESENT 1
31 #define MSV1_0_CRED_NT_PRESENT 2
32 #define MSV1_0_CRED_VERSION 0
33 #define MSV1_0_DONT_TRY_GUEST_ACCOUNT 16
34 #define MSV1_0_LANMAN_SESSION_KEY_LENGTH 8
35 #define MSV1_0_MAX_NTLM3_LIFE 1800
36 #define MSV1_0_MAX_AVL_SIZE 64000
37 #define MSV1_0_MNS_LOGON 16777216
38 #define MSV1_0_NTLM3_RESPONSE_LENGTH 16
39 #define MSV1_0_NTLM3_OWF_LENGTH 16
40 #define MSV1_0_NTLM3_INPUT_LENGTH (sizeof(MSV1_0_NTLM3_RESPONSE)-MSV1_0_NTLM3_RESPONSE_LENGTH)
41 #define MSV1_0_OWF_PASSWORD_LENGTH 16
42 #define MSV1_0_PACKAGE_NAME "MICROSOFT_AUTHENTICATION_PACKAGE_V1_0"
43 #define MSV1_0_PACKAGE_NAMEW L"MICROSOFT_AUTHENTICATION_PACKAGE_V1_0"
44 #define MSV1_0_PACKAGE_NAMEW_LENGTH sizeof(MSV1_0_PACKAGE_NAMEW)-sizeof(WCHAR)
45 #define MSV1_0_RETURN_USER_PARAMETERS 8
46 #define MSV1_0_RETURN_PASSWORD_EXPIRY 64
47 #define MSV1_0_RETURN_PROFILE_PATH 512
48 #define MSV1_0_SUBAUTHENTICATION_DLL_EX 1048576
49 #define MSV1_0_SUBAUTHENTICATION_DLL 0xff000000
50 #define MSV1_0_SUBAUTHENTICATION_DLL_SHIFT 24
51 #define MSV1_0_SUBAUTHENTICATION_DLL_RAS 2
52 #define MSV1_0_SUBAUTHENTICATION_DLL_IIS 132
53 #define MSV1_0_SUBAUTHENTICATION_FLAGS 0xff000000
54 #define MSV1_0_SUBAUTHENTICATION_KEY "System\\CurrentControlSet\\Control\\Lsa\\MSV1_0"
55 #define MSV1_0_SUBAUTHENTICATION_VALUE "Auth"
56 #define MSV1_0_TRY_GUEST_ACCOUNT_ONLY 256
57 #define MSV1_0_TRY_SPECIFIED_DOMAIN_ONLY 1024
58 #define MSV1_0_UPDATE_LOGON_STATISTICS 4
59 #define MSV1_0_USE_CLIENT_CHALLENGE 128
60 #define MSV1_0_USER_SESSION_KEY_LENGTH 16
61 #define POLICY_VIEW_LOCAL_INFORMATION 1
62 #define POLICY_VIEW_AUDIT_INFORMATION 2
63 #define POLICY_GET_PRIVATE_INFORMATION 4
64 #define POLICY_TRUST_ADMIN 8
65 #define POLICY_CREATE_ACCOUNT 16
66 #define POLICY_CREATE_SECRET 32
67 #define POLICY_CREATE_PRIVILEGE 64
68 #define POLICY_SET_DEFAULT_QUOTA_LIMITS 128
69 #define POLICY_SET_AUDIT_REQUIREMENTS 256
70 #define POLICY_AUDIT_LOG_ADMIN 512
71 #define POLICY_SERVER_ADMIN 1024
72 #define POLICY_LOOKUP_NAMES 2048
73 #define POLICY_READ (STANDARD_RIGHTS_READ|6)
74 #define POLICY_WRITE (STANDARD_RIGHTS_WRITE|2040)
75 #define POLICY_EXECUTE (STANDARD_RIGHTS_EXECUTE|2049)
76 #define POLICY_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|4095)
77 #define POLICY_AUDIT_EVENT_UNCHANGED 0
78 #define POLICY_AUDIT_EVENT_SUCCESS 1
79 #define POLICY_AUDIT_EVENT_FAILURE 2
80 #define POLICY_AUDIT_EVENT_NONE 4
81 #define POLICY_AUDIT_EVENT_MASK 7
82 #define POLICY_LOCATION_LOCAL 1
83 #define POLICY_LOCATION_DS 2
84 #define POLICY_MACHINE_POLICY_LOCAL 0
85 #define POLICY_MACHINE_POLICY_DEFAULTED 1
86 #define POLICY_MACHINE_POLICY_EXPLICIT 2
87 #define POLICY_MACHINE_POLICY_UNKNOWN 0xFFFFFFFF
88 #define POLICY_QOS_SCHANEL_REQUIRED 1
89 #define POLICY_QOS_OUTBOUND_INTEGRITY 2
90 #define POLICY_QOS_OUTBOUND_CONFIDENTIALITY 4
91 #define POLICY_QOS_INBOUND_INTEGREITY 8
92 #define POLICY_QOS_INBOUND_CONFIDENTIALITY 16
93 #define POLICY_QOS_ALLOW_LOCAL_ROOT_CERT_STORE 32
94 #define POLICY_QOS_RAS_SERVER_ALLOWED 64
95 #define POLICY_QOS_DHCP_SERVER_ALLOWD 128
96 #define POLICY_KERBEROS_FORWARDABLE 1
97 #define POLICY_KERBEROS_PROXYABLE 2
98 #define POLICY_KERBEROS_RENEWABLE 4
99 #define POLICY_KERBEROS_POSTDATEABLE 8
100 #define SAM_PASSWORD_CHANGE_NOTIFY_ROUTINE "PasswordChangeNotify"
101 #define SAM_INIT_NOTIFICATION_ROUTINE "InitializeChangeNotify"
102 #define SAM_PASSWORD_FILTER_ROUTINE "PasswordFilter"
103 #define SE_INTERACTIVE_LOGON_NAME TEXT("SeInteractiveLogonRight")
104 #define SE_NETWORK_LOGON_NAME TEXT("SeNetworkLogonRight")
105 #define SE_BATCH_LOGON_NAME TEXT("SeBatchLogonRight")
106 #define SE_SERVICE_LOGON_NAME TEXT("SeServiceLogonRight")
107 #define TRUST_ATTRIBUTE_NON_TRANSITIVE 1
108 #define TRUST_ATTRIBUTE_UPLEVEL_ONLY 2
109 #define TRUST_ATTRIBUTE_TREE_PARENT 4194304
110 #define TRUST_ATTRIBUTES_VALID -16580609
111 #define TRUST_AUTH_TYPE_NONE 0
112 #define TRUST_AUTH_TYPE_NT4OWF 1
113 #define TRUST_AUTH_TYPE_CLEAR 2
114 #define TRUST_DIRECTION_DISABLED 0
115 #define TRUST_DIRECTION_INBOUND 1
116 #define TRUST_DIRECTION_OUTBOUND 2
117 #define TRUST_DIRECTION_BIDIRECTIONAL 3
118 #define TRUST_TYPE_DOWNLEVEL 1
119 #define TRUST_TYPE_UPLEVEL 2
120 #define TRUST_TYPE_MIT 3
121 #define TRUST_TYPE_DCE 4
122
123 #define SCESTATUS_SUCCESS 0L
124 #define SCESTATUS_INVALID_PARAMETER 1L
125 #define SCESTATUS_RECORD_NOT_FOUND 2L
126 #define SCESTATUS_INVALID_DATA 3L
127 #define SCESTATUS_OBJECT_EXISTS 4L
128 #define SCESTATUS_BUFFER_TOO_SMALL 5L
129 #define SCESTATUS_PROFILE_NOT_FOUND 6L
130 #define SCESTATUS_BAD_FORMAT 7L
131 #define SCESTATUS_NOT_ENOUGH_RESOURCE 8L
132 #define SCESTATUS_ACCESS_DENIED 9L
133 #define SCESTATUS_CANT_DELETE 10L
134 #define SCESTATUS_PREFIX_OVERFLOW 11L
135 #define SCESTATUS_OTHER_ERROR 12L
136 #define SCESTATUS_ALREADY_RUNNING 13L
137 #define SCESTATUS_SERVICE_NOT_SUPPORT 14L
138 #define SCESTATUS_MOD_NOT_FOUND 15L
139 #define SCESTATUS_EXCEPTION_IN_SERVER 16L
140 #define SCESTATUS_NO_TEMPLATE_GIVEN 17L
141 #define SCESTATUS_NO_MAPPING 18L
142 #define SCESTATUS_TRUST_FAIL 19L
143
144 #if !defined(_NTDEF_) && !defined(__WINE_WINTERNL_H)
145 typedef LONG NTSTATUS, *PNTSTATUS;
146 #endif
147
148 #if defined (_NTDEF_) || defined(__WINE_WINTERNL_H)
149 typedef UNICODE_STRING LSA_UNICODE_STRING, *PLSA_UNICODE_STRING;
150 typedef STRING LSA_STRING, *PLSA_STRING;
151 typedef OBJECT_ATTRIBUTES LSA_OBJECT_ATTRIBUTES, *PLSA_OBJECT_ATTRIBUTES;
152
153 #else
154
155 typedef struct _LSA_UNICODE_STRING {
156 USHORT Length;
157 USHORT MaximumLength;
158 #ifdef MIDL_PASS
159 [size_is(MaximumLength / 2), length_is(Length / 2)]
160 #endif
161 PWSTR Buffer;
162 } LSA_UNICODE_STRING, *PLSA_UNICODE_STRING;
163
164 typedef struct _LSA_STRING {
165 USHORT Length;
166 USHORT MaximumLength;
167 PCHAR Buffer;
168 } LSA_STRING, *PLSA_STRING;
169
170 typedef struct _LSA_OBJECT_ATTRIBUTES {
171 ULONG Length;
172 HANDLE RootDirectory;
173 PLSA_UNICODE_STRING ObjectName;
174 ULONG Attributes;
175 PVOID SecurityDescriptor;
176 PVOID SecurityQualityOfService;
177 } LSA_OBJECT_ATTRIBUTES, *PLSA_OBJECT_ATTRIBUTES;
178
179 typedef LSA_UNICODE_STRING UNICODE_STRING, *PUNICODE_STRING;
180 typedef LSA_STRING STRING, *PSTRING ;
181
182 #endif
183
184 typedef enum _KERB_LOGON_SUBMIT_TYPE
185 {
186 KerbInteractiveLogon = 2,
187 KerbS4ULogon = 12,
188 KerbTicketLogon = 10,
189 KerbTicketUnlockLogon = 11
190 } KERB_LOGON_SUBMIT_TYPE, *PKERB_LOGON_SUBMIT_TYPE;
191 typedef enum _MSV1_0_LOGON_SUBMIT_TYPE {
192 MsV1_0InteractiveLogon = 2,
193 MsV1_0Lm20Logon,
194 MsV1_0NetworkLogon,
195 MsV1_0SubAuthLogon,
196 MsV1_0WorkstationUnlockLogon = 7
197 } MSV1_0_LOGON_SUBMIT_TYPE, *PMSV1_0_LOGON_SUBMIT_TYPE;
198 typedef enum _MSV1_0_PROFILE_BUFFER_TYPE {
199 MsV1_0InteractiveProfile = 2,
200 MsV1_0Lm20LogonProfile,
201 MsV1_0SmartCardProfile
202 } MSV1_0_PROFILE_BUFFER_TYPE, *PMSV1_0_PROFILE_BUFFER_TYPE;
203 typedef enum {
204 MsvAvEOL,
205 MsvAvNbComputerName,
206 MsvAvNbDomainName,
207 MsvAvDnsComputerName,
208 MsvAvDnsDomainName
209 } MSV1_0_AVID;
210 typedef enum _MSV1_0_PROTOCOL_MESSAGE_TYPE {
211 MsV1_0Lm20ChallengeRequest = 0,
212 MsV1_0Lm20GetChallengeResponse,
213 MsV1_0EnumerateUsers,
214 MsV1_0GetUserInfo,
215 MsV1_0ReLogonUsers,
216 MsV1_0ChangePassword,
217 MsV1_0ChangeCachedPassword,
218 MsV1_0GenericPassthrough,
219 MsV1_0CacheLogon,
220 MsV1_0SubAuth,
221 MsV1_0DeriveCredential,
222 MsV1_0CacheLookup
223 } MSV1_0_PROTOCOL_MESSAGE_TYPE, *PMSV1_0_PROTOCOL_MESSAGE_TYPE;
224 typedef enum _POLICY_LSA_SERVER_ROLE {
225 PolicyServerRoleBackup = 2,
226 PolicyServerRolePrimary
227 } POLICY_LSA_SERVER_ROLE, *PPOLICY_LSA_SERVER_ROLE;
228 typedef enum _POLICY_SERVER_ENABLE_STATE {
229 PolicyServerEnabled = 2,
230 PolicyServerDisabled
231 } POLICY_SERVER_ENABLE_STATE, *PPOLICY_SERVER_ENABLE_STATE;
232 typedef enum _POLICY_INFORMATION_CLASS {
233 PolicyAuditLogInformation = 1,
234 PolicyAuditEventsInformation,
235 PolicyPrimaryDomainInformation,
236 PolicyPdAccountInformation,
237 PolicyAccountDomainInformation,
238 PolicyLsaServerRoleInformation,
239 PolicyReplicaSourceInformation,
240 PolicyDefaultQuotaInformation,
241 PolicyModificationInformation,
242 PolicyAuditFullSetInformation,
243 PolicyAuditFullQueryInformation,
244 PolicyDnsDomainInformation,
245 PolicyDnsDomainInformationInt,
246 PolicyLocalAccountDomainInformation,
247 PolicyLastEntry
248 } POLICY_INFORMATION_CLASS, *PPOLICY_INFORMATION_CLASS;
249 typedef enum _POLICY_AUDIT_EVENT_TYPE {
250 AuditCategorySystem,
251 AuditCategoryLogon,
252 AuditCategoryObjectAccess,
253 AuditCategoryPrivilegeUse,
254 AuditCategoryDetailedTracking,
255 AuditCategoryPolicyChange,
256 AuditCategoryAccountManagement,
257 AuditCategoryDirectoryServiceAccess,
258 AuditCategoryAccountLogon
259 } POLICY_AUDIT_EVENT_TYPE, *PPOLICY_AUDIT_EVENT_TYPE;
260 typedef enum _POLICY_DOMAIN_INFORMATION_CLASS {
261 PolicyDomainIPSecReferenceInformation = 1,
262 PolicyDomainQualityOfServiceInformation,
263 PolicyDomainEfsInformation,
264 PolicyDomainPublicKeyInformation,
265 PolicyDomainPasswordPolicyInformation,
266 PolicyDomainLockoutInformation,
267 PolicyDomainKerberosTicketInformation
268 } POLICY_DOMAIN_INFORMATION_CLASS, *PPOLICY_DOMAIN_INFORMATION_CLASS;
269 typedef enum _POLICY_NOTIFICATION_INFORMATION_CLASS {
270 PolicyNotifyAuditEventsInformation = 1,
271 PolicyNotifyAccountDomainInformation,
272 PolicyNotifyServerRoleInformation,
273 PolicyNotifyDnsDomainInformation,
274 PolicyNotifyDomainEfsInformation,
275 PolicyNotifyDomainKerberosTicketInformation,
276 PolicyNotifyMachineAccountPasswordInformation
277 } POLICY_NOTIFICATION_INFORMATION_CLASS, *PPOLICY_NOTIFICATION_INFORMATION_CLASS;
278 typedef enum _SECURITY_LOGON_TYPE {
279 Interactive = 2,
280 Network,
281 Batch,
282 Service,
283 Proxy,
284 Unlock
285 } SECURITY_LOGON_TYPE, *PSECURITY_LOGON_TYPE;
286 typedef struct _SECURITY_LOGON_SESSION_DATA {
287 ULONG Size;
288 LUID LogonId;
289 LSA_UNICODE_STRING UserName;
290 LSA_UNICODE_STRING LogonDomain;
291 LSA_UNICODE_STRING AuthenticationPackage;
292 ULONG LogonType;
293 ULONG Session;
294 PSID Sid;
295 LARGE_INTEGER LogonTime;
296 LSA_UNICODE_STRING LogonServer;
297 LSA_UNICODE_STRING DnsDomainName;
298 LSA_UNICODE_STRING Upn;
299 } SECURITY_LOGON_SESSION_DATA, *PSECURITY_LOGON_SESSION_DATA;
300 typedef enum _TRUSTED_INFORMATION_CLASS {
301 TrustedDomainNameInformation = 1,
302 TrustedControllersInformation,
303 TrustedPosixOffsetInformation,
304 TrustedPasswordInformation,
305 TrustedDomainInformationBasic,
306 TrustedDomainInformationEx,
307 TrustedDomainAuthInformation,
308 TrustedDomainFullInformation,
309 TrustedDomainAuthInformationInternal,
310 TrustedDomainFullInformationInternal
311 } TRUSTED_INFORMATION_CLASS, *PTRUSTED_INFORMATION_CLASS;
312 typedef enum _LSA_FOREST_TRUST_RECORD_TYPE {
313 ForestTrustTopLevelName,
314 ForestTrustTopLevelNameEx,
315 ForestTrustDomainInfo,
316 ForestTrustRecordTypeLast = ForestTrustDomainInfo
317 } LSA_FOREST_TRUST_RECORD_TYPE;
318 typedef enum _LSA_FOREST_TRUST_COLLISION_RECORD_TYPE {
319 CollisionTdo,
320 CollisionXref,
321 CollisionOther
322 } LSA_FOREST_TRUST_COLLISION_RECORD_TYPE;
323 typedef struct _DOMAIN_PASSWORD_INFORMATION {
324 USHORT MinPasswordLength;
325 USHORT PasswordHistoryLength;
326 ULONG PasswordProperties;
327 LARGE_INTEGER MaxPasswordAge;
328 LARGE_INTEGER MinPasswordAge;
329 } DOMAIN_PASSWORD_INFORMATION, *PDOMAIN_PASSWORD_INFORMATION;
330 typedef ULONG LSA_ENUMERATION_HANDLE, *PLSA_ENUMERATION_HANDLE;
331 typedef struct _LSA_ENUMERATION_INFORMATION {
332 PSID Sid;
333 } LSA_ENUMERATION_INFORMATION, *PLSA_ENUMERATION_INFORMATION;
334 typedef ULONG LSA_OPERATIONAL_MODE, *PLSA_OPERATIONAL_MODE;
335
336 typedef struct _LSA_FOREST_TRUST_DOMAIN_INFO {
337 PSID Sid;
338 LSA_UNICODE_STRING DnsName;
339 LSA_UNICODE_STRING NetbiosName;
340 } LSA_FOREST_TRUST_DOMAIN_INFO, *PLSA_FOREST_TRUST_DOMAIN_INFO;
341 typedef struct _LSA_FOREST_TRUST_BINARY_DATA {
342 ULONG Length;
343 PUCHAR Buffer;
344 } LSA_FOREST_TRUST_BINARY_DATA, *PLSA_FOREST_TRUST_BINARY_DATA;
345 typedef struct _LSA_FOREST_TRUST_RECORD {
346 ULONG Flags;
347 LSA_FOREST_TRUST_RECORD_TYPE ForestTrustType;
348 LARGE_INTEGER Time;
349 union {
350 LSA_UNICODE_STRING TopLevelName;
351 LSA_FOREST_TRUST_DOMAIN_INFO DomainInfo;
352 LSA_FOREST_TRUST_BINARY_DATA Data;
353 } ForestTrustData;
354 } LSA_FOREST_TRUST_RECORD, *PLSA_FOREST_TRUST_RECORD;
355 typedef struct _LSA_FOREST_TRUST_INFORMATION {
356 ULONG RecordCount;
357 PLSA_FOREST_TRUST_RECORD *Entries;
358 } LSA_FOREST_TRUST_INFORMATION, *PLSA_FOREST_TRUST_INFORMATION;
359 typedef struct _LSA_FOREST_TRUST_COLLISION_RECORD {
360 ULONG Index;
361 LSA_FOREST_TRUST_COLLISION_RECORD_TYPE Type;
362 ULONG Flags;
363 LSA_UNICODE_STRING Name;
364 } LSA_FOREST_TRUST_COLLISION_RECORD, *PLSA_FOREST_TRUST_COLLISION_RECORD;
365 typedef struct _LSA_FOREST_TRUST_COLLISION_INFORMATION {
366 ULONG RecordCount;
367 PLSA_FOREST_TRUST_COLLISION_RECORD *Entries;
368 } LSA_FOREST_TRUST_COLLISION_INFORMATION, *PLSA_FOREST_TRUST_COLLISION_INFORMATION;
369 typedef struct _LSA_TRUST_INFORMATION {
370 LSA_UNICODE_STRING Name;
371 PSID Sid;
372 } LSA_TRUST_INFORMATION, *PLSA_TRUST_INFORMATION;
373 typedef struct _LSA_REFERENCED_DOMAIN_LIST {
374 ULONG Entries;
375 PLSA_TRUST_INFORMATION Domains;
376 } LSA_REFERENCED_DOMAIN_LIST, *PLSA_REFERENCED_DOMAIN_LIST;
377 typedef struct _LSA_TRANSLATED_SID {
378 SID_NAME_USE Use;
379 ULONG RelativeId;
380 LONG DomainIndex;
381 } LSA_TRANSLATED_SID, *PLSA_TRANSLATED_SID;
382 typedef struct _LSA_TRANSLATED_SID2 {
383 SID_NAME_USE Use;
384 PSID Sid;
385 LONG DomainIndex;
386 ULONG Flags;
387 } LSA_TRANSLATED_SID2, *PLSA_TRANSLATED_SID2;
388 typedef struct _LSA_TRANSLATED_NAME {
389 SID_NAME_USE Use;
390 LSA_UNICODE_STRING Name;
391 LONG DomainIndex;
392 } LSA_TRANSLATED_NAME, *PLSA_TRANSLATED_NAME;
393
394 typedef struct _KERB_INTERACTIVE_LOGON {
395 KERB_LOGON_SUBMIT_TYPE MessageType;
396 UNICODE_STRING LogonDomainName;
397 UNICODE_STRING UserName;
398 UNICODE_STRING Password;
399 } KERB_INTERACTIVE_LOGON, *PKERB_INTERACTIVE_LOGON;
400 typedef struct _MSV1_0_INTERACTIVE_LOGON {
401 MSV1_0_LOGON_SUBMIT_TYPE MessageType;
402 UNICODE_STRING LogonDomainName;
403 UNICODE_STRING UserName;
404 UNICODE_STRING Password;
405 } MSV1_0_INTERACTIVE_LOGON, *PMSV1_0_INTERACTIVE_LOGON;
406 typedef struct _MSV1_0_INTERACTIVE_PROFILE {
407 MSV1_0_PROFILE_BUFFER_TYPE MessageType;
408 USHORT LogonCount;
409 USHORT BadPasswordCount;
410 LARGE_INTEGER LogonTime;
411 LARGE_INTEGER LogoffTime;
412 LARGE_INTEGER KickOffTime;
413 LARGE_INTEGER PasswordLastSet;
414 LARGE_INTEGER PasswordCanChange;
415 LARGE_INTEGER PasswordMustChange;
416 UNICODE_STRING LogonScript;
417 UNICODE_STRING HomeDirectory;
418 UNICODE_STRING FullName;
419 UNICODE_STRING ProfilePath;
420 UNICODE_STRING HomeDirectoryDrive;
421 UNICODE_STRING LogonServer;
422 ULONG UserFlags;
423 } MSV1_0_INTERACTIVE_PROFILE, *PMSV1_0_INTERACTIVE_PROFILE;
424 typedef struct _MSV1_0_LM20_LOGON {
425 MSV1_0_LOGON_SUBMIT_TYPE MessageType;
426 UNICODE_STRING LogonDomainName;
427 UNICODE_STRING UserName;
428 UNICODE_STRING Workstation;
429 UCHAR ChallengeToClient[MSV1_0_CHALLENGE_LENGTH];
430 STRING CaseSensitiveChallengeResponse;
431 STRING CaseInsensitiveChallengeResponse;
432 ULONG ParameterControl;
433 } MSV1_0_LM20_LOGON, * PMSV1_0_LM20_LOGON;
434 typedef struct _MSV1_0_SUBAUTH_LOGON{ /* W2K only */
435 MSV1_0_LOGON_SUBMIT_TYPE MessageType;
436 UNICODE_STRING LogonDomainName;
437 UNICODE_STRING UserName;
438 UNICODE_STRING Workstation;
439 UCHAR ChallengeToClient[MSV1_0_CHALLENGE_LENGTH];
440 STRING AuthenticationInfo1;
441 STRING AuthenticationInfo2;
442 ULONG ParameterControl;
443 ULONG SubAuthPackageId;
444 } MSV1_0_SUBAUTH_LOGON, * PMSV1_0_SUBAUTH_LOGON;
445 typedef struct _MSV1_0_LM20_LOGON_PROFILE {
446 MSV1_0_PROFILE_BUFFER_TYPE MessageType;
447 LARGE_INTEGER KickOffTime;
448 LARGE_INTEGER LogoffTime;
449 ULONG UserFlags;
450 UCHAR UserSessionKey[MSV1_0_USER_SESSION_KEY_LENGTH];
451 UNICODE_STRING LogonDomainName;
452 UCHAR LanmanSessionKey[MSV1_0_LANMAN_SESSION_KEY_LENGTH];
453 UNICODE_STRING LogonServer;
454 UNICODE_STRING UserParameters;
455 } MSV1_0_LM20_LOGON_PROFILE, * PMSV1_0_LM20_LOGON_PROFILE;
456 typedef struct _MSV1_0_SUPPLEMENTAL_CREDENTIAL {
457 ULONG Version;
458 ULONG Flags;
459 UCHAR LmPassword[MSV1_0_OWF_PASSWORD_LENGTH];
460 UCHAR NtPassword[MSV1_0_OWF_PASSWORD_LENGTH];
461 } MSV1_0_SUPPLEMENTAL_CREDENTIAL, *PMSV1_0_SUPPLEMENTAL_CREDENTIAL;
462 typedef struct _MSV1_0_NTLM3_RESPONSE {
463 UCHAR Response[MSV1_0_NTLM3_RESPONSE_LENGTH];
464 UCHAR RespType;
465 UCHAR HiRespType;
466 USHORT Flags;
467 ULONG MsgWord;
468 ULONGLONG TimeStamp;
469 UCHAR ChallengeFromClient[MSV1_0_CHALLENGE_LENGTH];
470 ULONG AvPairsOff;
471 UCHAR Buffer[1];
472 } MSV1_0_NTLM3_RESPONSE, *PMSV1_0_NTLM3_RESPONSE;
473 typedef struct _MSV1_0_AV_PAIR {
474 USHORT AvId;
475 USHORT AvLen;
476 } MSV1_0_AV_PAIR, *PMSV1_0_AV_PAIR;
477 typedef struct _MSV1_0_CHANGEPASSWORD_REQUEST {
478 MSV1_0_PROTOCOL_MESSAGE_TYPE MessageType;
479 UNICODE_STRING DomainName;
480 UNICODE_STRING AccountName;
481 UNICODE_STRING OldPassword;
482 UNICODE_STRING NewPassword;
483 BOOLEAN Impersonating;
484 } MSV1_0_CHANGEPASSWORD_REQUEST, *PMSV1_0_CHANGEPASSWORD_REQUEST;
485 typedef struct _MSV1_0_CHANGEPASSWORD_RESPONSE {
486 MSV1_0_PROTOCOL_MESSAGE_TYPE MessageType;
487 BOOLEAN PasswordInfoValid;
488 DOMAIN_PASSWORD_INFORMATION DomainPasswordInfo;
489 } MSV1_0_CHANGEPASSWORD_RESPONSE, *PMSV1_0_CHANGEPASSWORD_RESPONSE;
490 typedef struct _MSV1_0_SUBAUTH_REQUEST{
491 MSV1_0_PROTOCOL_MESSAGE_TYPE MessageType;
492 ULONG SubAuthPackageId;
493 ULONG SubAuthInfoLength;
494 PUCHAR SubAuthSubmitBuffer;
495 } MSV1_0_SUBAUTH_REQUEST, *PMSV1_0_SUBAUTH_REQUEST;
496 typedef struct _MSV1_0_SUBAUTH_RESPONSE{
497 MSV1_0_PROTOCOL_MESSAGE_TYPE MessageType;
498 ULONG SubAuthInfoLength;
499 PUCHAR SubAuthReturnBuffer;
500 } MSV1_0_SUBAUTH_RESPONSE, *PMSV1_0_SUBAUTH_RESPONSE;
501 #define MSV1_0_DERIVECRED_TYPE_SHA1 0
502 typedef struct _MSV1_0_DERIVECRED_REQUEST {
503 MSV1_0_PROTOCOL_MESSAGE_TYPE MessageType;
504 LUID LogonId;
505 ULONG DeriveCredType;
506 ULONG DeriveCredInfoLength;
507 UCHAR DeriveCredSubmitBuffer[1];
508 } MSV1_0_DERIVECRED_REQUEST, *PMSV1_0_DERIVECRED_REQUEST;
509 typedef struct _MSV1_0_DERIVECRED_RESPONSE {
510 MSV1_0_PROTOCOL_MESSAGE_TYPE MessageType;
511 ULONG DeriveCredInfoLength;
512 UCHAR DeriveCredReturnBuffer[1];
513 } MSV1_0_DERIVECRED_RESPONSE, *PMSV1_0_DERIVECRED_RESPONSE;
514 typedef ULONG POLICY_AUDIT_EVENT_OPTIONS, *PPOLICY_AUDIT_EVENT_OPTIONS;
515 typedef struct _POLICY_PRIVILEGE_DEFINITION {
516 LSA_UNICODE_STRING Name;
517 LUID LocalValue;
518 } POLICY_PRIVILEGE_DEFINITION, *PPOLICY_PRIVILEGE_DEFINITION;
519 typedef struct _POLICY_AUDIT_LOG_INFO {
520 ULONG AuditLogPercentFull;
521 ULONG MaximumLogSize;
522 LARGE_INTEGER AuditRetentionPeriod;
523 BOOLEAN AuditLogFullShutdownInProgress;
524 LARGE_INTEGER TimeToShutdown;
525 ULONG NextAuditRecordId;
526 } POLICY_AUDIT_LOG_INFO, *PPOLICY_AUDIT_LOG_INFO;
527 typedef struct _POLICY_AUDIT_EVENTS_INFO {
528 BOOLEAN AuditingMode;
529 PPOLICY_AUDIT_EVENT_OPTIONS EventAuditingOptions;
530 ULONG MaximumAuditEventCount;
531 } POLICY_AUDIT_EVENTS_INFO, *PPOLICY_AUDIT_EVENTS_INFO;
532 typedef struct _POLICY_ACCOUNT_DOMAIN_INFO {
533 LSA_UNICODE_STRING DomainName;
534 PSID DomainSid;
535 } POLICY_ACCOUNT_DOMAIN_INFO, *PPOLICY_ACCOUNT_DOMAIN_INFO;
536 typedef struct _POLICY_PRIMARY_DOMAIN_INFO {
537 LSA_UNICODE_STRING Name;
538 PSID Sid;
539 } POLICY_PRIMARY_DOMAIN_INFO, *PPOLICY_PRIMARY_DOMAIN_INFO;
540 typedef struct _POLICY_DNS_DOMAIN_INFO {
541 LSA_UNICODE_STRING Name;
542 LSA_UNICODE_STRING DnsDomainName;
543 LSA_UNICODE_STRING DnsForestName;
544 GUID DomainGuid;
545 PSID Sid;
546 } POLICY_DNS_DOMAIN_INFO, *PPOLICY_DNS_DOMAIN_INFO;
547 typedef struct _POLICY_PD_ACCOUNT_INFO {
548 LSA_UNICODE_STRING Name;
549 } POLICY_PD_ACCOUNT_INFO, *PPOLICY_PD_ACCOUNT_INFO;
550 typedef struct _POLICY_LSA_SERVER_ROLE_INFO {
551 POLICY_LSA_SERVER_ROLE LsaServerRole;
552 } POLICY_LSA_SERVER_ROLE_INFO, *PPOLICY_LSA_SERVER_ROLE_INFO;
553 typedef struct _POLICY_REPLICA_SOURCE_INFO {
554 LSA_UNICODE_STRING ReplicaSource;
555 LSA_UNICODE_STRING ReplicaAccountName;
556 } POLICY_REPLICA_SOURCE_INFO, *PPOLICY_REPLICA_SOURCE_INFO;
557 typedef struct _POLICY_DEFAULT_QUOTA_INFO {
558 QUOTA_LIMITS QuotaLimits;
559 } POLICY_DEFAULT_QUOTA_INFO, *PPOLICY_DEFAULT_QUOTA_INFO;
560 typedef struct _POLICY_MODIFICATION_INFO {
561 LARGE_INTEGER ModifiedId;
562 LARGE_INTEGER DatabaseCreationTime;
563 } POLICY_MODIFICATION_INFO, *PPOLICY_MODIFICATION_INFO;
564 typedef struct _POLICY_AUDIT_FULL_SET_INFO {
565 BOOLEAN ShutDownOnFull;
566 } POLICY_AUDIT_FULL_SET_INFO, *PPOLICY_AUDIT_FULL_SET_INFO;
567 typedef struct _POLICY_AUDIT_FULL_QUERY_INFO {
568 BOOLEAN ShutDownOnFull;
569 BOOLEAN LogIsFull;
570 } POLICY_AUDIT_FULL_QUERY_INFO, *PPOLICY_AUDIT_FULL_QUERY_INFO;
571 typedef struct _POLICY_EFS_INFO {
572 ULONG InfoLength;
573 PUCHAR EfsBlob;
574 } POLICY_EFS_INFO, *PPOLICY_EFS_INFO;
575 typedef struct _POLICY_LOCAL_IPSEC_REFERENCE_INFO {
576 LSA_UNICODE_STRING ObjectPath;
577 } POLICY_LOCAL_IPSEC_REFERENCE_INFO, *PPOLICY_LOCAL_IPSEC_REFERENCE_INFO;
578 typedef struct _POLICY_LOCAL_MACHINE_PASSWORD_INFO {
579 LARGE_INTEGER PasswordChangeInterval;
580 } POLICY_LOCAL_MACHINE_PASSWORD_INFO, *PPOLICY_LOCAL_MACHINE_PASSWORD_INFO;
581 typedef struct _POLICY_LOCAL_POLICY_LOCATION_INFO {
582 ULONG PolicyLocation;
583 } POLICY_LOCAL_POLICY_LOCATION_INFO, *PPOLICY_LOCAL_POLICY_LOCATION_INFO;
584 typedef struct _POLICY_LOCAL_QUALITY_OF_SERVICE_INFO {
585 ULONG QualityOfService;
586 } POLICY_LOCAL_QUALITY_OF_SERVICE_INFO, *PPOLICY_LOCAL_QUALITY_OF_SERVICE_INFO;
587 typedef struct _POLICY_LOCAL_QUALITY_OF_SERVICE_INFO POLICY_DOMAIN_QUALITY_OF_SERVICE_INFO;
588 typedef struct _POLICY_LOCAL_QUALITY_OF_SERVICE_INFO *PPOLICY_DOMAIN_QUALITY_OF_SERVICE_INFO;
589 typedef struct _POLICY_DOMAIN_PUBLIC_KEY_INFO {
590 ULONG InfoLength;
591 PUCHAR PublicKeyInfo;
592 } POLICY_DOMAIN_PUBLIC_KEY_INFO, *PPOLICY_DOMAIN_PUBLIC_KEY_INFO;
593 typedef struct _POLICY_DOMAIN_LOCKOUT_INFO {
594 LARGE_INTEGER LockoutDuration;
595 LARGE_INTEGER LockoutObservationWindow;
596 USHORT LockoutThreshold;
597 } POLICY_DOMAIN_LOCKOUT_INFO, *PPOLICY_DOMAIN_LOCKOUT_INFO;
598 typedef struct _POLICY_DOMAIN_PASSWORD_INFO {
599 USHORT MinPasswordLength;
600 USHORT PasswordHistoryLength;
601 ULONG PasswordProperties;
602 LARGE_INTEGER MaxPasswordAge;
603 LARGE_INTEGER MinPasswordAge;
604 } POLICY_DOMAIN_PASSWORD_INFO, *PPOLICY_DOMAIN_PASSWORD_INFO;
605 typedef struct _POLICY_DOMAIN_KERBEROS_TICKET_INFO {
606 ULONG AuthenticationOptions;
607 LARGE_INTEGER MinTicketAge;
608 LARGE_INTEGER MaxTicketAge;
609 LARGE_INTEGER MaxRenewAge;
610 LARGE_INTEGER ProxyLifetime;
611 LARGE_INTEGER ForceLogoff;
612 } POLICY_DOMAIN_KERBEROS_TICKET_INFO, *PPOLICY_DOMAIN_KERBEROS_TICKET_INFO;
613 typedef PVOID LSA_HANDLE, *PLSA_HANDLE;
614 typedef struct _TRUSTED_DOMAIN_NAME_INFO {
615 LSA_UNICODE_STRING Name;
616 } TRUSTED_DOMAIN_NAME_INFO, *PTRUSTED_DOMAIN_NAME_INFO;
617 typedef struct _TRUSTED_CONTROLLERS_INFO {
618 ULONG Entries;
619 PLSA_UNICODE_STRING Names;
620 } TRUSTED_CONTROLLERS_INFO, *PTRUSTED_CONTROLLERS_INFO;
621 typedef struct _TRUSTED_POSIX_OFFSET_INFO {
622 ULONG Offset;
623 } TRUSTED_POSIX_OFFSET_INFO, *PTRUSTED_POSIX_OFFSET_INFO;
624 typedef struct _TRUSTED_PASSWORD_INFO {
625 LSA_UNICODE_STRING Password;
626 LSA_UNICODE_STRING OldPassword;
627 } TRUSTED_PASSWORD_INFO, *PTRUSTED_PASSWORD_INFO;
628 typedef LSA_TRUST_INFORMATION TRUSTED_DOMAIN_INFORMATION_BASIC;
629 typedef PLSA_TRUST_INFORMATION *PTRUSTED_DOMAIN_INFORMATION_BASIC;
630 typedef struct _TRUSTED_DOMAIN_INFORMATION_EX {
631 LSA_UNICODE_STRING Name;
632 LSA_UNICODE_STRING FlatName;
633 PSID Sid;
634 ULONG TrustDirection;
635 ULONG TrustType;
636 ULONG TrustAttributes;
637 } TRUSTED_DOMAIN_INFORMATION_EX, *PTRUSTED_DOMAIN_INFORMATION_EX;
638 typedef struct _LSA_AUTH_INFORMATION {
639 LARGE_INTEGER LastUpdateTime;
640 ULONG AuthType;
641 ULONG AuthInfoLength;
642 PUCHAR AuthInfo;
643 } LSA_AUTH_INFORMATION, *PLSA_AUTH_INFORMATION;
644 typedef struct _TRUSTED_DOMAIN_AUTH_INFORMATION {
645 ULONG IncomingAuthInfos;
646 PLSA_AUTH_INFORMATION IncomingAuthenticationInformation;
647 PLSA_AUTH_INFORMATION IncomingPreviousAuthenticationInformation;
648 ULONG OutgoingAuthInfos;
649 PLSA_AUTH_INFORMATION OutgoingAuthenticationInformation;
650 PLSA_AUTH_INFORMATION OutgoingPreviousAuthenticationInformation;
651 } TRUSTED_DOMAIN_AUTH_INFORMATION, *PTRUSTED_DOMAIN_AUTH_INFORMATION;
652 typedef struct _TRUSTED_DOMAIN_FULL_INFORMATION {
653 TRUSTED_DOMAIN_INFORMATION_EX Information;
654 TRUSTED_POSIX_OFFSET_INFO PosixOffset;
655 TRUSTED_DOMAIN_AUTH_INFORMATION AuthInformation;
656 } TRUSTED_DOMAIN_FULL_INFORMATION, *PTRUSTED_DOMAIN_FULL_INFORMATION;
657
658 #define RtlGenRandom SystemFunction036
659
660 BOOLEAN WINAPI RtlGenRandom(PVOID,ULONG);
661
662 NTSTATUS NTAPI LsaAddAccountRights(LSA_HANDLE,PSID,PLSA_UNICODE_STRING,ULONG);
663 NTSTATUS NTAPI LsaAddPrivilegesToAccount(LSA_HANDLE, PPRIVILEGE_SET);
664 NTSTATUS NTAPI LsaCallAuthenticationPackage(HANDLE,ULONG,PVOID,ULONG,PVOID*,
665 PULONG,PNTSTATUS);
666 NTSTATUS NTAPI LsaClearAuditLog(LSA_HANDLE);
667 NTSTATUS NTAPI LsaClose(LSA_HANDLE);
668 NTSTATUS NTAPI LsaConnectUntrusted(PHANDLE);
669 NTSTATUS NTAPI LsaCreateAccount(LSA_HANDLE,PSID,ACCESS_MASK,PLSA_HANDLE);
670 NTSTATUS NTAPI LsaCreateSecret(LSA_HANDLE,PLSA_UNICODE_STRING,ACCESS_MASK,PLSA_HANDLE);
671 NTSTATUS NTAPI LsaCreateTrustedDomain(LSA_HANDLE,PLSA_TRUST_INFORMATION,
672 ACCESS_MASK,PLSA_HANDLE);
673 NTSTATUS NTAPI LsaCreateTrustedDomainEx(LSA_HANDLE,PTRUSTED_DOMAIN_INFORMATION_EX,
674 PTRUSTED_DOMAIN_AUTH_INFORMATION,ACCESS_MASK,PLSA_HANDLE);
675 NTSTATUS NTAPI LsaDelete(LSA_HANDLE);
676 NTSTATUS NTAPI LsaDeleteTrustedDomain(LSA_HANDLE,PSID);
677 NTSTATUS NTAPI LsaDeregisterLogonProcess(HANDLE);
678 NTSTATUS NTAPI LsaEnumerateAccountRights(LSA_HANDLE,PSID,PLSA_UNICODE_STRING*,PULONG);
679 NTSTATUS NTAPI LsaEnumerateAccounts(LSA_HANDLE,PLSA_ENUMERATION_HANDLE,PVOID*,
680 ULONG,PULONG);
681 NTSTATUS NTAPI LsaEnumerateAccountsWithUserRight(LSA_HANDLE,PLSA_UNICODE_STRING,
682 PVOID*,PULONG);
683 NTSTATUS NTAPI LsaEnumeratePrivileges(LSA_HANDLE,PLSA_ENUMERATION_HANDLE,
684 PVOID*,ULONG,PULONG);
685 NTSTATUS NTAPI LsaEnumeratePrivilegesOfAccount(LSA_HANDLE,PPRIVILEGE_SET*);
686 NTSTATUS NTAPI LsaEnumerateTrustedDomains(LSA_HANDLE,PLSA_ENUMERATION_HANDLE,
687 PVOID*,ULONG,PULONG);
688 NTSTATUS NTAPI LsaEnumerateTrustedDomainsEx(LSA_HANDLE,PLSA_ENUMERATION_HANDLE,
689 PVOID*,ULONG,PULONG);
690 NTSTATUS NTAPI LsaFreeMemory(PVOID);
691 NTSTATUS NTAPI LsaFreeReturnBuffer(PVOID);
692 NTSTATUS NTAPI LsaGetQuotasForAccount(LSA_HANDLE,PQUOTA_LIMITS);
693 NTSTATUS NTAPI LsaGetSystemAccessAccount(LSA_HANDLE, PULONG);
694 NTSTATUS NTAPI LsaGetUserName(PUNICODE_STRING*,PUNICODE_STRING*);
695 NTSTATUS NTAPI LsaLogonUser(HANDLE,PLSA_STRING,SECURITY_LOGON_TYPE,ULONG,PVOID,
696 ULONG,PTOKEN_GROUPS,PTOKEN_SOURCE,PVOID*,PULONG,
697 PLUID,PHANDLE,PQUOTA_LIMITS,PNTSTATUS);
698 NTSTATUS NTAPI LsaLookupAuthenticationPackage(HANDLE,PLSA_STRING,PULONG);
699 NTSTATUS NTAPI LsaLookupNames(LSA_HANDLE,ULONG,PLSA_UNICODE_STRING,
700 PLSA_REFERENCED_DOMAIN_LIST*,PLSA_TRANSLATED_SID*);
701 NTSTATUS NTAPI LsaLookupNames2(LSA_HANDLE,ULONG,ULONG,PLSA_UNICODE_STRING,
702 PLSA_REFERENCED_DOMAIN_LIST*,PLSA_TRANSLATED_SID2*);
703 NTSTATUS NTAPI LsaLookupPrivilegeName(LSA_HANDLE,PLUID,PLSA_UNICODE_STRING*);
704 NTSTATUS NTAPI LsaLookupPrivilegeValue(LSA_HANDLE,PLSA_UNICODE_STRING,PLUID);
705 NTSTATUS NTAPI LsaLookupSids(LSA_HANDLE,ULONG,PSID*,
706 PLSA_REFERENCED_DOMAIN_LIST*,PLSA_TRANSLATED_NAME*);
707 ULONG NTAPI LsaNtStatusToWinError(NTSTATUS);
708 NTSTATUS NTAPI LsaOpenAccount(LSA_HANDLE,PSID,ACCESS_MASK,PLSA_HANDLE);
709 NTSTATUS NTAPI LsaOpenPolicy(PLSA_UNICODE_STRING,PLSA_OBJECT_ATTRIBUTES,
710 ACCESS_MASK,PLSA_HANDLE);
711 NTSTATUS NTAPI LsaOpenSecret(LSA_HANDLE, PLSA_UNICODE_STRING, ACCESS_MASK, PLSA_HANDLE);
712 NTSTATUS NTAPI LsaQuerySecurityObject(LSA_HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR*);
713 NTSTATUS NTAPI LsaOpenTrustedDomain(LSA_HANDLE,PSID,ACCESS_MASK,PLSA_HANDLE);
714 NTSTATUS NTAPI LsaOpenTrustedDomainByName(LSA_HANDLE,PLSA_UNICODE_STRING,
715 ACCESS_MASK,PLSA_HANDLE);
716 NTSTATUS NTAPI LsaQueryDomainInformationPolicy(LSA_HANDLE,
717 POLICY_DOMAIN_INFORMATION_CLASS,PVOID*);
718 NTSTATUS NTAPI LsaQueryInformationPolicy(LSA_HANDLE,POLICY_INFORMATION_CLASS,PVOID*);
719 NTSTATUS NTAPI LsaQuerySecret(LSA_HANDLE,PLSA_UNICODE_STRING*,PLARGE_INTEGER,
720 PLSA_UNICODE_STRING*,PLARGE_INTEGER);
721 NTSTATUS NTAPI LsaQueryTrustedDomainInfo(LSA_HANDLE,PSID,
722 TRUSTED_INFORMATION_CLASS,PVOID*);
723 NTSTATUS NTAPI LsaQueryTrustedDomainInfoByName(LSA_HANDLE,PLSA_UNICODE_STRING,
724 TRUSTED_INFORMATION_CLASS,PVOID*);
725 NTSTATUS NTAPI LsaRegisterLogonProcess(PLSA_STRING,PHANDLE,PLSA_OPERATIONAL_MODE);
726 NTSTATUS NTAPI LsaRemoveAccountRights(LSA_HANDLE,PSID,BOOLEAN,
727 PLSA_UNICODE_STRING,ULONG);
728 NTSTATUS NTAPI LsaRetrievePrivateData(LSA_HANDLE,PLSA_UNICODE_STRING,
729 PLSA_UNICODE_STRING*);
730 NTSTATUS NTAPI LsaSetDomainInformationPolicy(LSA_HANDLE,
731 POLICY_DOMAIN_INFORMATION_CLASS,PVOID);
732 NTSTATUS NTAPI LsaSetInformationPolicy(LSA_HANDLE,POLICY_INFORMATION_CLASS,PVOID);
733 NTSTATUS NTAPI LsaSetQuotasForAccount(LSA_HANDLE,PQUOTA_LIMITS);
734 NTSTATUS NTAPI LsaSetSecret(LSA_HANDLE,PLSA_UNICODE_STRING,PLSA_UNICODE_STRING);
735 NTSTATUS NTAPI LsaSetSecurityObject(LSA_HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
736 NTSTATUS NTAPI LsaSetSystemAccessAccount(LSA_HANDLE,ULONG);
737 NTSTATUS NTAPI LsaSetTrustedDomainInformation(LSA_HANDLE,PSID,
738 TRUSTED_INFORMATION_CLASS,PVOID);
739 NTSTATUS NTAPI LsaSetTrustedDomainInfoByName(LSA_HANDLE,PLSA_UNICODE_STRING,
740 TRUSTED_INFORMATION_CLASS,PVOID);
741 NTSTATUS NTAPI LsaStorePrivateData(LSA_HANDLE,PLSA_UNICODE_STRING,
742 PLSA_UNICODE_STRING);
743 typedef NTSTATUS (NTAPI *PSAM_PASSWORD_NOTIFICATION_ROUTINE)(PUNICODE_STRING,
744 ULONG,PUNICODE_STRING);
745 typedef BOOLEAN (NTAPI *PSAM_INIT_NOTIFICATION_ROUTINE)(VOID);
746 typedef BOOLEAN (NTAPI *PSAM_PASSWORD_FILTER_ROUTINE)(PUNICODE_STRING,PUNICODE_STRING,
747 PUNICODE_STRING,BOOLEAN);
748 #ifdef __cplusplus
749 }
750 #endif
751 #endif /* _NTSECAPI_H */