; --------------------------------------------------------------------------------------------------
;                           samlib.inc Copyright The MASM32 SDK 1998-2010
; --------------------------------------------------------------------------------------------------

IFNDEF SAMLIB_INC
SAMLIB_INC equ <1>

SamAddMemberToAlias PROTO STDCALL :DWORD,:DWORD
SamAddMemberToGroup PROTO STDCALL :DWORD,:DWORD,:DWORD
SamAddMultipleMembersToAlias PROTO STDCALL :DWORD,:DWORD,:DWORD
SamChangePasswordUser2 PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamChangePasswordUser3 PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamChangePasswordUser PROTO STDCALL :DWORD,:DWORD,:DWORD
SamCloseHandle PROTO STDCALL :DWORD
SamConnect PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamConnectWithCreds PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamCreateAliasInDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamCreateGroupInDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamCreateUser2InDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamCreateUserInDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamDeleteAlias PROTO STDCALL :DWORD
SamDeleteGroup PROTO STDCALL :DWORD
SamDeleteUser PROTO STDCALL :DWORD
SamEnumerateAliasesInDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamEnumerateDomainsInSamServer PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamEnumerateGroupsInDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamEnumerateUsersInDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamFreeMemory PROTO STDCALL :DWORD
SamGetAliasMembership PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamGetCompatibilityMode PROTO STDCALL :DWORD,:DWORD
SamGetDisplayEnumerationIndex PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamGetGroupsForUser PROTO STDCALL :DWORD,:DWORD,:DWORD
SamGetMembersInAlias PROTO STDCALL :DWORD,:DWORD,:DWORD
SamGetMembersInGroup PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamLookupDomainInSamServer PROTO STDCALL :DWORD,:DWORD,:DWORD
SamLookupIdsInDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamLookupNamesInDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamOpenAlias PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamOpenDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamOpenGroup PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamOpenUser PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamQueryDisplayInformation PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamQueryInformationAlias PROTO STDCALL :DWORD,:DWORD,:DWORD
SamQueryInformationDomain PROTO STDCALL :DWORD,:DWORD,:DWORD
SamQueryInformationGroup PROTO STDCALL :DWORD,:DWORD,:DWORD
SamQueryInformationUser PROTO STDCALL :DWORD,:DWORD,:DWORD
SamQuerySecurityObject PROTO STDCALL :DWORD,:DWORD,:DWORD
SamRemoveMemberFromAlias PROTO STDCALL :DWORD,:DWORD
SamRemoveMemberFromForeignDomain PROTO STDCALL :DWORD,:DWORD
SamRemoveMemberFromGroup PROTO STDCALL :DWORD,:DWORD
SamRemoveMultipleMembersFromAlias PROTO STDCALL :DWORD,:DWORD,:DWORD
SamRidToSid PROTO STDCALL :DWORD,:DWORD,:DWORD
SamSetInformationAlias PROTO STDCALL :DWORD,:DWORD,:DWORD
SamSetInformationDomain PROTO STDCALL :DWORD,:DWORD,:DWORD
SamSetInformationGroup PROTO STDCALL :DWORD,:DWORD,:DWORD
SamSetInformationUser PROTO STDCALL :DWORD,:DWORD,:DWORD
SamSetMemberAttributesOfGroup PROTO STDCALL :DWORD,:DWORD,:DWORD
SamSetSecurityObject PROTO STDCALL :DWORD,:DWORD,:DWORD
SamShutdownSamServer PROTO STDCALL :DWORD
SamTestPrivateFunctionsDomain PROTO STDCALL :DWORD
SamTestPrivateFunctionsUser PROTO STDCALL :DWORD
SamiChangeKeys PROTO STDCALL
SamiChangePasswordUser2 PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamiChangePasswordUser PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamiEncryptPasswords PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamiGetBootKeyInformation PROTO STDCALL :DWORD,:DWORD
SamiLmChangePasswordUser PROTO STDCALL :DWORD,:DWORD,:DWORD
SamiOemChangePasswordUser2 PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamiSetBootKeyInformation PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamiSetDSRMPassword PROTO STDCALL :DWORD,:DWORD,:DWORD
SamiSetDSRMPasswordOWF PROTO STDCALL :DWORD,:DWORD,:DWORD

ELSE
  echo -----------------------------------------
  echo WARNING duplicate include file samlib.inc
  echo -----------------------------------------
ENDIF
