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.

107 lines
2.1 KiB

  1. #ifndef _WIZDEF_H_
  2. #define _WIZDEF_H_
  3. #include <advpub.h>
  4. #define SETUP_LOG
  5. // Data structures
  6. typedef enum
  7. {
  8. VER_NONE = 0,
  9. VER_1_0,
  10. VER_1_1,
  11. VER_4_0,
  12. VER_5_0_B1,
  13. VER_5_0,
  14. VER_6_0,
  15. VER_MAX,
  16. } SETUPVER;
  17. typedef enum
  18. {
  19. MODE_UNKNOWN = 0,
  20. MODE_INSTALL,
  21. MODE_UNINSTALL,
  22. MODE_ICONS,
  23. } SETUPMODE;
  24. typedef enum
  25. {
  26. TIME_MACHINE = 0,
  27. TIME_USER,
  28. } SETUPTIME;
  29. typedef enum
  30. {
  31. APP_UNKNOWN = 0,
  32. APP_OE,
  33. APP_WAB,
  34. } SETUPAPP;
  35. typedef enum
  36. {
  37. CALLER_IE = 0,
  38. CALLER_WIN9X,
  39. CALLER_WINNT,
  40. } CALLER;
  41. typedef struct tagSETUPINFO
  42. {
  43. TCHAR szSysDir[MAX_PATH];
  44. TCHAR szWinDir[MAX_PATH];
  45. TCHAR szAppName[MAX_PATH];
  46. TCHAR szCurrentDir[MAX_PATH];
  47. TCHAR szInfDir[MAX_PATH];
  48. TCHAR szINI[MAX_PATH];
  49. LPCTSTR pszVerInfo;
  50. LPCTSTR pszInfFile;
  51. OSVERSIONINFO osv;
  52. BOOL fNoIcons:1;
  53. BOOL fPrompt:1;
  54. CALLER caller;
  55. SETUPMODE smMode;
  56. SETUPTIME stTime;
  57. SETUPAPP saApp;
  58. HINSTANCE hInstAdvPack;
  59. RUNSETUPCOMMAND pfnRunSetup;
  60. LAUNCHINFSECTIONEX pfnLaunchEx;
  61. ADVINSTALLFILE pfnCopyFile;
  62. ADDDELBACKUPENTRY pfnAddDel;
  63. REGSAVERESTORE pfnRegRestore;
  64. #ifdef SETUP_LOG
  65. HANDLE hLogFile;
  66. #endif
  67. } SETUPINFO;
  68. typedef HRESULT (*PFN_ISETDEFCLIENT)(LPCTSTR,DWORD);
  69. #define OE_QUIET RSC_FLAG_QUIET
  70. #define VERLEN 20
  71. // Taken from -s \\trango\slmadd, -p setup, active\ie4setup\ie4setup.h
  72. #define REDIST_REMOVELINKS 1
  73. #define REDIST_DONT_TAKE_ASSOCIATION 2
  74. // Icons OE Setup might create or delete
  75. typedef enum
  76. {
  77. ICON_ICWBAD = 0,
  78. ICON_DESKTOP,
  79. ICON_QLAUNCH,
  80. ICON_MAPIRECIP,
  81. ICON_QLAUNCH_OLD,
  82. // Keep this one last!
  83. ICON_LAST_ICON,
  84. } OEICON;
  85. // Flags used by FGetLinkInfo
  86. #define LI_PATH 1
  87. #define LI_TARGET 2
  88. #define LI_DESC 4
  89. #endif // _WIZDEF_H_