Source code of Windows XP (NT5)
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

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Copyright (c) 1997-1999 Microsoft Corporation
  4. //
  5. // File: db.h
  6. //
  7. // Contents:
  8. //
  9. // History:
  10. //
  11. //---------------------------------------------------------------------------
  12. #ifndef __DB_H__
  13. #define __DB_H__
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. DWORD
  18. TLSDBValidateLicense(
  19. PTLSDbWorkSpace pDbWkSpace,
  20. IN PHWID phWid,
  21. IN PLICENSEREQUEST pLicensedProduct,
  22. IN DWORD dwKeyPackId,
  23. IN DWORD dwLicenseId,
  24. OUT PTLSLICENSEPACK lpKeyPack,
  25. OUT LPLICENSEDCLIENT lpLicense
  26. );
  27. DWORD
  28. TLSDBDeleteLicense(
  29. PTLSDbWorkSpace pDbWkSpace,
  30. IN DWORD dwKeyPackId,
  31. DWORD dwLicenseId
  32. );
  33. DWORD
  34. TLSDBRevokeLicense(
  35. PTLSDbWorkSpace pDbWkSpace,
  36. IN DWORD dwKeyPacKId,
  37. IN DWORD dwLicenseId
  38. );
  39. DWORD
  40. TLSDBReturnLicense(
  41. PTLSDbWorkSpace pDbWkSpace,
  42. IN DWORD dwKeyPackId,
  43. IN DWORD dwLicenseId,
  44. IN DWORD dwNewLicenseStatus
  45. );
  46. DWORD
  47. TLSDBReturnLicenseToKeyPack(
  48. PTLSDbWorkSpace pDbWkSpace,
  49. IN DWORD dwKeyPackId,
  50. IN int dwNumLicense
  51. );
  52. DWORD
  53. TLSDBRevokeKeyPack(
  54. IN PTLSDbWorkSpace pDbWkSpace,
  55. IN DWORD dwKeyPackId
  56. );
  57. DWORD
  58. TLSDBReturnKeyPack(
  59. IN PTLSDbWorkSpace pDbWkSpace,
  60. IN DWORD dwKeyPackId
  61. );
  62. DWORD
  63. TLSDBDeleteKeyPack(
  64. PTLSDbWorkSpace pDbWkSpace,
  65. IN DWORD dwKeyPackId
  66. );
  67. DWORD
  68. VerifyTLSDBAllocateRequest(
  69. IN PTLSDBAllocateRequest pRequest
  70. );
  71. DWORD
  72. AllocateLicensesFromDB(
  73. IN PTLSDbWorkSpace pDbWkSpace,
  74. IN PTLSDBAllocateRequest pRequest,
  75. IN BOOL fCheckAgreementType,
  76. IN OUT PTLSDBLicenseAllocation pAllocated
  77. );
  78. #ifdef __cplusplus
  79. }
  80. #endif
  81. #endif