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.

59 lines
1.6 KiB

  1. /*---------------------------------------------------------------------------*\
  2. | MODULE: webptprn.h
  3. |
  4. | This is the main header module for the application.
  5. |
  6. |
  7. | Copyright (C) 1996-1998 Hewlett Packard Company
  8. | Copyright (C) 1996-1998 Microsoft Corporation
  9. |
  10. | history:
  11. | 15-Dec-1996 <chriswil> created.
  12. |
  13. \*---------------------------------------------------------------------------*/
  14. #include <windows.h>
  15. #include <winspool.h>
  16. #include <winver.h>
  17. #include "globals.h"
  18. #define MAX_BUFFER 255
  19. #define MAX_RESBUF 128
  20. #define MSG_BUFSIZE 256
  21. #define IDS_MSG_ADD 1
  22. #define IDS_MSG_DEL 2
  23. #define IDS_MSG_REBOOT 3
  24. #define IDS_MSG_UNINSTALL 4
  25. #define IDS_ERR_COPY 5
  26. #define IDS_ERR_ADD 6
  27. #define IDS_ERR_ASC 7
  28. #define IDS_REG_DISPLAY 8
  29. #define IDS_ERR_OSVERHEAD 9
  30. #define IDS_ERR_OSVERMSG 10
  31. // MLAWRENC: This is actually defined in "\inet\setup\iexpress\common\res.h", but I don't want
  32. // to create an interdependency, so redifine it here.
  33. #if (!defined(RC_WEXTRACT_AWARE))
  34. #define RC_WEXTRACT_AWARE 0xAA000000 // means cabpack aware func return code
  35. #endif
  36. #if (!defined(REBOOT_YES))
  37. #define REBOOT_YES 0x00000001 // this bit off means no reboot
  38. #endif
  39. #if (!defined(REBOOT_ALWAYS))
  40. #define REBOOT_ALWAYS 0x00000002 // if REBOOT_YES is on and this bit on means always reboot
  41. // this bit is off means reboot if need
  42. #endif
  43. #define UNREFPARM(parm) (parm)
  44. // Function Macro mappings.
  45. //
  46. #define EXEC_PROCESS(lpszCmd, psi, ppi) \
  47. CreateProcess(NULL, lpszCmd, NULL, NULL, FALSE, 0, NULL, NULL, psi, ppi)