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.

109 lines
1.9 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Copyright (c) 1997-1999 Microsoft Corporation
  4. //
  5. // File: keypack.h
  6. //
  7. // Contents:
  8. //
  9. // History:
  10. //
  11. //---------------------------------------------------------------------------
  12. #ifndef __KEYPACK_H__
  13. #define __KEYPACK_H__
  14. #include "server.h"
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. void
  19. TLSDBLockKeyPackTable();
  20. void
  21. TLSDBUnlockKeyPackTable();
  22. DWORD
  23. TLSDBKeyPackFind(
  24. IN PTLSDbWorkSpace pDbWkSpace,
  25. IN BOOL bMatchAllParm,
  26. IN DWORD dwSearchParm,
  27. IN PTLSLICENSEPACK lpKeyPack,
  28. IN OUT PTLSLICENSEPACK lpFound
  29. );
  30. DWORD
  31. TLSDBKeyPackAddEntry(
  32. IN PTLSDbWorkSpace pDbWkSpace,
  33. IN PTLSLICENSEPACK lpKeyPack
  34. );
  35. DWORD
  36. TLSDBKeyPackDeleteEntry(
  37. IN PTLSDbWorkSpace pDbWkSpace,
  38. IN BOOL bDeleteAllRecord,
  39. IN PTLSLICENSEPACK lpKeyPack
  40. );
  41. DWORD
  42. TLSDBKeyPackUpdateEntry(
  43. IN PTLSDbWorkSpace pDbWkSpace,
  44. IN BOOL bPointerOnRecord,
  45. IN DWORD dwUpdateParm,
  46. IN PTLSLICENSEPACK lpKeyPack
  47. );
  48. DWORD
  49. TLSDBKeyPackUpdateNumOfAvailableLicense(
  50. IN PTLSDbWorkSpace pDbWkSpace,
  51. IN BOOL bAdd,
  52. IN PTLSLICENSEPACK lpKeyPack
  53. );
  54. DWORD
  55. TLSDBKeyPackAdd(
  56. IN PTLSDbWorkSpace pDbWkSpace,
  57. IN OUT PTLSLICENSEPACK lpKeyPack // return internal tracking ID
  58. );
  59. DWORD
  60. TLSDBKeyPackEnumBegin(
  61. IN PTLSDbWorkSpace pDbWkSpace,
  62. IN BOOL bMatchAll,
  63. IN DWORD dwSearchParm,
  64. IN PTLSLICENSEPACK lpSearch
  65. );
  66. DWORD
  67. TLSDBKeyPackEnumNext(
  68. IN PTLSDbWorkSpace pDbWkSpace,
  69. IN OUT PTLSLICENSEPACK lpKeyPack
  70. );
  71. void
  72. TLSDBKeyPackEnumEnd(
  73. IN PTLSDbWorkSpace pDbWkSpace
  74. );
  75. DWORD
  76. TLSDBKeyPackSetValues(
  77. IN PTLSDbWorkSpace pDbWkSpace,
  78. IN BOOL bPointerOnRecord,
  79. IN DWORD dwSetParm,
  80. IN PTLSLICENSEPACK lpKeyPack
  81. );
  82. DWORD
  83. TLSDBKeyPackGetAvailableLicenses(
  84. IN PTLSDbWorkSpace pDbWkSpace,
  85. IN DWORD dwSearchParm,
  86. IN PTLSLICENSEPACK lplsKeyPack,
  87. IN OUT LPDWORD lpdwAvail
  88. );
  89. #ifdef __cplusplus
  90. }
  91. #endif
  92. #endif