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

IFNDEF SAMSRV_INC
SAMSRV_INC equ <1>

SamIAccountRestrictions PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamIAddDSNameToAlias PROTO STDCALL :DWORD,:DWORD
SamIAddDSNameToGroup PROTO STDCALL :DWORD,:DWORD
SamIAmIGC PROTO STDCALL
SamIChangePasswordForeignUser2 PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamIChangePasswordForeignUser PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamIConnect PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamICreateAccountByRid PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamIDemote PROTO STDCALL :DWORD,:DWORD,:DWORD
SamIDemoteUndo PROTO STDCALL
SamIDoFSMORoleChange PROTO STDCALL :DWORD
SamIDsCreateObjectInDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamIDsSetObjectInformation PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamIEnumerateAccountRids PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamIEnumerateInterdomainTrustAccountsForUpgrade PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamIFloatingSingleMasterOpEx PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamIFreeSidAndAttributesList PROTO STDCALL :DWORD
SamIFreeSidArray PROTO STDCALL :DWORD
SamIFreeVoid PROTO STDCALL :DWORD
SamIFree_SAMPR_ALIAS_INFO_BUFFER PROTO STDCALL :DWORD,:DWORD
SamIFree_SAMPR_DISPLAY_INFO_BUFFER PROTO STDCALL :DWORD,:DWORD
SamIFree_SAMPR_DOMAIN_INFO_BUFFER PROTO STDCALL :DWORD,:DWORD
SamIFree_SAMPR_ENUMERATION_BUFFER PROTO STDCALL :DWORD
SamIFree_SAMPR_GET_GROUPS_BUFFER PROTO STDCALL :DWORD
SamIFree_SAMPR_GET_MEMBERS_BUFFER PROTO STDCALL :DWORD
SamIFree_SAMPR_GROUP_INFO_BUFFER PROTO STDCALL :DWORD,:DWORD
SamIFree_SAMPR_PSID_ARRAY PROTO STDCALL :DWORD
SamIFree_SAMPR_RETURNED_USTRING_ARRAY PROTO STDCALL :DWORD
SamIFree_SAMPR_SR_SECURITY_DESCRIPTOR PROTO STDCALL :DWORD
SamIFree_SAMPR_ULONG_ARRAY PROTO STDCALL :DWORD
SamIFree_SAMPR_USER_INFO_BUFFER PROTO STDCALL :DWORD,:DWORD
SamIFree_UserInternal6Information PROTO STDCALL :DWORD
SamIGCLookupNames PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamIGCLookupSids PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamIGetAliasMembership PROTO STDCALL :DWORD,:DWORD,:DWORD
SamIGetBootKeyInformation PROTO STDCALL :DWORD,:DWORD
SamIGetDefaultAdministratorName PROTO STDCALL :DWORD,:DWORD
SamIGetFixedAttributes PROTO STDCALL :DWORD,:DWORD,:DWORD
SamIGetInterdomainTrustAccountPasswordsForUpgrade PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamIGetPrivateData PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamIGetResourceGroupMembershipsTransitive PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamIGetSerialNumberDomain PROTO STDCALL :DWORD,:DWORD,:DWORD
SamIGetUserLogonInformation2 PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamIGetUserLogonInformation PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamIGetUserLogonInformationEx PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamIImpersonateNullSession PROTO STDCALL
SamIIncrementPerformanceCounter PROTO STDCALL :DWORD
SamIInitialize PROTO STDCALL
SamIIsDownlevelDcUpgrade PROTO STDCALL
SamIIsExtendedSidMode PROTO STDCALL :DWORD
SamIIsRebootAfterPromotion PROTO STDCALL
SamIIsSetupInProgress PROTO STDCALL :DWORD
SamILoadDownlevelDatabase PROTO STDCALL :DWORD
SamILoopbackConnect PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamIMixedDomain2 PROTO STDCALL :DWORD,:DWORD
SamIMixedDomain PROTO STDCALL :DWORD
SamINT4UpgradeInProgress PROTO STDCALL
SamINetLogonPing PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamINotifyDelta PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamINotifyRoleChange PROTO STDCALL :DWORD,:DWORD
SamINotifyServerDelta PROTO STDCALL :DWORD
SamIOpenAccount PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamIOpenUserByAlternateId PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamIPromote PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamIPromoteUndo PROTO STDCALL
SamIQueryServerRole2 PROTO STDCALL :DWORD,:DWORD
SamIQueryServerRole PROTO STDCALL :DWORD,:DWORD
SamIRemoveDSNameFromAlias PROTO STDCALL :DWORD,:DWORD
SamIRemoveDSNameFromGroup PROTO STDCALL :DWORD,:DWORD
SamIReplaceDownlevelDatabase PROTO STDCALL :DWORD,:DWORD,:DWORD
SamIResetBadPwdCountOnPdc PROTO STDCALL :DWORD
SamIRetrievePrimaryCredentials PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamIRevertNullSession PROTO STDCALL
SamISameSite PROTO STDCALL :DWORD
SamISetAuditingInformation PROTO STDCALL :DWORD
SamISetMixedDomainFlag PROTO STDCALL :DWORD
SamISetPasswordForeignUser2 PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamISetPasswordForeignUser PROTO STDCALL :DWORD,:DWORD,:DWORD
SamISetPasswordInfoOnPdc PROTO STDCALL :DWORD,:DWORD,:DWORD
SamISetPrivateData PROTO STDCALL :DWORD,:DWORD,:DWORD
SamISetSerialNumberDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamIStorePrimaryCredentials PROTO STDCALL :DWORD,:DWORD
SamIUPNFromUserHandle PROTO STDCALL :DWORD,:DWORD,:DWORD
SamIUnLoadDownlevelDatabase PROTO STDCALL :DWORD
SamIUpdateLogonStatistics PROTO STDCALL :DWORD,:DWORD
SampAbortSingleLoopbackTask PROTO STDCALL :DWORD
SampAccountControlToFlags PROTO STDCALL :DWORD
SampAcquireSamLockExclusive PROTO STDCALL
SampAcquireWriteLock PROTO STDCALL
SampCommitBufferedWrites PROTO STDCALL :DWORD
SampConvertNt4SdToNt5Sd PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SampDsChangePasswordUser PROTO STDCALL :DWORD,:DWORD,:DWORD
SampFlagsToAccountControl PROTO STDCALL :DWORD,:DWORD
SampGetDefaultSecurityDescriptorForClass PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SampGetSerialNumberDomain2 PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SampInitializeRegistry PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SampInitializeSdConversion PROTO STDCALL
SampInvalidateDomainCache PROTO STDCALL
SampInvalidateRidRange PROTO STDCALL :DWORD
SampNetLogonNotificationRequired PROTO STDCALL :DWORD,:DWORD
SampNotifyReplicatedInChange PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SampProcessSingleLoopbackTask PROTO STDCALL :DWORD
SampReleaseSamLockExclusive PROTO STDCALL
SampReleaseWriteLock PROTO STDCALL :DWORD
SampRtlConvertUlongToUnicodeString PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SampSetSerialNumberDomain2 PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SampUsingDsData PROTO STDCALL
SampWriteGroupType PROTO STDCALL :DWORD,:DWORD,:DWORD
SamrAddMemberToAlias PROTO STDCALL :DWORD,:DWORD
SamrAddMemberToGroup PROTO STDCALL :DWORD,:DWORD,:DWORD
SamrAddMultipleMembersToAlias PROTO STDCALL :DWORD,:DWORD
SamrChangePasswordUser PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamrCloseHandle PROTO STDCALL :DWORD
SamrCreateAliasInDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamrCreateGroupInDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamrCreateUser2InDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamrCreateUserInDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamrDeleteAlias PROTO STDCALL :DWORD
SamrDeleteGroup PROTO STDCALL :DWORD
SamrDeleteUser PROTO STDCALL :DWORD
SamrEnumerateAliasesInDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamrEnumerateDomainsInSamServer PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamrEnumerateGroupsInDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamrEnumerateUsersInDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamrGetAliasMembership PROTO STDCALL :DWORD,:DWORD,:DWORD
SamrGetGroupsForUser PROTO STDCALL :DWORD,:DWORD
SamrGetMembersInAlias PROTO STDCALL :DWORD,:DWORD
SamrGetMembersInGroup PROTO STDCALL :DWORD,:DWORD
SamrGetUserDomainPasswordInformation PROTO STDCALL :DWORD,:DWORD
SamrLookupDomainInSamServer PROTO STDCALL :DWORD,:DWORD,:DWORD
SamrLookupIdsInDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamrLookupNamesInDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamrOpenAlias PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamrOpenDomain PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamrOpenGroup PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamrOpenUser PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD
SamrQueryDisplayInformation PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
SamrQueryInformationAlias PROTO STDCALL :DWORD,:DWORD,:DWORD
SamrQueryInformationDomain PROTO STDCALL :DWORD,:DWORD,:DWORD
SamrQueryInformationGroup PROTO STDCALL :DWORD,:DWORD,:DWORD
SamrQueryInformationUser PROTO STDCALL :DWORD,:DWORD,:DWORD
SamrQuerySecurityObject PROTO STDCALL :DWORD,:DWORD,:DWORD
SamrRemoveMemberFromAlias PROTO STDCALL :DWORD,:DWORD
SamrRemoveMemberFromForeignDomain PROTO STDCALL :DWORD,:DWORD
SamrRemoveMemberFromGroup PROTO STDCALL :DWORD,:DWORD
SamrRemoveMultipleMembersFromAlias PROTO STDCALL :DWORD,:DWORD
SamrRidToSid PROTO STDCALL :DWORD,:DWORD,:DWORD
SamrSetInformationAlias PROTO STDCALL :DWORD,:DWORD,:DWORD
SamrSetInformationDomain PROTO STDCALL :DWORD,:DWORD,:DWORD
SamrSetInformationGroup PROTO STDCALL :DWORD,:DWORD,:DWORD
SamrSetInformationUser PROTO STDCALL :DWORD,:DWORD,:DWORD
SamrSetMemberAttributesOfGroup PROTO STDCALL :DWORD,:DWORD,:DWORD
SamrSetSecurityObject PROTO STDCALL :DWORD,:DWORD,:DWORD
SamrShutdownSamServer PROTO STDCALL :DWORD
SamrTestPrivateFunctionsDomain PROTO STDCALL :DWORD
SamrTestPrivateFunctionsUser PROTO STDCALL :DWORD
SamrUnicodeChangePasswordUser2 PROTO STDCALL :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD

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