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.

131 lines
4.8 KiB

  1. //***************************************************************************
  2. //* Copyright (c) Microsoft Corporation 1995. All rights reserved. *
  3. //***************************************************************************
  4. //* *
  5. //* RES.H - Resource strings shared by CABPack and WExtract *
  6. //* *
  7. //***************************************************************************
  8. //***************************************************************************
  9. //* GLOBAL CONSTANTS *
  10. //***************************************************************************
  11. #define achResTitle "TITLE"
  12. #define achResLicense "LICENSE"
  13. #define achResShowWindow "SHOWWINDOW"
  14. #define achResFinishMsg "FINISHMSG"
  15. #define achResRunProgram "RUNPROGRAM"
  16. #define achResPostRunCmd "POSTRUNPROGRAM"
  17. #define achResCabinet "CABINET"
  18. #define achResUPrompt "UPROMPT"
  19. #define achResNone "<None>"
  20. #define achResNumFiles "NUMFILES"
  21. #define achResSize "FILESIZES"
  22. #define achResReboot "REBOOT"
  23. #define achResExtractOpt "EXTRACTOPT"
  24. #define achResPackInstSpace "PACKINSTSPACE"
  25. #define achResOneInstCheck "INSTANCECHECK"
  26. #define achResAdminQCmd "ADMQCMD"
  27. #define achResUserQCmd "USRQCMD"
  28. #define achResVerCheck "VERCHECK"
  29. #define bResShowDefault 0
  30. #define bResShowHidden 1
  31. #define bResShowMin 2
  32. #define bResShowMax 3
  33. // Bits flags for extract options
  34. //
  35. #define EXTRACTOPT_UI_NO 0x00000001
  36. #define EXTRACTOPT_LFN_YES 0x00000002
  37. #define EXTRACTOPT_ADVDLL 0x00000004
  38. #define EXTRACTOPT_COMPRESSED 0x00000008
  39. #define EXTRACTOPT_UPDHLPDLLS 0x00000010
  40. #define EXTRACTOPT_PLATFORM_DIR 0x00000020
  41. #define EXTRACTOPT_INSTCHKPROMPT 0x00000040
  42. #define EXTRACTOPT_INSTCHKBLOCK 0x00000080
  43. #define EXTRACTOPT_CHKADMRIGHT 0x00000100
  44. #define EXTRACTOPT_PASSINSTRET 0x00000200
  45. #define EXTRACTOPT_CMDSDEPENDED 0x00000400
  46. #define EXTRACTOPT_PASSINSTRETALWAYS 0x00000800
  47. //
  48. // when the Wizard is used to create CAB only, the CDF.uExtractOpt
  49. // is used to store the CAB file options. Pick the upper word and try
  50. // not miss used by Extract options
  51. //
  52. #define CAB_FIXEDSIZE 0x00010000
  53. #define CAB_RESVSP2K 0x00020000
  54. #define CAB_RESVSP4K 0x00040000
  55. #define CAB_RESVSP6K 0x00080000
  56. #define CLUSTER_BASESIZE 512
  57. #define MAX_NUMCLUSTERS 8
  58. // Install EXE return code
  59. //
  60. #define RC_WEXTRACT_AWARE 0xAA000000 // means cabpack aware func return code
  61. #define REBOOT_YES 0x00000001 // this bit off means no reboot
  62. #define REBOOT_ALWAYS 0x00000002 // if REBOOT_YES is on and this bit on means always reboot
  63. // this bit is off means reboot if need
  64. #define REBOOT_SILENT 0x00000004 // if REBOOT_YES is on and this bit on means not prompt user before reboot
  65. #define KEY_ADVINF "AdvancedINF"
  66. #define SEC_VERSION "Version"
  67. // define dwFlags between wextract and advpack.dll
  68. // The lower word is reserved for passing Quiet mode info
  69. // defined in advpub.h
  70. //
  71. #define ADVFLAGS_NGCONV 0x00010000 // don't run GroupConv
  72. #define ADVFLAGS_COMPRESSED 0x00020000 // the file to be installed is compressed
  73. #define ADVFLAGS_UPDHLPDLLS 0x00040000 // update advpack, w95inf32 ...DLLs
  74. #define ADVFLAGS_DELAYREBOOT 0x00080000 // if any reboot condition there from pre, delay action
  75. #define ADVFLAGS_DELAYPOSTCMD 0x00100000 // if any reboot condition there from pre, delay run post setup commands
  76. typedef struct _ADVPACKARGS {
  77. HWND hWnd;
  78. LPSTR lpszTitle;
  79. LPSTR lpszInfFilename;
  80. LPSTR lpszSourceDir;
  81. LPSTR lpszInstallSection;
  82. WORD wOSVer;
  83. DWORD dwFlags;
  84. DWORD dwPackInstSize;
  85. } ADVPACKARGS, *PADVPACKARGS;
  86. typedef struct _VER {
  87. DWORD dwMV;
  88. DWORD dwLV;
  89. DWORD dwBd;
  90. } VER;
  91. typedef struct _VERRANGE {
  92. VER frVer;
  93. VER toVer;
  94. } VERRANGE, *PVERRANGE;
  95. typedef struct _VERCHECK {
  96. VERRANGE vr[2];
  97. DWORD dwFlag;
  98. DWORD dwstrOffs;
  99. DWORD dwNameOffs;
  100. } VERCHECK, *PVERCHECK;
  101. typedef struct _TARGETVERINFO {
  102. DWORD dwSize;
  103. VERCHECK ntVerCheck;
  104. VERCHECK win9xVerCheck;
  105. DWORD dwNumFiles;
  106. DWORD dwFileOffs;
  107. char szBuf[1];
  108. } TARGETVERINFO, *PTARGETVERINFO;
  109. // define the flag field
  110. //
  111. #define VERCHK_OK 0x00000000
  112. #define VERCHK_YESNO 0x00000001
  113. #define VERCHK_OKCANCEL 0x00000002