Leaked source code of windows server 2003
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.
 
 
 
 
 
 

108 lines
2.3 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
TLSDBReturnLicenseToAnyKeyPack(
PTLSDbWorkSpace pDbWkSpace,
IN TCHAR *szProductId,
IN WORD wMajorVersion,
IN WORD wMinorVersion,
IN DWORD dwKeyPackIdSkip,
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