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.

82 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. ntcabapi.h
  5. Abstract:
  6. This is the public header file for
  7. the nt cab file api.
  8. Author:
  9. Wesley Witt (wesw) 29-Sept-1998
  10. Revision History:
  11. --*/
  12. typedef struct _NTCAB_ENUM_DATA {
  13. DWORD FileAttributes;
  14. DWORD FileSize;
  15. DWORD CompressedFileSize;
  16. FILETIME CreationTime;
  17. FILETIME LastAccessTime;
  18. FILETIME LastWriteTime;
  19. PCWSTR FileName;
  20. } NTCAB_ENUM_DATA, *PNTCAB_ENUM_DATA;
  21. typedef BOOL (CALLBACK *PNTCABFILEENUM)(const PNTCAB_ENUM_DATA EnumData,ULONG_PTR Context);
  22. PVOID
  23. NtCabInitialize(
  24. void
  25. );
  26. BOOL
  27. NtCabClose(
  28. IN PVOID hCab
  29. );
  30. BOOL
  31. NtCabCreateNewCabFile(
  32. IN PVOID hCab,
  33. IN PCWSTR CabFileName
  34. );
  35. BOOL
  36. NtCabCompressOneFile(
  37. IN PVOID hCab,
  38. IN PCWSTR FileName
  39. );
  40. BOOL
  41. NtCabReplaceOneFile(
  42. IN PVOID hCab,
  43. IN PCWSTR FileName
  44. );
  45. BOOL
  46. NtCabExtractOneFile(
  47. IN PVOID hCab,
  48. IN PCWSTR FileName,
  49. IN PCWSTR OutputFileName
  50. );
  51. BOOL
  52. NtCabOpenCabFile(
  53. IN PVOID hCab,
  54. IN PCWSTR CabFileName
  55. );
  56. BOOL
  57. NtCabEnumerateFiles(
  58. IN PVOID hCab,
  59. IN PNTCABFILEENUM UserEnumFunc,
  60. IN ULONG_PTR Context
  61. );