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.

113 lines
2.0 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Copyright (c) 1997-1999 Microsoft Corporation
  4. //
  5. // File: misc.h
  6. //
  7. // Contents:
  8. //
  9. // History:
  10. //
  11. //---------------------------------------------------------------------------
  12. #ifndef __MISC_H__
  13. #define __MISC_H__
  14. #include "server.h"
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. PMHANDLE
  19. GenerateClientId();
  20. void
  21. TlsLicenseRequestToPMLicenseRequest(
  22. DWORD dwLicenseType,
  23. PTLSLICENSEREQUEST pTlsRequest,
  24. LPTSTR pszMachineName,
  25. LPTSTR pszUserName,
  26. DWORD dwSupportFlags,
  27. PPMLICENSEREQUEST pPmRequest
  28. );
  29. BOOL
  30. TLSDBGetMaxKeyPackId(
  31. PTLSDbWorkSpace pDbWkSpace,
  32. DWORD* pdwKeyPackId
  33. );
  34. BOOL
  35. TLSDBGetMaxLicenseId(
  36. PTLSDbWorkSpace pDbWkSpace,
  37. DWORD* pdwLicenseId
  38. );
  39. DWORD
  40. TLSDBGetNextKeyPackId();
  41. DWORD
  42. TLSDBGetNextLicenseId();
  43. DWORD
  44. TLSFormDBRequest(
  45. PBYTE pbEncryptedHwid,
  46. DWORD cbEncryptedHwid,
  47. DWORD dwProductVersion,
  48. LPTSTR pszCompanyName,
  49. LPTSTR pszProductId,
  50. DWORD dwLanguageId,
  51. DWORD dwPlatformId,
  52. LPTSTR szClientMachine,
  53. LPTSTR szUserName,
  54. LPTLSDBLICENSEREQUEST pDbRequest
  55. );
  56. DWORD
  57. TLSConvertRpcLicenseRequestToDbRequest(
  58. PBYTE pbEncryptedHwid,
  59. DWORD cbEncryptedHwid,
  60. TLSLICENSEREQUEST* pRequest,
  61. LPTSTR szClientMachine,
  62. LPTSTR szUserName,
  63. LPTLSDBLICENSEREQUEST pDbRequest
  64. );
  65. BOOL
  66. ConvertLsKeyPackToKeyPack(
  67. IN LPLSKeyPack lpLsKeyPack,
  68. IN OUT PTLSLICENSEPACK lpLicPack,
  69. IN OUT PLICPACKDESC lpLicPackDesc
  70. );
  71. void
  72. ConvertKeyPackToLsKeyPack(
  73. IN PTLSLICENSEPACK lpLicPack,
  74. IN PLICPACKDESC lpLicPackDesc,
  75. IN OUT LPLSKeyPack lpLsKeyPack
  76. );
  77. void
  78. ConvertLSLicenseToLicense(
  79. LPLSLicense lplsLicense,
  80. LPLICENSEDCLIENT lpLicense
  81. );
  82. void
  83. ConvertLicenseToLSLicense(
  84. LPLICENSEDCLIENT lpLicense,
  85. LPLSLicense lplsLicense
  86. );
  87. void
  88. ConvertLicenseToLSLicenseEx(
  89. LPLICENSEDCLIENT lpLicense,
  90. LPLSLicenseEx lplsLicense
  91. );
  92. #ifdef __cplusplus
  93. }
  94. #endif
  95. #endif