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

  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. TLSDBReturnLicenseToAnyKeyPack(
  54. PTLSDbWorkSpace pDbWkSpace,
  55. IN TCHAR *szProductId,
  56. IN WORD wMajorVersion,
  57. IN WORD wMinorVersion,
  58. IN DWORD dwKeyPackIdSkip,
  59. IN int dwNumLicense
  60. );
  61. DWORD
  62. TLSDBRevokeKeyPack(
  63. IN PTLSDbWorkSpace pDbWkSpace,
  64. IN DWORD dwKeyPackId
  65. );
  66. DWORD
  67. TLSDBReturnKeyPack(
  68. IN PTLSDbWorkSpace pDbWkSpace,
  69. IN DWORD dwKeyPackId
  70. );
  71. DWORD
  72. TLSDBDeleteKeyPack(
  73. PTLSDbWorkSpace pDbWkSpace,
  74. IN DWORD dwKeyPackId
  75. );
  76. DWORD
  77. VerifyTLSDBAllocateRequest(
  78. IN PTLSDBAllocateRequest pRequest
  79. );
  80. DWORD
  81. AllocateLicensesFromDB(
  82. IN PTLSDbWorkSpace pDbWkSpace,
  83. IN PTLSDBAllocateRequest pRequest,
  84. IN BOOL fCheckAgreementType,
  85. IN OUT PTLSDBLicenseAllocation pAllocated
  86. );
  87. #ifdef __cplusplus
  88. }
  89. #endif
  90. #endif