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.

81 lines
2.3 KiB

  1. #include "resource.h"
  2. #define MAX_OPTIONS 8
  3. #define FILE_NOT_FOUND L"*&%"
  4. #define BLANK_LINE L"\n"
  5. #define ILLEGAL_CHR L"/\"<>|"
  6. #define CMDOPTION_RENAME L"R"
  7. #define CMDOPTION_UPDATE L"D"
  8. #define CMDOPTION_SUPPRESS L"S"
  9. #define CMDOPTION_ZX L"ZX"
  10. #define CMDOPTION_Z L"Z"
  11. #define CMDOPTION_ZQ L"ZQ"
  12. #define CMDOPTION_DEFAULT L""
  13. #define CMDOPTION_USAGE L"?"
  14. #define MSZIP_ALG (ALG_FIRST + 128)
  15. #define QUANTUM_ALG (ALG_FIRST + 129)
  16. #define LZX_ALG (ALG_FIRST + 130)
  17. #define DEFAULT_ALG ALG_FIRST
  18. #define OI_RENAME 0
  19. #define OI_UPDATE 1
  20. #define OI_SUPPRESS 2
  21. #define OI_ZX 3
  22. #define OI_Z 4
  23. #define OI_DEFAULT 5
  24. #define OI_USAGE 6
  25. #define SAFE_FREE(p) \
  26. if( p!=NULL ) \
  27. { \
  28. free(p); \
  29. p = NULL; \
  30. }
  31. #define EMPTY_SPACE L" "
  32. DWORD DisplayHelpUsage();
  33. DWORD ProcessOptions( IN DWORD argc,
  34. IN LPCWSTR argv[],
  35. OUT PBOOL pbRename,
  36. OUT PBOOL pbNoLogo,
  37. OUT PBOOL pbUpdate,
  38. OUT PBOOL pbZ,
  39. OUT PBOOL pbZx,
  40. OUT PTARRAY pArrVal,
  41. OUT PBOOL pbUsage
  42. );
  43. DWORD CheckArguments( IN BOOL bRename,
  44. IN TARRAY FileArr,
  45. OUT PTARRAY OutFileArr,
  46. OUT PBOOL bTarget
  47. );
  48. DWORD DoCompress( IN TARRAY FileArr,
  49. IN BOOL bRename,
  50. IN BOOL bUpdate,
  51. IN BOOL bSuppress,
  52. IN BOOL bZx,
  53. IN BOOL bZ,
  54. IN BOOL bTarget
  55. );
  56. extern BOOL
  57. FileTimeIsNewer( LPWSTR pszFile1,
  58. LPWSTR pszFile2 );
  59. extern WCHAR
  60. MakeCompressedNameW(
  61. LPWSTR pszFileName);
  62. extern BOOL ProcessNotification(LPWSTR pszSource,
  63. LPWSTR pszDest,
  64. WORD wNotification
  65. );