
; ADVAPI32 API calls (ASCII)

import advapi32,\
       AbortSystemShutdown,'AbortSystemShutdownA',\
       AccessCheck,'AccessCheck',\
       AccessCheckAndAuditAlarm,'AccessCheckAndAuditAlarmA',\
       AccessCheckByType,'AccessCheckByType',\
       AccessCheckByTypeAndAuditAlarm,'AccessCheckByTypeAndAuditAlarmA',\
       AccessCheckByTypeResultList,'AccessCheckByTypeResultList',\
       AccessCheckByTypeResultListAndAuditAlarm,'AccessCheckByTypeResultListAndAuditAlarmA',\
       AddAccessAllowedAce,'AddAccessAllowedAce',\
       AddAccessAllowedAceEx,'AddAccessAllowedAceEx',\
       AddAccessAllowedObjectAce,'AddAccessAllowedObjectAce',\
       AddAccessDeniedAce,'AddAccessDeniedAce',\
       AddAccessDeniedAceEx,'AddAccessDeniedAceEx',\
       AddAccessDeniedObjectAce,'AddAccessDeniedObjectAce',\
       AddAce,'AddAce',\
       AddAuditAccessAce,'AddAuditAccessAce',\
       AddAuditAccessAceEx,'AddAuditAccessAceEx',\
       AddAuditAccessObjectAce,'AddAuditAccessObjectAce',\
       AdjustTokenGroups,'AdjustTokenGroups',\
       AdjustTokenPrivileges,'AdjustTokenPrivileges',\
       AllocateAndInitializeSid,'AllocateAndInitializeSid',\
       AllocateLocallyUniqueId,'AllocateLocallyUniqueId',\
       AreAllAccessesGranted,'AreAllAccessesGranted',\
       AreAnyAccessesGranted,'AreAnyAccessesGranted',\
       BackupEventLog,'BackupEventLogA',\
       BuildExplicitAccessWithName,'BuildExplicitAccessWithNameA',\
       BuildImpersonateExplicitAccessWithName,'BuildImpersonateExplicitAccessWithNameA',\
       BuildImpersonateTrustee,'BuildImpersonateTrusteeA',\
       BuildSecurityDescriptor,'BuildSecurityDescriptorA',\
       BuildTrusteeWithName,'BuildTrusteeWithNameA',\
       BuildTrusteeWithSid,'BuildTrusteeWithSidA',\
       CancelOverlappedAccess,'CancelOverlappedAccess',\
       ChangeServiceConfig2,'ChangeServiceConfig2A',\
       ChangeServiceConfig,'ChangeServiceConfigA',\
       ClearEventLog,'ClearEventLogA',\
       CloseEventLog,'CloseEventLog',\
       CloseRaw,'CloseRaw',\
       CloseServiceHandle,'CloseServiceHandle',\
       ControlService,'ControlService',\
       ConvertAccessToSecurityDescriptor,'ConvertAccessToSecurityDescriptorA',\
       ConvertSecurityDescriptorToAccess,'ConvertSecurityDescriptorToAccessA',\
       ConvertSecurityDescriptorToAccessNamed,'ConvertSecurityDescriptorToAccessNamedA',\
       ConvertToAutoInheritPrivateObjectSecurity,'ConvertToAutoInheritPrivateObjectSecurity',\
       CopySid,'CopySid',\
       CreatePrivateObjectSecurity,'CreatePrivateObjectSecurity',\
       CreatePrivateObjectSecurityEx,'CreatePrivateObjectSecurityEx',\
       CreateProcessAsUser,'CreateProcessAsUserA',\
       CreateRestrictedToken,'CreateRestrictedToken',\
       CreateService,'CreateServiceA',\
       CryptAcquireContext,'CryptAcquireContextA',\
       CryptContextAddRef,'CryptContextAddRef',\
       CryptCreateHash,'CryptCreateHash',\
       CryptDecrypt,'CryptDecrypt',\
       CryptDeriveKey,'CryptDeriveKey',\
       CryptDestroyHash,'CryptDestroyHash',\
       CryptDestroyKey,'CryptDestroyKey',\
       CryptDuplicateHash,'CryptDuplicateHash',\
       CryptDuplicateKey,'CryptDuplicateKey',\
       CryptEncrypt,'CryptEncrypt',\
       CryptEnumProviderTypes,'CryptEnumProviderTypesA',\
       CryptEnumProviders,'CryptEnumProvidersA',\
       CryptExportKey,'CryptExportKey',\
       CryptGenKey,'CryptGenKey',\
       CryptGenRandom,'CryptGenRandom',\
       CryptGetDefaultProvider,'CryptGetDefaultProviderA',\
       CryptGetHashParam,'CryptGetHashParam',\
       CryptGetKeyParam,'CryptGetKeyParam',\
       CryptGetProvParam,'CryptGetProvParam',\
       CryptGetUserKey,'CryptGetUserKey',\
       CryptHashData,'CryptHashData',\
       CryptHashSessionKey,'CryptHashSessionKey',\
       CryptImportKey,'CryptImportKey',\
       CryptReleaseContext,'CryptReleaseContext',\
       CryptSetHashParam,'CryptSetHashParam',\
       CryptSetKeyParam,'CryptSetKeyParam',\
       CryptSetProvParam,'CryptSetProvParam',\
       CryptSetProvider,'CryptSetProviderA',\
       CryptSetProviderEx,'CryptSetProviderExA',\
       CryptSignHash,'CryptSignHashA',\
       CryptVerifySignature,'CryptVerifySignatureA',\
       DecryptFile,'DecryptFileA',\
       DeleteAce,'DeleteAce',\
       DeleteService,'DeleteService',\
       DeregisterEventSource,'DeregisterEventSource',\
       DestroyPrivateObjectSecurity,'DestroyPrivateObjectSecurity',\
       DuplicateToken,'DuplicateToken',\
       DuplicateTokenEx,'DuplicateTokenEx',\
       ElfBackupEventLogFile,'ElfBackupEventLogFileA',\
       ElfChangeNotify,'ElfChangeNotify',\
       ElfClearEventLogFile,'ElfClearEventLogFileA',\
       ElfCloseEventLog,'ElfCloseEventLog',\
       ElfDeregisterEventSource,'ElfDeregisterEventSource',\
       ElfNumberOfRecords,'ElfNumberOfRecords',\
       ElfOldestRecord,'ElfOldestRecord',\
       ElfOpenBackupEventLog,'ElfOpenBackupEventLogA',\
       ElfOpenEventLog,'ElfOpenEventLogA',\
       ElfReadEventLog,'ElfReadEventLogA',\
       ElfRegisterEventSource,'ElfRegisterEventSourceA',\
       ElfReportEvent,'ElfReportEventA',\
       EncryptFile,'EncryptFileA',\
       EnumDependentServices,'EnumDependentServicesA',\
       EnumServicesStatus,'EnumServicesStatusA',\
       EqualPrefixSid,'EqualPrefixSid',\
       EqualSid,'EqualSid',\
       FindFirstFreeAce,'FindFirstFreeAce',\
       FreeSid,'FreeSid',\
       GetAccessPermissionsForObject,'GetAccessPermissionsForObjectA',\
       GetAce,'GetAce',\
       GetAclInformation,'GetAclInformation',\
       GetAuditedPermissionsFromAcl,'GetAuditedPermissionsFromAclA',\
       GetCurrentHwProfile,'GetCurrentHwProfileA',\
       GetEffectiveRightsFromAcl,'GetEffectiveRightsFromAclA',\
       GetExplicitEntriesFromAcl,'GetExplicitEntriesFromAclA',\
       GetFileSecurity,'GetFileSecurityA',\
       GetKernelObjectSecurity,'GetKernelObjectSecurity',\
       GetLengthSid,'GetLengthSid',\
       GetMultipleTrustee,'GetMultipleTrusteeA',\
       GetMultipleTrusteeOperation,'GetMultipleTrusteeOperationA',\
       GetNamedSecurityInfo,'GetNamedSecurityInfoA',\
       GetNamedSecurityInfoEx,'GetNamedSecurityInfoExA',\
       GetNumberOfEventLogRecords,'GetNumberOfEventLogRecords',\
       GetOldestEventLogRecord,'GetOldestEventLogRecord',\
       GetOverlappedAccessResults,'GetOverlappedAccessResults',\
       GetPrivateObjectSecurity,'GetPrivateObjectSecurity',\
       GetSecurityDescriptorControl,'GetSecurityDescriptorControl',\
       GetSecurityDescriptorDacl,'GetSecurityDescriptorDacl',\
       GetSecurityDescriptorGroup,'GetSecurityDescriptorGroup',\
       GetSecurityDescriptorLength,'GetSecurityDescriptorLength',\
       GetSecurityDescriptorOwner,'GetSecurityDescriptorOwner',\
       GetSecurityDescriptorSacl,'GetSecurityDescriptorSacl',\
       GetSecurityInfo,'GetSecurityInfo',\
       GetSecurityInfoEx,'GetSecurityInfoExA',\
       GetServiceDisplayName,'GetServiceDisplayNameA',\
       GetServiceKeyName,'GetServiceKeyNameA',\
       GetSidLengthRequired,'GetSidLengthRequiredA',\
       GetSidSubAuthority,'GetSidSubAuthority',\
       GetSidSubAuthorityCount,'GetSidSubAuthorityCount',\
       GetTokenInformation,'GetTokenInformation',\
       GetTrusteeName,'GetTrusteeNameA',\
       GetTrusteeType,'GetTrusteeTypeA',\
       GetUserName,'GetUserNameA',\
       I_ScSetServiceBits,'I_ScSetServiceBitsA',\
       ImpersonateLoggedOnUser,'ImpersonateLoggedOnUser',\
       ImpersonateNamedPipeClient,'ImpersonateNamedPipeClient',\
       ImpersonateSelf,'ImpersonateSelf',\
       InitializeAcl,'InitializeAcl',\
       InitializeSecurityDescriptor,'InitializeSecurityDescriptor',\
       InitializeSid,'InitializeSid',\
       InitiateSystemShutdown,'InitiateSystemShutdownA',\
       IsTextUnicode,'IsTextUnicode',\
       IsTokenRestricted,'IsTokenRestricted',\
       IsValidAcl,'IsValidAcl',\
       IsValidSecurityDescriptor,'IsValidSecurityDescriptor',\
       IsValidSid,'IsValidSid',\
       LockServiceDatabase,'LockServiceDatabase',\
       LogonUser,'LogonUserA',\
       LookupAccountName,'LookupAccountNameA',\
       LookupAccountSid,'LookupAccountSidA',\
       LookupPrivilegeDisplayName,'LookupPrivilegeDisplayNameA',\
       LookupPrivilegeName,'LookupPrivilegeNameA',\
       LookupPrivilegeValue,'LookupPrivilegeValueA',\
       LookupSecurityDescriptorParts,'LookupSecurityDescriptorPartsA',\
       LsaAddAccountRights,'LsaAddAccountRights',\
       LsaAddPrivilegesToAccount,'LsaAddPrivilegesToAccount',\
       LsaClearAuditLog,'LsaClearAuditLog',\
       LsaClose,'LsaClose',\
       LsaCreateAccount,'LsaCreateAccount',\
       LsaCreateSecret,'LsaCreateSecret',\
       LsaCreateTrustedDomain,'LsaCreateTrustedDomain',\
       LsaCreateTrustedDomainEx,'LsaCreateTrustedDomainEx',\
       LsaDelete,'LsaDelete',\
       LsaDeleteTrustedDomain,'LsaDeleteTrustedDomain',\
       LsaEnumerateAccountRights,'LsaEnumerateAccountRights',\
       LsaEnumerateAccounts,'LsaEnumerateAccounts',\
       LsaEnumerateAccountsWithUserRight,'LsaEnumerateAccountsWithUserRight',\
       LsaEnumeratePrivileges,'LsaEnumeratePrivileges',\
       LsaEnumeratePrivilegesOfAccount,'LsaEnumeratePrivilegesOfAccount',\
       LsaEnumerateTrustedDomains,'LsaEnumerateTrustedDomains',\
       LsaEnumerateTrustedDomainsEx,'LsaEnumerateTrustedDomainsEx',\
       LsaFreeMemory,'LsaFreeMemory',\
       LsaGetQuotasForAccount,'LsaGetQuotasForAccount',\
       LsaGetSystemAccessAccount,'LsaGetSystemAccessAccount',\
       LsaGetUserName,'LsaGetUserName',\
       LsaICLookupNames,'LsaICLookupNames',\
       LsaICLookupSids,'LsaICLookupSids',\
       LsaIGetTrustedDomainAuthInfoBlobs,'LsaIGetTrustedDomainAuthInfoBlobs',\
       LsaISetTrustedDomainAuthInfoBlobs,'LsaISetTrustedDomainAuthInfoBlobs',\
       LsaLookupNames,'LsaLookupNames',\
       LsaLookupPrivilegeDisplayName,'LsaLookupPrivilegeDisplayName',\
       LsaLookupPrivilegeName,'LsaLookupPrivilegeName',\
       LsaLookupPrivilegeValue,'LsaLookupPrivilegeValue',\
       LsaLookupSids,'LsaLookupSids',\
       LsaNtStatusToWinError,'LsaNtStatusToWinError',\
       LsaOpenAccount,'LsaOpenAccount',\
       LsaOpenPolicy,'LsaOpenPolicy',\
       LsaOpenSecret,'LsaOpenSecret',\
       LsaOpenTrustedDomain,'LsaOpenTrustedDomain',\
       LsaQueryDomainInformationPolicy,'LsaQueryDomainInformationPolicy',\
       LsaQueryInfoTrustedDomain,'LsaQueryInfoTrustedDomain',\
       LsaQueryInformationPolicy,'LsaQueryInformationPolicy',\
       LsaQueryLocalInformationPolicy,'LsaQueryLocalInformationPolicy',\
       LsaQuerySecret,'LsaQuerySecret',\
       LsaQuerySecurityObject,'LsaQuerySecurityObject',\
       LsaQueryTrustedDomainInfo,'LsaQueryTrustedDomainInfo',\
       LsaQueryTrustedDomainInfoByName,'LsaQueryTrustedDomainInfoByName',\
       LsaRemoveAccountRights,'LsaRemoveAccountRights',\
       LsaRemovePrivilegesFromAccount,'LsaRemovePrivilegesFromAccount',\
       LsaRetrievePrivateData,'LsaRetrievePrivateData',\
       LsaSetDomainInformationPolicy,'LsaSetDomainInformationPolicy',\
       LsaSetInformationPolicy,'LsaSetInformationPolicy',\
       LsaSetInformationTrustedDomain,'LsaSetInformationTrustedDomain',\
       LsaSetLocalInformationPolicy,'LsaSetLocalInformationPolicy',\
       LsaSetQuotasForAccount,'LsaSetQuotasForAccount',\
       LsaSetSecret,'LsaSetSecret',\
       LsaSetSecurityObject,'LsaSetSecurityObject',\
       LsaSetSystemAccessAccount,'LsaSetSystemAccessAccount',\
       LsaSetTrustedDomainInfoByName,'LsaSetTrustedDomainInfoByName',\
       LsaSetTrustedDomainInformation,'LsaSetTrustedDomainInformation',\
       LsaStorePrivateData,'LsaStorePrivateData',\
       MakeAbsoluteSD,'MakeAbsoluteSD',\
       MakeSelfRelativeSD,'MakeSelfRelativeSD',\
       MapGenericMask,'MapGenericMask',\
       NotifyBootConfigStatus,'NotifyBootConfigStatus',\
       NotifyChangeEventLog,'NotifyChangeEventLog',\
       ObjectCloseAuditAlarm,'ObjectCloseAuditAlarmA',\
       ObjectDeleteAuditAlarm,'ObjectDeleteAuditAlarmA',\
       ObjectOpenAuditAlarm,'ObjectOpenAuditAlarmA',\
       ObjectPrivilegeAuditAlarm,'ObjectPrivilegeAuditAlarmA',\
       OpenBackupEventLog,'OpenBackupEventLogA',\
       OpenEventLog,'OpenEventLogA',\
       OpenProcessToken,'OpenProcessToken',\
       OpenRaw,'OpenRawA',\
       OpenSCManager,'OpenSCManagerA',\
       OpenService,'OpenServiceA',\
       OpenThreadToken,'OpenThreadToken',\
       PrivilegeCheck,'PrivilegeCheck',\
       PrivilegedServiceAuditAlarm,'PrivilegedServiceAuditAlarmA',\
       QueryRecoveryAgents,'QueryRecoveryAgentsA',\
       QueryServiceConfig2,'QueryServiceConfig2A',\
       QueryServiceConfig,'QueryServiceConfigA',\
       QueryServiceLockStatus,'QueryServiceLockStatusA',\
       QueryServiceObjectSecurity,'QueryServiceObjectSecurity',\
       QueryServiceStatus,'QueryServiceStatus',\
       QueryWindows31FilesMigration,'QueryWindows31FilesMigration',\
       ReadEventLog,'ReadEventLogA',\
       ReadRaw,'ReadRaw',\
       RegCloseKey,'RegCloseKey',\
       RegConnectRegistry,'RegConnectRegistryA',\
       RegCreateKey,'RegCreateKeyA',\
       RegCreateKeyEx,'RegCreateKeyExA',\
       RegDeleteKey,'RegDeleteKeyA',\
       RegDeleteValue,'RegDeleteValueA',\
       RegEnumKey,'RegEnumKeyA',\
       RegEnumKeyEx,'RegEnumKeyExA',\
       RegEnumValue,'RegEnumValueA',\
       RegFlushKey,'RegFlushKey',\
       RegGetKeySecurity,'RegGetKeySecurity',\
       RegLoadKey,'RegLoadKeyA',\
       RegNotifyChangeKeyValue,'RegNotifyChangeKeyValue',\
       RegOpenKey,'RegOpenKeyA',\
       RegOpenKeyEx,'RegOpenKeyExA',\
       RegOverridePredefKey,'RegOverridePredefKey',\
       RegQueryInfoKey,'RegQueryInfoKeyA',\
       RegQueryMultipleValues,'RegQueryMultipleValuesA',\
       RegQueryValue,'RegQueryValueA',\
       RegQueryValueEx,'RegQueryValueExA',\
       RegReplaceKey,'RegReplaceKeyA',\
       RegRestoreKey,'RegRestoreKeyA',\
       RegSaveKey,'RegSaveKeyA',\
       RegSetKeySecurity,'RegSetKeySecurity',\
       RegSetValue,'RegSetValueA',\
       RegSetValueEx,'RegSetValueExA',\
       RegUnLoadKey,'RegUnLoadKeyA',\
       RegisterEventSource,'RegisterEventSourceA',\
       RegisterServiceCtrlHandler,'RegisterServiceCtrlHandlerA',\
       ReportEvent,'ReportEventA',\
       RevertToSelf,'RevertToSelf',\
       SetAclInformation,'SetAclInformation',\
       SetEntriesInAccessList,'SetEntriesInAccessListA',\
       SetEntriesInAcl,'SetEntriesInAclA',\
       SetEntriesInAuditList,'SetEntriesInAuditListA',\
       SetFileSecurity,'SetFileSecurityA',\
       SetKernelObjectSecurity,'SetKernelObjectSecurity',\
       SetNamedSecurityInfo,'SetNamedSecurityInfoA',\
       SetNamedSecurityInfoEx,'SetNamedSecurityInfoExA',\
       SetPrivateObjectSecurity,'SetPrivateObjectSecurity',\
       SetPrivateObjectSecurityEx,'SetPrivateObjectSecurityEx',\
       SetSecurityDescriptorControl,'SetSecurityDescriptorControl',\
       SetSecurityDescriptorDacl,'SetSecurityDescriptorDacl',\
       SetSecurityDescriptorGroup,'SetSecurityDescriptorGroup',\
       SetSecurityDescriptorOwner,'SetSecurityDescriptorOwner',\
       SetSecurityDescriptorSacl,'SetSecurityDescriptorSacl',\
       SetSecurityInfo,'SetSecurityInfo',\
       SetSecurityInfoEx,'SetSecurityInfoExA',\
       SetServiceBits,'SetServiceBits',\
       SetServiceObjectSecurity,'SetServiceObjectSecurity',\
       SetServiceStatus,'SetServiceStatus',\
       SetThreadToken,'SetThreadToken',\
       SetTokenInformation,'SetTokenInformation',\
       StartService,'StartServiceA',\
       StartServiceCtrlDispatcher,'StartServiceCtrlDispatcherA',\
       SynchronizeWindows31FilesAndWindowsNTRegistry,'SynchronizeWindows31FilesAndWindowsNTRegistry',\
       TrusteeAccessToObject,'TrusteeAccessToObjectA',\
       UnlockServiceDatabase,'UnlockServiceDatabase',\
       WriteRaw,'WriteRaw'
