; $Id: ADVAPI32.DEF,v 1.8 1999-11-30 19:41:06 sandervl Exp $

;Created by BLAST for IBM's compiler
LIBRARY ADVAPI32 INITINSTANCE
DATA MULTIPLE NONSHARED

IMPORTS
    _O32_RegCloseKey     = PMWINX.541
    _O32_RegCreateKey    = PMWINX.542
    _O32_RegCreateKeyEx  = PMWINX.543
    _O32_RegDeleteKey    = PMWINX.544
    _O32_RegDeleteValue  = PMWINX.545
    _O32_RegEnumKey      = PMWINX.546
    _O32_RegEnumKeyEx    = PMWINX.547
    _O32_RegEnumValue    = PMWINX.548
    _O32_RegOpenKey      = PMWINX.549
    _O32_RegOpenKeyEx    = PMWINX.550
    _O32_RegQueryInfoKey = PMWINX.551
    _O32_RegQueryValue   = PMWINX.552
    _O32_RegQueryValueEx = PMWINX.553
    _O32_RegSetValue     = PMWINX.554
    _O32_RegSetValueEx   = PMWINX.555

EXPORTS

; ----------------------------------------------------------------------------
; LSA
; ----------------------------------------------------------------------------

     LsaAddAccountRights                   = _LsaAddAccountRights@16
     LsaClose                              = _LsaClose@4                              @243
     LsaCreateTrustedDomainEx              = _LsaCreateTrustedDomainEx@20
     LsaDeleteTrustedDomain                = _LsaDeleteTrustedDomain@8                @280
     LsaEnumerateAccountRights             = _LsaEnumerateAccountRights@16
     LsaEnumerateAccountsWithUserRight     = _LsaEnumerateAccountsWithUserRight@16
     LsaEnumerateTrustedDomains            = _LsaEnumerateTrustedDomains@20
     LsaEnumerateTrustedDomainsEx          = _LsaEnumerateTrustedDomainsEx@20
     LsaFreeMemory                         = _LsaFreeMemory@4                         @241
     LsaLookupNames                        = _LsaLookupNames@20                       @245
     LsaLookupSids                         = _LsaLookupSids@20                        @240
     LsaNtStatusToWinError                 = _LsaNtStatusToWinError@4
     LsaOpenPolicy                         = _LsaOpenPolicy@16                        @239
     LsaOpenTrustedDomainByName            = _LsaOpenTrustedDomainByName@16
     LsaQueryInformationPolicy             = _LsaQueryInformationPolicy@12            @242
     LsaQueryTrustedDomainInfo             = _LsaQueryTrustedDomainInfo@16
     LsaQueryTrustedDomainInfoByName       = _LsaQueryTrustedDomainInfoByName@16
     LsaRegisterPolicyChangeNotification   = _LsaRegisterPolicyChangeNotification@8
     LsaRemoveAccountRights                = _LsaRemoveAccountRights@20
     LsaRetrievePrivateData                = _LsaRetrievePrivateData@12
     LsaSetInformationPolicy               = _LsaSetInformationPolicy@12              @244
     LsaSetTrustedDomainInfo               = _LsaSetTrustedDomainInfo@16
     LsaSetTrustedDomainInfoByName         = _LsaSetTrustedDomainInfoByName@16
     LsaStorePrivateData                   = _LsaStorePrivateData@12
     LsaUnregisterPolicyChangeNotification = _LsaUnregisterPolicyChangeNotification@8

; ----------------------------------------------------------------------------
; Registry
; ----------------------------------------------------------------------------

     RegCloseKey                           = _RegCloseKey@4                     @127
     RegConnectRegistryA                   = _RegConnectRegistryA@12            @128
     RegConnectRegistryW                   = _RegConnectRegistryW@12            @129
     RegCreateKeyA                         = _RegCreateKeyA@12                  @130
     RegCreateKeyExA                       = _RegCreateKeyExA@36                @131
     RegCreateKeyExW                       = _RegCreateKeyExW@36                @132
     RegCreateKeyW                         = _RegCreateKeyW@12                  @133
     RegDeleteKeyA                         = _RegDeleteKeyA@8                   @134
     RegDeleteKeyW                         = _RegDeleteKeyW@8                   @135
     RegDeleteValueA                       = _RegDeleteValueA@8                 @136
     RegDeleteValueW                       = _RegDeleteValueW@8                 @137
     RegEnumKeyA                           = _RegEnumKeyA@16                    @138
     RegEnumKeyExA                         = _RegEnumKeyExA@32                  @139
     RegEnumKeyExW                         = _RegEnumKeyExW@32                  @140
     RegEnumKeyW                           = _RegEnumKeyW@16                    @141
     RegEnumValueA                         = _RegEnumValueA@32                  @142
     RegEnumValueW                         = _RegEnumValueW@32                  @143
     RegFlushKey                           = _RegFlushKey@4                     @144
     RegGetKeySecurity                     = _RegGetKeySecurity@16              @145
     RegLoadKeyA                           = _RegLoadKeyA@12                    @146
     RegLoadKeyW                           = _RegLoadKeyW@12                    @147
     RegNotifyChangeKeyValue               = _RegNotifyChangeKeyValue@20        @148
     RegOpenKeyA                           = _RegOpenKeyA@12                    @149
     RegOpenKeyExA                         = _RegOpenKeyExA@20                  @150
     RegOpenKeyExW                         = _RegOpenKeyExW@20                  @151
     RegOpenKeyW                           = _RegOpenKeyW@12                    @152
     RegQueryInfoKeyA                      = _RegQueryInfoKeyA@48               @153
     RegQueryInfoKeyW                      = _RegQueryInfoKeyW@48               @154
     RegQueryMultipleValuesA               = _RegQueryMultipleValuesA@20        @155
     RegQueryMultipleValuesW               = _RegQueryMultipleValuesW@20        @156
     RegQueryValueA                        = _RegQueryValueA@16                 @157
     RegQueryValueExA                      = _RegQueryValueExA@24               @158
     RegQueryValueExW                      = _RegQueryValueExW@24               @159
     RegQueryValueW                        = _RegQueryValueW@16                 @160
