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.

39 lines
1.1 KiB

  1. /*
  2. * api.h
  3. */
  4. typedef HRESULT (WINAPI *PFNCODEC_INIT_COMPRESSION)(VOID);
  5. typedef HRESULT (WINAPI *PFNCODEC_INIT_DECOMPRESSION)(VOID);
  6. typedef VOID (WINAPI *PFNCODEC_DEINIT_COMPRESSION)(VOID);
  7. typedef VOID (WINAPI *PFNCODEC_DEINIT_DECOMPRESSION)(VOID);
  8. typedef HRESULT (WINAPI *PFNCODEC_CREATE_COMPRESSION)(PVOID *context, ULONG flags);
  9. typedef HRESULT (WINAPI *PFNCODEC_CREATE_DECOMPRESSION)(PVOID *context, ULONG flags);
  10. typedef HRESULT (WINAPI *PFNCODEC_COMPRESS)(
  11. PVOID context,
  12. CONST PBYTE input,
  13. LONG input_size,
  14. PBYTE output,
  15. LONG output_size,
  16. PLONG input_used,
  17. PLONG output_used,
  18. INT compression_level
  19. );
  20. typedef HRESULT (WINAPI *PFNCODEC_DECOMPRESS)(
  21. PVOID context,
  22. CONST PBYTE input,
  23. LONG input_size,
  24. PBYTE output,
  25. LONG output_size,
  26. PLONG input_used,
  27. PLONG output_used
  28. );
  29. typedef VOID (WINAPI *PFNCODEC_DESTROY_COMPRESSION)(PVOID context);
  30. typedef VOID (WINAPI *PFNCODEC_DESTROY_DECOMPRESSION)(PVOID context);
  31. typedef HRESULT (WINAPI *PFNCODEC_RESET_COMPRESSION)(PVOID context);
  32. typedef HRESULT (WINAPI *PFNCODEC_RESET_DECOMPRESSION)(PVOID context);