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.

100 lines
2.9 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1997.
  5. //
  6. // File: HSpack.h
  7. //
  8. // Contents: Functions that are used to pack and unpack different messages
  9. // going out and coming in from the server
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 12-20-97 v-sbhatt Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef _HSPACK_H_
  18. #define _HSPACK_H_
  19. //
  20. // Functions for Packing different Server Messages from the corresponding
  21. // structures to simple binary blob
  22. //
  23. LICENSE_STATUS
  24. PackHydraServerLicenseRequest(
  25. DWORD dwProtocolVersion,
  26. PHydra_Server_License_Request pCanonical,
  27. PBYTE * ppbBuffer,
  28. DWORD * pcbBuffer );
  29. LICENSE_STATUS
  30. PackHydraServerPlatformChallenge(
  31. DWORD dwProtocolVersion,
  32. PHydra_Server_Platform_Challenge pCanonical,
  33. PBYTE * ppbBuffer,
  34. DWORD * pcbBuffer );
  35. LICENSE_STATUS
  36. PackHydraServerNewLicense(
  37. DWORD dwProtocolVersion,
  38. PHydra_Server_New_License pCanonical,
  39. PBYTE * ppbBuffer,
  40. DWORD * pcbBuffer );
  41. LICENSE_STATUS
  42. PackHydraServerUpgradeLicense(
  43. DWORD dwProtocolVersion,
  44. PHydra_Server_Upgrade_License pCanonical,
  45. PBYTE * ppbBuffer,
  46. DWORD * pcbBuffer );
  47. LICENSE_STATUS
  48. PackHydraServerErrorMessage(
  49. DWORD dwProtocolVersion,
  50. PLicense_Error_Message pCanonical,
  51. PBYTE * ppbBuffer,
  52. DWORD * pcbBuffer );
  53. LICENSE_STATUS
  54. PackNewLicenseInfo(
  55. PNew_License_Info pCanonical,
  56. PBYTE * ppNetwork,
  57. DWORD * pcbNetwork );
  58. //
  59. // Functions for unpacking different Hydra Client Messages from
  60. // simple binary blobs to corresponding structure
  61. //
  62. LICENSE_STATUS
  63. UnPackHydraClientErrorMessage(
  64. PBYTE pbMessage,
  65. DWORD cbMessage,
  66. PLicense_Error_Message pCanonical );
  67. LICENSE_STATUS
  68. UnPackHydraClientLicenseInfo(
  69. PBYTE pbMessage,
  70. DWORD cbMessage,
  71. PHydra_Client_License_Info pCanonical );
  72. LICENSE_STATUS
  73. UnPackHydraClientNewLicenseRequest(
  74. PBYTE pbMessage,
  75. DWORD cbMessage,
  76. PHydra_Client_New_License_Request pCanonical );
  77. LICENSE_STATUS
  78. UnPackHydraClientPlatformChallengeResponse(
  79. PBYTE pbMessage,
  80. DWORD cbMessage,
  81. PHydra_Client_Platform_Challenge_Response pCanonical );
  82. #endif //_HSPACK_H