;    RegRemapPreDefKey                     = _RegRemapPreDefKey@4               @161
     RegReplaceKeyA                        = _RegReplaceKeyA@16                 @162
     RegReplaceKeyW                        = _RegReplaceKeyW@16                 @163
     RegRestoreKeyA                        = _RegRestoreKeyA@12                 @164
     RegRestoreKeyW                        = _RegRestoreKeyW@12                 @165
     RegSaveKeyA                           = _RegSaveKeyA@12                    @166
     RegSaveKeyW                           = _RegSaveKeyW@12                    @167
     RegSetKeySecurity                     = _RegSetKeySecurity@12              @168
     RegSetValueA                          = _RegSetValueA@20                   @169
     RegSetValueExA                        = _RegSetValueExA@24                 @170
     RegSetValueExW                        = _RegSetValueExW@24                 @171
     RegSetValueW                          = _RegSetValueW@20                   @172
     RegUnLoadKeyA                         = _RegUnLoadKeyA@8                   @173
     RegUnLoadKeyW                         = _RegUnLoadKeyW@8                   @174


; ----------------------------------------------------------------------------
; Rest
; ----------------------------------------------------------------------------
     AbortSystemShutdownA       = _AbortSystemShutdownA@4            @1
     AbortSystemShutdownW       = _AbortSystemShutdownW@4            @2
     AccessCheck                = _AccessCheck@32                    @3
     AccessCheckAndAuditAlarmA  = _AccessCheckAndAuditAlarmA@44      @4
     AccessCheckAndAuditAlarmW  = _AccessCheckAndAuditAlarmW@44      @5
     AddAccessAllowedAce        = _AddAccessAllowedAce@16            @6
     AddAccessDeniedAce         = _AddAccessDeniedAce@16             @7
     AddAce                     = _AddAce@20                         @8
     AddAuditAccessAce          = _AddAuditAccessAce@24              @9
     AdjustTokenGroups          = _AdjustTokenGroups@24              @10
     AdjustTokenPrivileges      = _AdjustTokenPrivileges@24          @11
     AllocateAndInitializeSid   = _AllocateAndInitializeSid@44       @12
     AllocateLocallyUniqueId    = _AllocateLocallyUniqueId@4         @13
     AreAllAccessesGranted      = _AreAllAccessesGranted@8           @14
     AreAnyAccessesGranted      = _AreAnyAccessesGranted@8           @15
     BackupEventLogA            = _BackupEventLogA@8                 @16
     BackupEventLogW            = _BackupEventLogW@8                 @17
     ChangeServiceConfigA       = _ChangeServiceConfigA@44           @18
     ChangeServiceConfigW       = _ChangeServiceConfigW@44           @19
     ClearEventLogA             = _ClearEventLogA@8                  @20
     ClearEventLogW             = _ClearEventLogW@8                  @21
     CloseEventLog              = _CloseEventLog@4                   @22
     CloseServiceHandle         = _CloseServiceHandle@4              @23
     ControlService             = _ControlService@12                 @24
     CopySid                    = _CopySid@12                        @25
     CreatePrivateObjectSecurity  = _CreatePrivateObjectSecurity@24  @26
     CreateProcessAsUserA       = _CreateProcessAsUserA@44           @27
     CreateProcessAsUserW       = _CreateProcessAsUserW@44           @28
     CreateServiceA             = _CreateServiceA@52                 @29
     CreateServiceW             = _CreateServiceW@52                 @30
     DeleteAce                  = _DeleteAce@8                       @31
     DeleteService              = _DeleteService@4                   @32
     DeregisterEventSource      = _DeregisterEventSource@4           @33
     DestroyPrivateObjectSecurity  = _DestroyPrivateObjectSecurity@4 @34
     DuplicateToken             = _DuplicateToken@12                 @35
     EnumDependentServicesA     = _EnumDependentServicesA@24         @36
     EnumDependentServicesW     = _EnumDependentServicesW@24         @37
     EnumServicesStatusA        = _EnumServicesStatusA@32            @38
     EnumServicesStatusW        = _EnumServicesStatusW@32            @39
     EqualPrefixSid             = _EqualPrefixSid@8                  @40
     EqualSid                   = _EqualSid@8                        @41
     FindFirstFreeAce           = _FindFirstFreeAce@8                @42
     FreeSid                    = _FreeSid@4                         @43
     GetAce                     = _GetAce@12                         @44
     GetAclInformation          = _GetAclInformation@16              @45
     GetFileSecurityA           = _GetFileSecurityA@20               @46
     GetFileSecurityW           = _GetFileSecurityW@20               @47
     GetKernelObjectSecurity    = _GetKernelObjectSecurity@20        @48
     GetLengthSid               = _GetLengthSid@4                    @49
     GetNumberOfEventLogRecords  = _GetNumberOfEventLogRecords@8     @50
     GetOldestEventLogRecord    = _GetOldestEventLogRecord@8         @51
     GetPrivateObjectSecurity   = _GetPrivateObjectSecurity@20       @52
     GetSecurityDescriptorControl  = _GetSecurityDescriptorControl@12 @53
     GetSecurityDescriptorDacl  = _GetSecurityDescriptorDacl@16      @54
     GetSecurityDescriptorGroup  = _GetSecurityDescriptorGroup@12    @55
     GetSecurityDescriptorLength  = _GetSecurityDescriptorLength@4   @56
     GetSecurityDescriptorOwner  = _GetSecurityDescriptorOwner@12    @57
     GetSecurityDescriptorSacl  = _GetSecurityDescriptorSacl@16      @58
     GetServiceDisplayNameA     = _GetServiceDisplayNameA@16         @59
     GetServiceDisplayNameW     = _GetServiceDisplayNameW@16         @60
     GetServiceKeyNameA         = _GetServiceKeyNameA@16             @61
     GetServiceKeyNameW         = _GetServiceKeyNameW@16             @62
     GetSidIdentifierAuthority  = _GetSidIdentifierAuthority@4       @63
     GetSidLengthRequired       = _GetSidLengthRequired@4            @64
     GetSidSubAuthority         = _GetSidSubAuthority@8              @65
     GetSidSubAuthorityCount    = _GetSidSubAuthorityCount@4         @66
     GetTokenInformation        = _GetTokenInformation@20            @67
     GetUserNameA               = _GetUserNameA@8                    @68
     GetUserNameW               = _GetUserNameW@8                    @69
     ImpersonateLoggedOnUser    = _ImpersonateLoggedOnUser@4         @70
     ImpersonateNamedPipeClient  = _ImpersonateNamedPipeClient@4     @71
     ImpersonateSelf            = _ImpersonateSelf@4                 @72
     InitializeAcl              = _InitializeAcl@12                  @73
     InitializeSecurityDescriptor  = _InitializeSecurityDescriptor@8  @74
     InitializeSid              = _InitializeSid@12                  @75
     InitiateSystemShutdownA    = _InitiateSystemShutdownA@20        @76
     InitiateSystemShutdownW    = _InitiateSystemShutdownW@20        @77
     IsTextUnicode              = _IsTextUnicode@12                  @78
     IsValidAcl                 = _IsValidAcl@4                      @79
     IsValidSecurityDescriptor  = _IsValidSecurityDescriptor@4       @80
     IsValidSid                 = _IsValidSid@4                      @81
     LockServiceDatabase        = _LockServiceDatabase@4             @82
     LogonUserA                 = _LogonUserA@24                     @83
     LogonUserW                 = _LogonUserW@24                     @84
     LookupAccountNameA         = _LookupAccountNameA@28             @85
     LookupAccountNameW         = _LookupAccountNameW@28             @86
     LookupAccountSidA          = _LookupAccountSidA@28              @87
     LookupAccountSidW          = _LookupAccountSidW@28              @88
     LookupPrivilegeDisplayNameA  = _LookupPrivilegeDisplayNameA@20  @89
     LookupPrivilegeDisplayNameW  = _LookupPrivilegeDisplayNameW@20  @90
     LookupPrivilegeNameA       = _LookupPrivilegeNameA@16           @91
     LookupPrivilegeNameW       = _LookupPrivilegeNameW@16           @92
     LookupPrivilegeValueA      = _LookupPrivilegeValueA@12          @93
     LookupPrivilegeValueW      = _LookupPrivilegeValueW@12          @94
     MakeAbsoluteSD             = _MakeAbsoluteSD@44                 @95
     MakeSelfRelativeSD         = _MakeSelfRelativeSD@12             @96
     MapGenericMask             = _MapGenericMask@8                  @97
     NotifyBootConfigStatus     = _NotifyBootConfigStatus@4          @98
     NotifyChangeEventLog       = _NotifyChangeEventLog@8            @99
     ObjectCloseAuditAlarmA     = _ObjectCloseAuditAlarmA@12         @100
     ObjectCloseAuditAlarmW     = _ObjectCloseAuditAlarmW@12         @101
     ObjectOpenAuditAlarmA      = _ObjectOpenAuditAlarmA@48          @102
     ObjectOpenAuditAlarmW      = _ObjectOpenAuditAlarmW@48          @103
     ObjectPrivilegeAuditAlarmA  = _ObjectPrivilegeAuditAlarmA@24    @104
     ObjectPrivilegeAuditAlarmW  = _ObjectPrivilegeAuditAlarmW@24    @105
     OpenBackupEventLogA        = _OpenBackupEventLogA@8             @106
     OpenBackupEventLogW        = _OpenBackupEventLogW@8             @107
     OpenEventLogA              = _OpenEventLogA@8                   @108
     OpenEventLogW              = _OpenEventLogW@8                   @109
     OpenProcessToken           = _OpenProcessToken@12               @110
     OpenSCManagerA             = _OpenSCManagerA@12                 @111
     OpenSCManagerW             = _OpenSCManagerW@12                 @112
     OpenServiceA               = _OpenServiceA@12                   @113
     OpenServiceW               = _OpenServiceW@12                   @114
     OpenThreadToken            = _OpenThreadToken@16                @115
     PrivilegeCheck             = _PrivilegeCheck@12                 @116
     PrivilegedServiceAuditAlarmA  = _PrivilegedServiceAuditAlarmA@20 @117
     PrivilegedServiceAuditAlarmW  = _PrivilegedServiceAuditAlarmW@20 @118
     QueryServiceConfigA        = _QueryServiceConfigA@16            @119
     QueryServiceConfigW        = _QueryServiceConfigW@16            @120
     QueryServiceLockStatusA    = _QueryServiceLockStatusA@16        @121
     QueryServiceLockStatusW    = _QueryServiceLockStatusW@16        @122
     QueryServiceObjectSecurity  = _QueryServiceObjectSecurity@20    @123
     QueryServiceStatus         = _QueryServiceStatus@8              @124
     ReadEventLogA              = _ReadEventLogA@28                  @125
     ReadEventLogW              = _ReadEventLogW@28                  @126
     RegisterEventSourceA       = _RegisterEventSourceA@8            @175
     RegisterEventSourceW       = _RegisterEventSourceW@8            @176
     RegisterServiceCtrlHandlerA  = _RegisterServiceCtrlHandlerA@8   @177
     RegisterServiceCtrlHandlerW  = _RegisterServiceCtrlHandlerW@8   @178
     ReportEventA               = _ReportEventA@36                   @179
     ReportEventW               = _ReportEventW@36                   @180
     RevertToSelf               = _RevertToSelf@0                    @181
     SetAclInformation          = _SetAclInformation@16              @182
     SetFileSecurityA           = _SetFileSecurityA@12               @183
     SetFileSecurityW           = _SetFileSecurityW@12               @184
     SetKernelObjectSecurity    = _SetKernelObjectSecurity@12        @185
     SetPrivateObjectSecurity   = _SetPrivateObjectSecurity@20       @186
     SetSecurityDescriptorDacl  = _SetSecurityDescriptorDacl@16      @187
     SetSecurityDescriptorGroup  = _SetSecurityDescriptorGroup@12    @188
     SetSecurityDescriptorOwner  = _SetSecurityDescriptorOwner@12    @189
     SetSecurityDescriptorSacl  = _SetSecurityDescriptorSacl@16      @190
     SetServiceBits             = _SetServiceBits@16                 @191
     SetServiceObjectSecurity   = _SetServiceObjectSecurity@12       @192
     SetServiceStatus           = _SetServiceStatus@8                @193
     SetThreadToken             = _SetThreadToken@8                  @194
     SetTokenInformation        = _SetTokenInformation@16            @195
     StartServiceA              = _StartServiceA@12                  @196
     StartServiceCtrlDispatcherA  = _StartServiceCtrlDispatcherA@4   @197
     StartServiceCtrlDispatcherW  = _StartServiceCtrlDispatcherW@4   @198
     StartServiceW              = _StartServiceW@12                  @199
     UnlockServiceDatabase      = _UnlockServiceDatabase@4           @200

