mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
1.9 KiB
97 lines
1.9 KiB
//+--------------------------------------------------------------------------
|
|
//
|
|
// 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
|