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.

110 lines
3.4 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. LICENSE_STATUS
  59. PackExtendedErrorInfo(
  60. UINT32 uiExtendedErrorInfo,
  61. Binary_Blob *pbbErrorInfo);
  62. //
  63. // Functions for unpacking different Hydra Client Messages from
  64. // simple binary blobs to corresponding structure
  65. //
  66. LICENSE_STATUS
  67. UnPackHydraClientErrorMessage(
  68. PBYTE pbMessage,
  69. DWORD cbMessage,
  70. PLicense_Error_Message pCanonical,
  71. BOOL* pfExtendedError);
  72. LICENSE_STATUS
  73. UnPackHydraClientLicenseInfo(
  74. PBYTE pbMessage,
  75. DWORD cbMessage,
  76. PHydra_Client_License_Info pCanonical,
  77. BOOL* pfExtendedError);
  78. LICENSE_STATUS
  79. UnPackHydraClientNewLicenseRequest(
  80. PBYTE pbMessage,
  81. DWORD cbMessage,
  82. PHydra_Client_New_License_Request pCanonical,
  83. BOOL* pfExtendedError);
  84. LICENSE_STATUS
  85. UnPackHydraClientPlatformChallengeResponse(
  86. PBYTE pbMessage,
  87. DWORD cbMessage,
  88. PHydra_Client_Platform_Challenge_Response pCanonical,
  89. BOOL* pfExtendedError);
  90. #endif //_HSPACK_H