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.

60 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1995-1998 Microsoft Corporation
  3. Module Name:
  4. ntcab.h
  5. Abstract:
  6. Private header file for ntcab compression support.
  7. Author:
  8. Andrew Ritz (andrewr) 5-Oct-1998
  9. Revision History:
  10. Andrew Ritz (andrewr) 5-Oct-1998 Created it.
  11. --*/
  12. typedef struct _NTCABCONTEXT {
  13. PVOID hCab;
  14. PVOID UserContext;
  15. PVOID MsgHandler;
  16. PCWSTR CabFile;
  17. PWSTR FilePart;
  18. PWSTR PathPart;
  19. BOOL IsMsgHandlerNativeCharWidth;
  20. DWORD LastError;
  21. PWSTR CurrentTargetFile;
  22. //WCHAR UserPath[MAX_PATH];
  23. //BOOL SwitchedCabinets
  24. } NTCABCONTEXT, *PNTCABCONTEXT;
  25. BOOL
  26. NtCabIsCabinet(
  27. PCWSTR CabinetName
  28. );
  29. DWORD
  30. NtCabProcessCabinet(
  31. //IN PVOID InCabHandle, OPTIONAL
  32. IN PCTSTR CabinetFile,
  33. IN DWORD Flags,
  34. IN PVOID MsgHandler,
  35. IN PVOID Context,
  36. IN BOOL IsMsgHandlerNativeCharWidth
  37. );
  38. typedef UINT (CALLBACK* PSP_NTCAB_CALLBACK)(
  39. IN PNTCAB_ENUM_DATA EnumData,
  40. IN PNTCABCONTEXT Context,
  41. OUT PDWORD Operation
  42. );