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.

68 lines
1.8 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1997.
  5. //
  6. // File: comp.hxx
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 04-16-97 DanpoZ (Danpo Zhang) Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef COMP_HXX_
  18. #define COMP_HXX_
  19. #include <windows.h>
  20. #if 0
  21. #define DllImport __declspec( dllimport )
  22. #else
  23. #define DllImport
  24. #endif
  25. #define DllExport __declspec( dllexport )
  26. extern "C" {
  27. typedef HRESULT (WINAPI *PFNCODEC_INIT_COMPRESSION)(VOID);
  28. typedef HRESULT (WINAPI *PFNCODEC_INIT_DECOMPRESSION)(VOID);
  29. typedef VOID (WINAPI *PFNCODEC_DEINIT_COMPRESSION)(VOID);
  30. typedef VOID (WINAPI *PFNCODEC_DEINIT_DECOMPRESSION)(VOID);
  31. typedef HRESULT (WINAPI *PFNCODEC_CREATE_COMPRESSION)(PVOID *context);
  32. typedef HRESULT (WINAPI *PFNCODEC_CREATE_DECOMPRESSION)(PVOID *context);
  33. typedef HRESULT (WINAPI *PFNCODEC_COMPRESS)(
  34. PVOID context,
  35. CONST PBYTE input,
  36. LONG input_size,
  37. PBYTE output,
  38. LONG output_size,
  39. PLONG input_used,
  40. PLONG output_used,
  41. INT compression_level
  42. );
  43. typedef HRESULT (WINAPI *PFNCODEC_DECOMPRESS)(
  44. PVOID context,
  45. CONST PBYTE input,
  46. LONG input_size,
  47. PBYTE output,
  48. LONG output_size,
  49. PLONG input_used,
  50. PLONG output_used
  51. );
  52. typedef VOID (WINAPI *PFNCODEC_DESTROY_COMPRESSION)(PVOID);
  53. typedef VOID (WINAPI *PFNCODEC_DESTROY_DECOMPRESSION)(PVOID);
  54. typedef HRESULT (WINAPI *PFNCODEC_RESET_COMPRESSION)(PVOID);
  55. typedef HRESULT (WINAPI *PFNCODEC_RESET_DECOMPRESSION)(PVOID);
  56. }
  57. #endif