windows-nt/Source/XPSP1/NT/termsrv/license/tlserver/server/db.h
2020-09-26 16:20:57 +08:00

98 lines
1.9 KiB
C

//+--------------------------------------------------------------------------
//
// Copyright (c) 1997-1999 Microsoft Corporation
//
// File: db.h
//
// Contents:
//
// History:
//
//---------------------------------------------------------------------------
#ifndef __DB_H__
#define __DB_H__
#ifdef __cplusplus
extern "C" {
#endif
DWORD
TLSDBValidateLicense(
PTLSDbWorkSpace pDbWkSpace,
IN PHWID phWid,
IN PLICENSEREQUEST pLicensedProduct,
IN DWORD dwKeyPackId,
IN DWORD dwLicenseId,
OUT PTLSLICENSEPACK lpKeyPack,
OUT LPLICENSEDCLIENT lpLicense
);
DWORD
TLSDBDeleteLicense(
PTLSDbWorkSpace pDbWkSpace,
IN DWORD dwKeyPackId,
DWORD dwLicenseId
);
DWORD
TLSDBRevokeLicense(
PTLSDbWorkSpace pDbWkSpace,
IN DWORD dwKeyPacKId,
IN DWORD dwLicenseId
);
DWORD
TLSDBReturnLicense(
PTLSDbWorkSpace pDbWkSpace,
IN DWORD dwKeyPackId,
IN DWORD dwLicenseId,
IN DWORD dwNewLicenseStatus
);
DWORD
TLSDBReturnLicenseToKeyPack(
PTLSDbWorkSpace pDbWkSpace,
IN DWORD dwKeyPackId,
IN int dwNumLicense
);
DWORD
TLSDBRevokeKeyPack(
IN PTLSDbWorkSpace pDbWkSpace,
IN DWORD dwKeyPackId
);
DWORD
TLSDBReturnKeyPack(
IN PTLSDbWorkSpace pDbWkSpace,
IN DWORD dwKeyPackId
);
DWORD
TLSDBDeleteKeyPack(
PTLSDbWorkSpace pDbWkSpace,
IN DWORD dwKeyPackId
);
DWORD
VerifyTLSDBAllocateRequest(
IN PTLSDBAllocateRequest pRequest
);
DWORD
AllocateLicensesFromDB(
IN PTLSDbWorkSpace pDbWkSpace,
IN PTLSDBAllocateRequest pRequest,
IN BOOL fCheckAgreementType,
IN OUT PTLSDBLicenseAllocation pAllocated
);
#ifdef __cplusplus
}
#endif
#endif