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.

38 lines
1.3 KiB

  1. /*
  2. ** main.h - Constants and globals used in LZA file compression program.
  3. **
  4. ** Author: DavidDi
  5. */
  6. // Constants
  7. /////////////
  8. #define EXIT_SUCCESS 0 // main() return codes
  9. #define EXIT_FAILURE 1
  10. #define FAIL (-1)
  11. #define chHELP_SWITCH '?' // help switch character
  12. #define chRENAME_SWITCH 'R' // rename switch character
  13. #define chUPDATE_SWITCH 'D' // update-only switch character
  14. #define chLIST_SWITCH 'D' // CAB directory listing switch character
  15. #define chNO_LOGO_SWITCH 'S' // suppress copyright print switch char
  16. #define chSELECTIVE_SWITCH 'F' // CAB selective extract switch character
  17. #ifdef COMPRESS
  18. #define chALG_SWITCH 'Z' // use diamond
  19. #define MSZIP_ALG (ALG_FIRST + 128)
  20. #define QUANTUM_ALG (ALG_FIRST + 129)
  21. #define LZX_ALG (ALG_FIRST + 130)
  22. #endif
  23. #define DEFAULT_ALG ALG_FIRST // compression algorithm to use if
  24. // none is specified
  25. // Globals
  26. ///////////
  27. extern CHAR ARG_PTR *pszInFileName, // input file name
  28. *pszOutFileName, // output file name
  29. *pszTargetName; // target path name