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.

64 lines
2.0 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1998.
  5. //
  6. // File: licprot.h
  7. //
  8. // Contents: Licensing Protocol APIs
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 02-15-00 RobLeit Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef __LICPROT_H__
  18. #define __LICPROT_H__
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. LICENSE_STATUS CreateProtocolContext(LPLICENSE_CAPABILITIES pLicenseCap,HANDLE *phContext);
  23. LICENSE_STATUS DeleteProtocolContext(HANDLE hContext);
  24. LICENSE_STATUS InitializeProtocolLib();
  25. LICENSE_STATUS ShutdownProtocolLib();
  26. LICENSE_STATUS AcceptProtocolContext(HANDLE hContext,DWORD cbInBuf,PBYTE pInBuf,DWORD * pcbOutBuf,PBYTE * ppOutBuf, PBOOL pfExtendedError);
  27. LICENSE_STATUS ConstructProtocolResponse(HANDLE hLicense,DWORD dwResponse,UINT32 uiExtendedErrorInfo, PDWORD pcbOutBuf,PBYTE * ppOutBuf, BOOL fExtendedError);
  28. LICENSE_STATUS QueryLicenseInfo(HANDLE pLicenseContext,PTS_LICENSE_INFO pTsLicenseInfo);
  29. LICENSE_STATUS RequestNewLicense(HANDLE hContext,TCHAR *tszLicenseServerName,LICENSEREQUEST *pLicenseRequest,TCHAR *tszComputerName,TCHAR *tszUserName,BOOL fAcceptTempLicense,BOOL fAcceptFewerLicenses,DWORD *pdwQuantity, DWORD *pcbLicense,PBYTE *ppbLicense);
  30. LICENSE_STATUS InitProductInfo(PProduct_Info pProductInfo,LPTSTR lptszProductSku);
  31. LICENSE_STATUS ReturnInternetLicense(HANDLE hContext,TCHAR *tszLicenseServer,LICENSEREQUEST *pLicenseRequest,ULARGE_INTEGER ulSerialNumber,DWORD dwQuantity);
  32. BOOL AllowLicensingGracePeriodConnection();
  33. DWORD StartCheckingGracePeriod();
  34. DWORD StopCheckingGracePeriod();
  35. LICENSE_STATUS DaysToExpiration(HANDLE hContext,DWORD *pdwDaysLeft,BOOL *pfTemporary);
  36. LICENSE_STATUS
  37. MarkLicenseFlags(HANDLE hContext, UCHAR ucFlags);
  38. void LicenseLogEvent(WORD wEventType,DWORD dwEventId,WORD cStrings,PWCHAR *apwszStrings);
  39. #ifdef __cplusplus
  40. };
  41. #endif
  42. #endif // __LICPROT_H__