]> gitweb.factorcode.org Git - factor.git/blob - basis/windows/advapi32/advapi32.factor
251b59a4d837bcfe75460d928bdd845bc9e480a1
[factor.git] / basis / windows / advapi32 / advapi32.factor
1 USING: alias alien.syntax kernel math windows.types math.bitwise ;
2 IN: windows.advapi32
3 LIBRARY: advapi32
4
5 : PROV_RSA_FULL       1 ; inline
6 : PROV_RSA_SIG        2 ; inline
7 : PROV_DSS            3 ; inline
8 : PROV_FORTEZZA       4 ; inline
9 : PROV_MS_EXCHANGE    5 ; inline
10 : PROV_SSL            6 ; inline
11 : PROV_RSA_SCHANNEL  12 ; inline
12 : PROV_DSS_DH        13 ; inline
13 : PROV_EC_ECDSA_SIG  14 ; inline
14 : PROV_EC_ECNRA_SIG  15 ; inline
15 : PROV_EC_ECDSA_FULL 16 ; inline
16 : PROV_EC_ECNRA_FULL 17 ; inline
17 : PROV_DH_SCHANNEL   18 ; inline
18 : PROV_SPYRUS_LYNKS  20 ; inline
19 : PROV_RNG           21 ; inline
20 : PROV_INTEL_SEC     22 ; inline
21 : PROV_REPLACE_OWF   23 ; inline
22 : PROV_RSA_AES       24 ; inline
23
24 : MS_DEF_DH_SCHANNEL_PROV
25     "Microsoft DH Schannel Cryptographic Provider" ; inline
26
27 : MS_DEF_DSS_DH_PROV
28     "Microsoft Base DSS and Diffie-Hellman Cryptographic Provider" ; inline
29
30 : MS_DEF_DSS_PROV
31     "Microsoft Base DSS Cryptographic Provider" ; inline
32
33 : MS_DEF_PROV
34     "Microsoft Base Cryptographic Provider v1.0" ; inline
35
36 : MS_DEF_RSA_SCHANNEL_PROV
37     "Microsoft RSA Schannel Cryptographic Provider" ; inline
38
39 ! Unsupported (!)
40 : MS_DEF_RSA_SIG_PROV
41     "Microsoft RSA Signature Cryptographic Provider" ; inline
42
43 : MS_ENH_DSS_DH_PROV
44     "Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider" ; inline
45
46 : MS_ENH_RSA_AES_PROV
47     "Microsoft Enhanced RSA and AES Cryptographic Provider" ; inline
48
49 : MS_ENHANCED_PROV
50     "Microsoft Enhanced Cryptographic Provider v1.0" ; inline
51
52 : MS_SCARD_PROV
53     "Microsoft Base Smart Card Crypto Provider" ; inline
54
55 : MS_STRONG_PROV
56     "Microsoft Strong Cryptographic Provider" ; inline
57
58 : CRYPT_VERIFYCONTEXT  HEX: F0000000 ; inline
59 : CRYPT_NEWKEYSET      HEX: 8 ; inline
60 : CRYPT_DELETEKEYSET   HEX: 10 ; inline
61 : CRYPT_MACHINE_KEYSET HEX: 20 ; inline
62 : CRYPT_SILENT         HEX: 40 ; inline
63
64 C-STRUCT: ACL
65     { "BYTE" "AclRevision" }
66     { "BYTE" "Sbz1" }
67     { "WORD" "AclSize" }
68     { "WORD" "AceCount" }
69     { "WORD" "Sbz2" } ;
70
71 TYPEDEF: ACL* PACL
72
73 : ACCESS_ALLOWED_ACE_TYPE 0 ; inline
74 : ACCESS_DENIED_ACE_TYPE 1 ; inline
75 : SYSTEM_AUDIT_ACE_TYPE 2 ; inline
76 : SYSTEM_ALARM_ACE_TYPE 3 ; inline
77
78 : OBJECT_INHERIT_ACE HEX: 1 ; inline
79 : CONTAINER_INHERIT_ACE HEX: 2 ; inline
80 : NO_PROPAGATE_INHERIT_ACE HEX: 4 ; inline
81 : INHERIT_ONLY_ACE HEX: 8 ; inline
82 : VALID_INHERIT_FLAGS HEX: f ; inline
83
84 C-STRUCT: ACE_HEADER
85     { "BYTE" "AceType" }
86     { "BYTE" "AceFlags" }
87     { "WORD" "AceSize" } ;
88
89 TYPEDEF: ACE_HEADER* PACE_HEADER
90
91 C-STRUCT: ACCESS_ALLOWED_ACE
92     { "ACE_HEADER" "Header" }
93     { "DWORD" "Mask" }
94     { "DWORD" "SidStart" } ;
95
96 TYPEDEF: ACCESS_ALLOWED_ACE* PACCESS_ALLOWED_ACE
97
98 C-STRUCT: ACCESS_DENIED_ACE
99     { "ACE_HEADER" "Header" }
100     { "DWORD" "Mask" }
101     { "DWORD" "SidStart" } ;
102 TYPEDEF: ACCESS_DENIED_ACE* PACCESS_DENIED_ACE
103
104
105 C-STRUCT: SYSTEM_AUDIT_ACE
106     { "ACE_HEADER" "Header" }
107     { "DWORD" "Mask" }
108     { "DWORD" "SidStart" } ;
109
110 TYPEDEF: SYSTEM_AUDIT_ACE* PSYSTEM_AUDIT_ACE
111
112 C-STRUCT: SYSTEM_ALARM_ACE
113     { "ACE_HEADER" "Header" }
114     { "DWORD" "Mask" }
115     { "DWORD" "SidStart" } ;
116
117 TYPEDEF: SYSTEM_ALARM_ACE* PSYSTEM_ALARM_ACE
118
119 C-STRUCT: ACCESS_ALLOWED_CALLBACK_ACE
120     { "ACE_HEADER" "Header" }
121     { "DWORD" "Mask" }
122     { "DWORD" "SidStart" } ;
123
124 TYPEDEF: ACCESS_ALLOWED_CALLBACK_ACE* PACCESS_ALLOWED_CALLBACK_ACE
125
126
127 ! typedef enum _TOKEN_INFORMATION_CLASS {
128 : TokenUser 1 ; inline
129 : TokenGroups 2 ; inline
130 : TokenPrivileges 3 ; inline
131 : TokenOwner 4 ; inline
132 : TokenPrimaryGroup 5 ; inline
133 : TokenDefaultDacl 6 ; inline
134 : TokenSource 7 ; inline
135 : TokenType 8 ; inline
136 : TokenImpersonationLevel 9 ; inline
137 : TokenStatistics 10 ; inline
138 : TokenRestrictedSids 11 ; inline
139 : TokenSessionId 12 ; inline
140 : TokenGroupsAndPrivileges 13 ; inline
141 : TokenSessionReference 14 ; inline
142 : TokenSandBoxInert 15 ; inline
143 ! } TOKEN_INFORMATION_CLASS;
144
145 : DELETE                     HEX: 00010000 ; inline
146 : READ_CONTROL               HEX: 00020000 ; inline
147 : WRITE_DAC                  HEX: 00040000 ; inline
148 : WRITE_OWNER                HEX: 00080000 ; inline
149 : SYNCHRONIZE                HEX: 00100000 ; inline
150 : STANDARD_RIGHTS_REQUIRED   HEX: 000f0000 ; inline
151
152 : STANDARD_RIGHTS_READ       READ_CONTROL ; inline
153 : STANDARD_RIGHTS_WRITE      READ_CONTROL ; inline
154 : STANDARD_RIGHTS_EXECUTE    READ_CONTROL ; inline
155
156 : TOKEN_TOKEN_ADJUST_DEFAULT   HEX: 0080 ; inline
157 : TOKEN_ADJUST_GROUPS          HEX: 0040 ; inline
158 : TOKEN_ADJUST_PRIVILEGES      HEX: 0020 ; inline
159 : TOKEN_ADJUST_SESSIONID       HEX: 0100 ; inline
160 : TOKEN_ASSIGN_PRIMARY         HEX: 0001 ; inline
161 : TOKEN_DUPLICATE              HEX: 0002 ; inline
162 : TOKEN_EXECUTE                STANDARD_RIGHTS_EXECUTE ; inline
163 : TOKEN_IMPERSONATE            HEX: 0004 ; inline
164 : TOKEN_QUERY                  HEX: 0008 ; inline
165 : TOKEN_QUERY_SOURCE           HEX: 0010 ; inline
166 : TOKEN_ADJUST_DEFAULT         HEX: 0080 ; inline
167 : TOKEN_READ ( -- n ) STANDARD_RIGHTS_READ TOKEN_QUERY bitor ;
168
169 : TOKEN_WRITE ( -- n )
170     {
171         STANDARD_RIGHTS_WRITE
172         TOKEN_ADJUST_PRIVILEGES
173         TOKEN_ADJUST_GROUPS
174         TOKEN_ADJUST_DEFAULT
175     } flags ; foldable
176
177 : TOKEN_ALL_ACCESS ( -- n )
178     {
179         STANDARD_RIGHTS_REQUIRED
180         TOKEN_ASSIGN_PRIMARY
181         TOKEN_DUPLICATE
182         TOKEN_IMPERSONATE
183         TOKEN_QUERY
184         TOKEN_QUERY_SOURCE
185         TOKEN_ADJUST_PRIVILEGES
186         TOKEN_ADJUST_GROUPS
187         TOKEN_ADJUST_SESSIONID
188         TOKEN_ADJUST_DEFAULT
189     } flags ; foldable
190
191
192 ! : I_ScGetCurrentGroupStateW ;
193 ! : A_SHAFinal ;
194 ! : A_SHAInit ;
195 ! : A_SHAUpdate ;
196 ! : AbortSystemShutdownA ;
197 ! : AbortSystemShutdownW ;
198 ! : AccessCheck ;
199 ! : AccessCheckAndAuditAlarmA ;
200 ! : AccessCheckAndAuditAlarmW ;
201 ! : AccessCheckByType ;
202 ! : AccessCheckByTypeAndAuditAlarmA ;
203 ! : AccessCheckByTypeAndAuditAlarmW ;
204 ! : AccessCheckByTypeResultList ;
205 ! : AccessCheckByTypeResultListAndAuditAlarmA ;
206 ! : AccessCheckByTypeResultListAndAuditAlarmByHandleA ;
207 ! : AccessCheckByTypeResultListAndAuditAlarmByHandleW ;
208 ! : AccessCheckByTypeResultListAndAuditAlarmW ;
209 ! : AddAccessAllowedAce ;
210 ! : AddAccessAllowedAceEx ;
211 ! : AddAccessAllowedObjectAce ;
212 ! : AddAccessDeniedAce ;
213 ! : AddAccessDeniedAceEx ;
214 ! : AddAccessDeniedObjectAce ;
215 FUNCTION: BOOL AddAce ( PACL pAcl, DWORD dwAceRevision, DWORD dwStartingAceIndex, LPVOID pAceList, DWORD nAceListLength ) ;
216 ! : AddAuditAccessAce ;
217 ! : AddAuditAccessAceEx ;
218 ! : AddAuditAccessObjectAce ;
219 ! : AddUsersToEncryptedFile ;
220 ! : AdjustTokenGroups ;
221 FUNCTION: BOOL AdjustTokenPrivileges ( HANDLE TokenHandle,
222                                BOOL DisableAllPrivileges,
223                                PTOKEN_PRIVILEGES NewState,
224                                DWORD BufferLength,
225                                PTOKEN_PRIVILEGES PreviousState,
226                                PDWORD ReturnLength ) ;
227
228 ! : AllocateAndInitializeSid ;
229 ! : AllocateLocallyUniqueId ;
230 ! : AreAllAccessesGranted ;
231 ! : AreAnyAccessesGranted ;
232 ! : BackupEventLogA ;
233 ! : BackupEventLogW ;
234 ! : BuildExplicitAccessWithNameA ;
235 ! : BuildExplicitAccessWithNameW ;
236 ! : BuildImpersonateExplicitAccessWithNameA ;
237 ! : BuildImpersonateExplicitAccessWithNameW ;
238 ! : BuildImpersonateTrusteeA ;
239 ! : BuildImpersonateTrusteeW ;
240 ! : BuildSecurityDescriptorA ;
241 ! : BuildSecurityDescriptorW ;
242 ! : BuildTrusteeWithNameA ;
243 ! : BuildTrusteeWithNameW ;
244 ! : BuildTrusteeWithObjectsAndNameA ;
245 ! : BuildTrusteeWithObjectsAndNameW ;
246 ! : BuildTrusteeWithObjectsAndSidA ;
247 ! : BuildTrusteeWithObjectsAndSidW ;
248 ! : BuildTrusteeWithSidA ;
249 ! : BuildTrusteeWithSidW ;
250 ! : CancelOverlappedAccess ;
251 ! : ChangeServiceConfig2A ;
252 ! : ChangeServiceConfig2W ;
253 ! : ChangeServiceConfigA ;
254 ! : ChangeServiceConfigW ;
255 ! : CheckTokenMembership ;
256 ! : ClearEventLogA ;
257 ! : ClearEventLogW ;
258 ! : CloseCodeAuthzLevel ;
259 ! : CloseEncryptedFileRaw ;
260 ! : CloseEventLog ;
261 ! : CloseServiceHandle ;
262 ! : CloseTrace ;
263 ! : CommandLineFromMsiDescriptor ;
264 ! : ComputeAccessTokenFromCodeAuthzLevel ;
265 ! : ControlService ;
266 ! : ControlTraceA ;
267 ! : ControlTraceW ;
268 ! : ConvertAccessToSecurityDescriptorA ;
269 ! : ConvertAccessToSecurityDescriptorW ;
270 ! : ConvertSDToStringSDRootDomainA ;
271 ! : ConvertSDToStringSDRootDomainW ;
272 ! : ConvertSecurityDescriptorToAccessA ;
273 ! : ConvertSecurityDescriptorToAccessNamedA ;
274 ! : ConvertSecurityDescriptorToAccessNamedW ;
275 ! : ConvertSecurityDescriptorToAccessW ;
276 ! : ConvertSecurityDescriptorToStringSecurityDescriptorA ;
277 ! : ConvertSecurityDescriptorToStringSecurityDescriptorW ;
278 ! : ConvertSidToStringSidA ;
279 ! : ConvertSidToStringSidW ;
280 ! : ConvertStringSDToSDDomainA ;
281 ! : ConvertStringSDToSDDomainW ;
282 ! : ConvertStringSDToSDRootDomainA ;
283 ! : ConvertStringSDToSDRootDomainW ;
284 ! : ConvertStringSecurityDescriptorToSecurityDescriptorA ;
285 ! : ConvertStringSecurityDescriptorToSecurityDescriptorW ;
286 ! : ConvertStringSidToSidA ;
287 ! : ConvertStringSidToSidW ;
288 ! : ConvertToAutoInheritPrivateObjectSecurity ;
289 ! : CopySid ;
290 ! : CreateCodeAuthzLevel ;
291 ! : CreatePrivateObjectSecurity ;
292 ! : CreatePrivateObjectSecurityEx ;
293 ! : CreatePrivateObjectSecurityWithMultipleInheritance ;
294 ! : CreateProcessAsUserA ;
295 ! : CreateProcessAsUserSecure ;
296 ! : CreateProcessAsUserW ;
297 ! : CreateProcessWithLogonW ;
298 ! : CreateRestrictedToken ;
299 ! : CreateServiceA ;
300 ! : CreateServiceW ;
301 ! : CreateTraceInstanceId ;
302 ! : CreateWellKnownSid ;
303 ! : CredDeleteA ;
304 ! : CredDeleteW ;
305 ! : CredEnumerateA ;
306 ! : CredEnumerateW ;
307 ! : CredFree ;
308 ! : CredGetSessionTypes ;
309 ! : CredGetTargetInfoA ;
310 ! : CredGetTargetInfoW ;
311 ! : CredIsMarshaledCredentialA ;
312 ! : CredIsMarshaledCredentialW ;
313 ! : CredMarshalCredentialA ;
314 ! : CredMarshalCredentialW ;
315 ! : CredProfileLoaded ;
316 ! : CredReadA ;
317 ! : CredReadDomainCredentialsA ;
318 ! : CredReadDomainCredentialsW ;
319 ! : CredReadW ;
320 ! : CredRenameA ;
321 ! : CredRenameW ;
322 ! : CredUnmarshalCredentialA ;
323 ! : CredUnmarshalCredentialW ;
324 ! : CredWriteA ;
325 ! : CredWriteDomainCredentialsA ;
326 ! : CredWriteDomainCredentialsW ;
327 ! : CredWriteW ;
328 ! : CredpConvertCredential ;
329 ! : CredpConvertTargetInfo ;
330 ! : CredpDecodeCredential ;
331 ! : CredpEncodeCredential ;
332 ! : CryptAcquireContextA ;
333 FUNCTION: BOOL CryptAcquireContextW ( HCRYPTPROV* phProv,
334                                       LPCTSTR pszContainer,
335                                       LPCTSTR pszProvider,
336                                       DWORD dwProvType,
337                                       DWORD dwFlags ) ;
338
339 ALIAS: CryptAcquireContext CryptAcquireContextW
340
341 ! : CryptContextAddRef ;
342 ! : CryptCreateHash ;
343 ! : CryptDecrypt ;
344 ! : CryptDeriveKey ;
345 ! : CryptDestroyHash ;
346 ! : CryptDestroyKey ;
347 ! : CryptDuplicateHash ;
348 ! : CryptDuplicateKey ;
349 ! : CryptEncrypt ;
350 ! : CryptEnumProviderTypesA ;
351 ! : CryptEnumProviderTypesW ;
352 ! : CryptEnumProvidersA ;
353 ! : CryptEnumProvidersW ;
354 ! : CryptExportKey ;
355 ! : CryptGenKey ;
356 FUNCTION: BOOL CryptGenRandom ( HCRYPTPROV hProv, DWORD dwLen, BYTE* pbBuffer ) ;
357 ! : CryptGetDefaultProviderA ;
358 ! : CryptGetDefaultProviderW ;
359 ! : CryptGetHashParam ;
360 ! : CryptGetKeyParam ;
361 ! : CryptGetProvParam ;
362 ! : CryptGetUserKey ;
363 ! : CryptHashData ;
364 ! : CryptHashSessionKey ;
365 ! : CryptImportKey ;
366 FUNCTION: BOOL CryptReleaseContext ( HCRYPTPROV hProv, DWORD dwFlags ) ;
367 ! : CryptSetHashParam ;
368 ! : CryptSetKeyParam ;
369 ! : CryptSetProvParam ;
370 ! : CryptSetProviderA ;
371 ! : CryptSetProviderExA ;
372 ! : CryptSetProviderExW ;
373 ! : CryptSetProviderW ;
374 ! : CryptSignHashA ;
375 ! : CryptSignHashW ;
376 ! : CryptVerifySignatureA ;
377 ! : CryptVerifySignatureW ;
378 ! : DecryptFileA ;
379 ! : DecryptFileW ;
380 ! : DeleteAce ;
381 ! : DeleteService ;
382 ! : DeregisterEventSource ;
383 ! : DestroyPrivateObjectSecurity ;
384 ! : DuplicateEncryptionInfoFile ;
385 ! : DuplicateToken ;
386 ! : DuplicateTokenEx ;
387 ! : ElfBackupEventLogFileA ;
388 ! : ElfBackupEventLogFileW ;
389 ! : ElfChangeNotify ;
390 ! : ElfClearEventLogFileA ;
391 ! : ElfClearEventLogFileW ;
392 ! : ElfCloseEventLog ;
393 ! : ElfDeregisterEventSource ;
394 ! : ElfFlushEventLog ;
395 ! : ElfNumberOfRecords ;
396 ! : ElfOldestRecord ;
397 ! : ElfOpenBackupEventLogA ;
398 ! : ElfOpenBackupEventLogW ;
399 ! : ElfOpenEventLogA ;
400 ! : ElfOpenEventLogW ;
401 ! : ElfReadEventLogA ;
402 ! : ElfReadEventLogW ;
403 ! : ElfRegisterEventSourceA ;
404 ! : ElfRegisterEventSourceW ;
405 ! : ElfReportEventA ;
406 ! : ElfReportEventW ;
407 ! : EnableTrace ;
408 ! : EncryptFileA ;
409 ! : EncryptFileW ;
410 ! : EncryptedFileKeyInfo ;
411 ! : EncryptionDisable ;
412 ! : EnumDependentServicesA ;
413 ! : EnumDependentServicesW ;
414 ! : EnumServiceGroupW ;
415 ! : EnumServicesStatusA ;
416 ! : EnumServicesStatusExA ;
417 ! : EnumServicesStatusExW ;
418 ! : EnumServicesStatusW ;
419 ! : EnumerateTraceGuids ;
420 ! : EqualDomainSid ;
421 ! : EqualPrefixSid ;
422 ! : EqualSid ;
423 ! : FileEncryptionStatusA ;
424 ! : FileEncryptionStatusW ;
425 ! : FindFirstFreeAce ;
426 ! : FlushTraceA ;
427 ! : FlushTraceW ;
428 ! : FreeEncryptedFileKeyInfo ;
429 ! : FreeEncryptionCertificateHashList ;
430 ! : FreeInheritedFromArray ;
431 ! : FreeSid ;
432 ! : GetAccessPermissionsForObjectA ;
433 ! : GetAccessPermissionsForObjectW ;
434 ! : GetAce ;
435 ! : GetAclInformation ;
436 ! : GetAuditedPermissionsFromAclA ;
437 ! : GetAuditedPermissionsFromAclW ;
438 ! : GetCurrentHwProfileA ;
439 ! : GetCurrentHwProfileW ;
440 ! : GetEffectiveRightsFromAclA ;
441 ! : GetEffectiveRightsFromAclW ;
442 ! : GetEventLogInformation ;
443 ! : GetExplicitEntriesFromAclA ;
444 ! : GetExplicitEntriesFromAclW ;
445 ! : GetFileSecurityA ;
446 ! : GetFileSecurityW ;
447 ! : GetInformationCodeAuthzLevelW ;
448 ! : GetInformationCodeAuthzPolicyW ;
449 ! : GetInheritanceSourceA ;
450 ! : GetInheritanceSourceW ;
451 ! : GetKernelObjectSecurity ;
452 ! : GetLengthSid ;
453 ! : GetLocalManagedApplicationData ;
454 ! : GetLocalManagedApplications ;
455 ! : GetManagedApplicationCategories ;
456 ! : GetManagedApplications ;
457 ! : GetMultipleTrusteeA ;
458 ! : GetMultipleTrusteeOperationA ;
459 ! : GetMultipleTrusteeOperationW ;
460 ! : GetMultipleTrusteeW ;
461 ! : GetNamedSecurityInfoA ;
462 ! : GetNamedSecurityInfoExA ;
463 ! : GetNamedSecurityInfoExW ;
464 ! : GetNamedSecurityInfoW ;
465 ! : GetNumberOfEventLogRecords ;
466 ! : GetOldestEventLogRecord ;
467 ! : GetOverlappedAccessResults ;
468 ! : GetPrivateObjectSecurity ;
469 ! : GetSecurityDescriptorControl ;
470 ! : GetSecurityDescriptorDacl ;
471 ! : GetSecurityDescriptorGroup ;
472 ! : GetSecurityDescriptorLength ;
473 ! : GetSecurityDescriptorOwner ;
474 ! : GetSecurityDescriptorRMControl ;
475 ! : GetSecurityDescriptorSacl ;
476 ! : GetSecurityInfo ;
477 ! : GetSecurityInfoExA ;
478 ! : GetSecurityInfoExW ;
479 ! : GetServiceDisplayNameA ;
480 ! : GetServiceDisplayNameW ;
481 ! : GetServiceKeyNameA ;
482 ! : GetServiceKeyNameW ;
483 ! : GetSidIdentifierAuthority ;
484 ! : GetSidLengthRequired ;
485 ! : GetSidSubAuthority ;
486 ! : GetSidSubAuthorityCount ;
487 ! : GetTokenInformation ;
488 ! : GetTraceEnableFlags ;
489 ! : GetTraceEnableLevel ;
490 ! : GetTraceLoggerHandle ;
491 ! : GetTrusteeFormA ;
492 ! : GetTrusteeFormW ;
493 ! : GetTrusteeNameA ;
494 ! : GetTrusteeNameW ;
495 ! : GetTrusteeTypeA ;
496 ! : GetTrusteeTypeW ;
497
498 ! : GetUserNameA ;
499 FUNCTION: BOOL GetUserNameW ( LPCTSTR lpBuffer, LPDWORD lpnSize ) ;
500 ALIAS: GetUserName GetUserNameW
501
502 ! : GetWindowsAccountDomainSid ;
503 ! : I_ScIsSecurityProcess ;
504 ! : I_ScPnPGetServiceName ;
505 ! : I_ScSendTSMessage ;
506 ! : I_ScSetServiceBitsA ;
507 ! : I_ScSetServiceBitsW ;
508 ! : IdentifyCodeAuthzLevelW ;
509 ! : ImpersonateAnonymousToken ;
510 ! : ImpersonateLoggedOnUser ;
511 ! : ImpersonateNamedPipeClient ;
512 ! : ImpersonateSelf ;
513 FUNCTION: BOOL InitializeAcl ( PACL pAcl, DWORD nAclLength, DWORD dwAclRevision ) ;
514 ! : InitializeSecurityDescriptor ;
515 ! : InitializeSid ;
516 ! : InitiateSystemShutdownA ;
517 ! : InitiateSystemShutdownExA ;
518 ! : InitiateSystemShutdownExW ;
519 ! : InitiateSystemShutdownW ;
520 ! : InstallApplication ;
521 ! : IsTextUnicode ;
522 ! : IsTokenRestricted ;
523 ! : IsTokenUntrusted ;
524 ! : IsValidAcl ;
525 ! : IsValidSecurityDescriptor ;
526 ! : IsValidSid ;
527 ! : IsWellKnownSid ;
528 ! : LockServiceDatabase ;
529 ! : LogonUserA ;
530 ! : LogonUserExA ;
531 ! : LogonUserExW ;
532 ! : LogonUserW ;
533 ! : LookupAccountNameA ;
534 ! : LookupAccountNameW ;
535 ! : LookupAccountSidA ;
536 ! : LookupAccountSidW ;
537 ! : LookupPrivilegeDisplayNameA ;
538 ! : LookupPrivilegeDisplayNameW ;
539 ! : LookupPrivilegeNameA ;
540 ! : LookupPrivilegeNameW ;
541 ! : LookupPrivilegeValueA ;
542 FUNCTION: BOOL LookupPrivilegeValueW ( LPCTSTR lpSystemName,
543                                LPCTSTR lpName,
544                                PLUID lpLuid ) ;
545 ALIAS: LookupPrivilegeValue LookupPrivilegeValueW
546
547 ! : LookupSecurityDescriptorPartsA ;
548 ! : LookupSecurityDescriptorPartsW ;
549 ! : LsaAddAccountRights ;
550 ! : LsaAddPrivilegesToAccount ;
551 ! : LsaClearAuditLog ;
552 ! : LsaClose ;
553 ! : LsaCreateAccount ;
554 ! : LsaCreateSecret ;
555 ! : LsaCreateTrustedDomain ;
556 ! : LsaCreateTrustedDomainEx ;
557 ! : LsaDelete ;
558 ! : LsaDeleteTrustedDomain ;
559 ! : LsaEnumerateAccountRights ;
560 ! : LsaEnumerateAccounts ;
561 ! : LsaEnumerateAccountsWithUserRight ;
562 ! : LsaEnumeratePrivileges ;
563 ! : LsaEnumeratePrivilegesOfAccount ;
564 ! : LsaEnumerateTrustedDomains ;
565 ! : LsaEnumerateTrustedDomainsEx ;
566 ! : LsaFreeMemory ;
567 ! : LsaGetQuotasForAccount ;
568 ! : LsaGetRemoteUserName ;
569 ! : LsaGetSystemAccessAccount ;
570 ! : LsaGetUserName ;
571 ! : LsaICLookupNames ;
572 ! : LsaICLookupNamesWithCreds ;
573 ! : LsaICLookupSids ;
574 ! : LsaICLookupSidsWithCreds ;
575 ! : LsaLookupNames2 ;
576 ! : LsaLookupNames ;
577 ! : LsaLookupPrivilegeDisplayName ;
578 ! : LsaLookupPrivilegeName ;
579 ! : LsaLookupPrivilegeValue ;
580 ! : LsaLookupSids ;
581 ! : LsaNtStatusToWinError ;
582 ! : LsaOpenAccount ;
583 ! : LsaOpenPolicy ;
584 ! : LsaOpenPolicySce ;
585 ! : LsaOpenSecret ;
586 ! : LsaOpenTrustedDomain ;
587 ! : LsaOpenTrustedDomainByName ;
588 ! : LsaQueryDomainInformationPolicy ;
589 ! : LsaQueryForestTrustInformation ;
590 ! : LsaQueryInfoTrustedDomain ;
591 ! : LsaQueryInformationPolicy ;
592 ! : LsaQuerySecret ;
593 ! : LsaQuerySecurityObject ;
594 ! : LsaQueryTrustedDomainInfo ;
595 ! : LsaQueryTrustedDomainInfoByName ;
596 ! : LsaRemoveAccountRights ;
597 ! : LsaRemovePrivilegesFromAccount ;
598 ! : LsaRetrievePrivateData ;
599 ! : LsaSetDomainInformationPolicy ;
600 ! : LsaSetForestTrustInformation ;
601 ! : LsaSetInformationPolicy ;
602 ! : LsaSetInformationTrustedDomain ;
603 ! : LsaSetQuotasForAccount ;
604 ! : LsaSetSecret ;
605 ! : LsaSetSecurityObject ;
606 ! : LsaSetSystemAccessAccount ;
607 ! : LsaSetTrustedDomainInfoByName ;
608 ! : LsaSetTrustedDomainInformation ;
609 ! : LsaStorePrivateData ;
610 ! : MD4Final ;
611 ! : MD4Init ;
612 ! : MD4Update ;
613 ! : MD5Final ;
614 ! : MD5Init ;
615 ! : MD5Update ;
616 ! : MSChapSrvChangePassword2 ;
617 ! : MSChapSrvChangePassword ;
618 ! : MakeAbsoluteSD2 ;
619 ! : MakeAbsoluteSD ;
620 ! : MakeSelfRelativeSD ;
621 ! : MapGenericMask ;
622 ! : NotifyBootConfigStatus ;
623 ! : NotifyChangeEventLog ;
624 ! : ObjectCloseAuditAlarmA ;
625 ! : ObjectCloseAuditAlarmW ;
626 ! : ObjectDeleteAuditAlarmA ;
627 ! : ObjectDeleteAuditAlarmW ;
628 ! : ObjectOpenAuditAlarmA ;
629 ! : ObjectOpenAuditAlarmW ;
630 ! : ObjectPrivilegeAuditAlarmA ;
631 ! : ObjectPrivilegeAuditAlarmW ;
632 ! : OpenBackupEventLogA ;
633 ! : OpenBackupEventLogW ;
634 ! : OpenEncryptedFileRawA ;
635 ! : OpenEncryptedFileRawW ;
636 ! : OpenEventLogA ;
637 ! : OpenEventLogW ;
638
639 FUNCTION: BOOL OpenProcessToken ( HANDLE ProcessHandle,
640                                   DWORD DesiredAccess,
641                                   PHANDLE TokenHandle ) ;
642 ! : OpenSCManagerA ;
643 ! : OpenSCManagerW ;
644 ! : OpenServiceA ;
645 ! : OpenServiceW ;
646 FUNCTION: BOOL OpenThreadToken ( HANDLE ThreadHandle, DWORD DesiredAccess, BOOL OpenAsSelf, PHANDLE TokenHandle ) ;
647 ! : OpenTraceA ;
648 ! : OpenTraceW ;
649 ! : PrivilegeCheck ;
650 ! : PrivilegedServiceAuditAlarmA ;
651 ! : PrivilegedServiceAuditAlarmW ;
652 ! : ProcessIdleTasks ;
653 ! : ProcessTrace ;
654 ! : QueryAllTracesA ;
655 ! : QueryAllTracesW ;
656 ! : QueryRecoveryAgentsOnEncryptedFile ;
657 ! : QueryServiceConfig2A ;
658 ! : QueryServiceConfig2W ;
659 ! : QueryServiceConfigA ;
660 ! : QueryServiceConfigW ;
661 ! : QueryServiceLockStatusA ;
662 ! : QueryServiceLockStatusW ;
663 ! : QueryServiceObjectSecurity ;
664 ! : QueryServiceStatus ;
665 ! : QueryServiceStatusEx ;
666 ! : QueryTraceA ;
667 ! : QueryTraceW ;
668 ! : QueryUsersOnEncryptedFile ;
669 ! : QueryWindows31FilesMigration ;
670 ! : ReadEncryptedFileRaw ;
671 ! : ReadEventLogA ;
672 ! : ReadEventLogW ;
673 ! : RegCloseKey ;
674 ! : RegConnectRegistryA ;
675 ! : RegConnectRegistryW ;
676 ! : RegCreateKeyA ;
677 ! : RegCreateKeyExA ;
678 ! : RegCreateKeyExW ;
679 ! : RegCreateKeyW ;
680 ! : RegDeleteKeyA ;
681 ! : RegDeleteKeyW ;
682 ! : RegDeleteValueA ;
683 ! : RegDeleteValueW ;
684 ! : RegDisablePredefinedCache ;
685 ! : RegEnumKeyA ;
686 ! : RegEnumKeyExA ;
687 ! : RegEnumKeyExW ;
688 ! : RegEnumKeyW ;
689 ! : RegEnumValueA ;
690 ! : RegEnumValueW ;
691 ! : RegFlushKey ;
692 ! : RegGetKeySecurity ;
693 ! : RegLoadKeyA ;
694 ! : RegLoadKeyW ;
695 ! : RegNotifyChangeKeyValue ;
696 ! : RegOpenCurrentUser ;
697 ! : RegOpenKeyA ;
698 ! : RegOpenKeyExA ;
699 ! : RegOpenKeyExW ;
700 ! : RegOpenKeyW ;
701 ! : RegOpenUserClassesRoot ;
702 ! : RegOverridePredefKey ;
703 ! : RegQueryInfoKeyA ;
704 ! : RegQueryInfoKeyW ;
705 ! : RegQueryMultipleValuesA ;
706 ! : RegQueryMultipleValuesW ;
707 ! : RegQueryValueA ;
708 ! : RegQueryValueExA ;
709 ! : RegQueryValueExW ;
710 ! : RegQueryValueW ;
711 ! : RegReplaceKeyA ;
712 ! : RegReplaceKeyW ;
713 ! : RegRestoreKeyA ;
714 ! : RegRestoreKeyW ;
715 ! : RegSaveKeyA ;
716 ! : RegSaveKeyExA ;
717 ! : RegSaveKeyExW ;
718 ! : RegSaveKeyW ;
719 ! : RegSetKeySecurity ;
720 ! : RegSetValueA ;
721 ! : RegSetValueExA ;
722 ! : RegSetValueExW ;
723 ! : RegSetValueW ;
724 ! : RegUnLoadKeyA ;
725 ! : RegUnLoadKeyW ;
726 ! : RegisterEventSourceA ;
727 ! : RegisterEventSourceW ;
728 ! : RegisterIdleTask ;
729 ! : RegisterServiceCtrlHandlerA ;
730 ! : RegisterServiceCtrlHandlerExA ;
731 ! : RegisterServiceCtrlHandlerExW ;
732 ! : RegisterServiceCtrlHandlerW ;
733 ! : RegisterTraceGuidsA ;
734 ! : RegisterTraceGuidsW ;
735 ! : RemoveTraceCallback ;
736 ! : RemoveUsersFromEncryptedFile ;
737 ! : ReportEventA ;
738 ! : ReportEventW ;
739 ! : RevertToSelf ;
740 ! : SaferCloseLevel ;
741 ! : SaferComputeTokenFromLevel ;
742 ! : SaferCreateLevel ;
743 ! : SaferGetLevelInformation ;
744 ! : SaferGetPolicyInformation ;
745 ! : SaferIdentifyLevel ;
746 ! : SaferRecordEventLogEntry ;
747 ! : SaferSetLevelInformation ;
748 ! : SaferSetPolicyInformation ;
749 ! : SaferiChangeRegistryScope ;
750 ! : SaferiCompareTokenLevels ;
751 ! : SaferiIsExecutableFileType ;
752 ! : SaferiPopulateDefaultsInRegistry ;
753 ! : SaferiRecordEventLogEntry ;
754 ! : SaferiReplaceProcessThreadTokens ;
755 ! : SaferiSearchMatchingHashRules ;
756 ! : SetAclInformation ;
757 ! : SetEntriesInAccessListA ;
758 ! : SetEntriesInAccessListW ;
759 ! : SetEntriesInAclA ;
760 ! : SetEntriesInAclW ;
761 ! : SetEntriesInAuditListA ;
762 ! : SetEntriesInAuditListW ;
763 ! : SetFileSecurityA ;
764 ! : SetFileSecurityW ;
765 ! : SetInformationCodeAuthzLevelW ;
766 ! : SetInformationCodeAuthzPolicyW ;
767 ! : SetKernelObjectSecurity ;
768 ! : SetNamedSecurityInfoA ;
769 ! : SetNamedSecurityInfoExA ;
770 ! : SetNamedSecurityInfoExW ;
771 ! : SetNamedSecurityInfoW ;
772 ! : SetPrivateObjectSecurity ;
773 ! : SetPrivateObjectSecurityEx ;
774 ! : SetSecurityDescriptorControl ;
775 ! : SetSecurityDescriptorDacl ;
776 ! : SetSecurityDescriptorGroup ;
777 ! : SetSecurityDescriptorOwner ;
778 ! : SetSecurityDescriptorRMControl ;
779 ! : SetSecurityDescriptorSacl ;
780 ! : SetSecurityInfo ;
781 ! : SetSecurityInfoExA ;
782 ! : SetSecurityInfoExW ;
783 ! : SetServiceBits ;
784 ! : SetServiceObjectSecurity ;
785 ! : SetServiceStatus ;
786 ! : SetThreadToken ;
787 ! : SetTokenInformation ;
788 ! : SetTraceCallback ;
789 ! : SetUserFileEncryptionKey ;
790 ! : StartServiceA ;
791 ! : StartServiceCtrlDispatcherA ;
792 ! : StartServiceCtrlDispatcherW ;
793 ! : StartServiceW ;
794 ! : StartTraceA ;
795 ! : StartTraceW ;
796 ! : StopTraceA ;
797 ! : StopTraceW ;
798 ! : SynchronizeWindows31FilesAndWindowsNTRegistry ;
799 ! : SystemFunction001 ;
800 ! : SystemFunction002 ;
801 ! : SystemFunction003 ;
802 ! : SystemFunction004 ;
803 ! : SystemFunction005 ;
804 ! : SystemFunction006 ;
805 ! : SystemFunction007 ;
806 ! : SystemFunction008 ;
807 ! : SystemFunction009 ;
808 ! : SystemFunction010 ;
809 ! : SystemFunction011 ;
810 ! : SystemFunction012 ;
811 ! : SystemFunction013 ;
812 ! : SystemFunction014 ;
813 ! : SystemFunction015 ;
814 ! : SystemFunction016 ;
815 ! : SystemFunction017 ;
816 ! : SystemFunction018 ;
817 ! : SystemFunction019 ;
818 ! : SystemFunction020 ;
819 ! : SystemFunction021 ;
820 ! : SystemFunction022 ;
821 ! : SystemFunction023 ;
822 ! : SystemFunction024 ;
823 ! : SystemFunction025 ;
824 ! : SystemFunction026 ;
825 ! : SystemFunction027 ;
826 ! : SystemFunction028 ;
827 ! : SystemFunction029 ;
828 ! : SystemFunction030 ;
829 ! : SystemFunction031 ;
830 ! : SystemFunction032 ;
831 ! : SystemFunction033 ;
832 ! : SystemFunction034 ;
833 ! : SystemFunction035 ;
834 ! : SystemFunction036 ;
835 ! : SystemFunction040 ;
836 ! : SystemFunction041 ;
837 ! : TraceEvent ;
838 ! : TraceEventInstance ;
839 ! : TraceMessage ;
840 ! : TraceMessageVa ;
841 ! : TreeResetNamedSecurityInfoA ;
842 ! : TreeResetNamedSecurityInfoW ;
843 ! : TrusteeAccessToObjectA ;
844 ! : TrusteeAccessToObjectW ;
845 ! : UninstallApplication ;
846 ! : UnlockServiceDatabase ;
847 ! : UnregisterIdleTask ;
848 ! : UnregisterTraceGuids ;
849 ! : UpdateTraceA ;
850 ! : UpdateTraceW ;
851 ! : WdmWmiServiceMain ;
852 ! : WmiCloseBlock ;
853 ! : WmiCloseTraceWithCursor ;
854 ! : WmiConvertTimestamp ;
855 ! : WmiDevInstToInstanceNameA ;
856 ! : WmiDevInstToInstanceNameW ;
857 ! : WmiEnumerateGuids ;
858 ! : WmiExecuteMethodA ;
859 ! : WmiExecuteMethodW ;
860 ! : WmiFileHandleToInstanceNameA ;
861 ! : WmiFileHandleToInstanceNameW ;
862 ! : WmiFreeBuffer ;
863 ! : WmiGetFirstTraceOffset ;
864 ! : WmiGetNextEvent ;
865 ! : WmiGetTraceHeader ;
866 ! : WmiMofEnumerateResourcesA ;
867 ! : WmiMofEnumerateResourcesW ;
868 ! : WmiNotificationRegistrationA ;
869 ! : WmiNotificationRegistrationW ;
870 ! : WmiOpenBlock ;
871 ! : WmiOpenTraceWithCursor ;
872 ! : WmiParseTraceEvent ;
873 ! : WmiQueryAllDataA ;
874 ! : WmiQueryAllDataMultipleA ;
875 ! : WmiQueryAllDataMultipleW ;
876 ! : WmiQueryAllDataW ;
877 ! : WmiQueryGuidInformation ;
878 ! : WmiQuerySingleInstanceA ;
879 ! : WmiQuerySingleInstanceMultipleA ;
880 ! : WmiQuerySingleInstanceMultipleW ;
881 ! : WmiQuerySingleInstanceW ;
882 ! : WmiReceiveNotificationsA ;
883 ! : WmiReceiveNotificationsW ;
884 ! : WmiSetSingleInstanceA ;
885 ! : WmiSetSingleInstanceW ;
886 ! : WmiSetSingleItemA ;
887 ! : WmiSetSingleItemW ;
888 ! : Wow64Win32ApiEntry ;
889 ! : WriteEncryptedFileRaw ;
890
891