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.

148 lines
3.2 KiB

  1. #include "commctrl.h"
  2. #include "wizard.rcv"
  3. // menu commands
  4. // icons
  5. // ids
  6. // constants
  7. #define MAX_BUF 5000
  8. #define MAX_LINE 512
  9. #define MAX_URL 2048
  10. typedef enum tagPPAGE
  11. {
  12. PPAGE_WELCOME = 0,
  13. PPAGE_KEY,
  14. PPAGE_LANGUAGE,
  15. PPAGE_MEDIA,
  16. PPAGE_CUSTOMISK,
  17. PPAGE_ISKBACK,
  18. PPAGE_TITLE,
  19. PPAGE_CUSTICON,
  20. PPAGE_ANIMATION,
  21. PPAGE_STARTSEARCH,
  22. PPAGE_HELP,
  23. PPAGE_FAVORITES,
  24. PPAGE_QUERYSIGNUP,
  25. PPAGE_HTML,
  26. PPAGE_SERVLESSHTML,
  27. PPAGE_SERVLESS,
  28. PPAGE_SCRIPT,
  29. PPAGE_QUERYAUTOCONFIG,
  30. PPAGE_QUERYPROX,
  31. PPAGE_PROXY,
  32. PPAGE_INSTALLDIR,
  33. PPAGE_CUSTUSER,
  34. PPAGE_RESTRICT,
  35. PPAGE_SECURITY,
  36. PPAGE_CUSTCMD,
  37. PPAGE_OPTIONS,
  38. PPAGE_MAIL,
  39. PPAGE_LDAP,
  40. PPAGE_NEWS,
  41. PPAGE_SIG,
  42. PPAGE_ULS,
  43. PPAGE_NETMTG,
  44. PPAGE_NETMTGADV,
  45. PPAGE_CUSTOPTIONS,
  46. PPAGE_FINISH
  47. } ;
  48. #define NUM_PAGES PPAGE_FINISH + 1
  49. // typedefs
  50. typedef struct tagREVIEWINFO
  51. {
  52. HINSTANCE hInst; // current instance
  53. int iCustIcon;
  54. int iFavorites;
  55. int iReliability;
  56. int iGoals;
  57. int iAdaptation;
  58. char pszName[MAX_PATH];
  59. char pszTitle[MAX_PATH];
  60. char pszBitmap[MAX_PATH];
  61. char pszHomePage[MAX_URL];
  62. char pszSearchPage[MAX_URL];
  63. char pszDepartment[MAX_PATH];
  64. char pszBitmapPath[MAX_PATH];
  65. char pszBitmapName[MAX_PATH];
  66. char pszBitmap2Path[MAX_PATH];
  67. char pszBitmap2Name[MAX_PATH];
  68. } REVIEWINFO;
  69. // Function prototypes
  70. // procs
  71. long APIENTRY MainWndProc(HWND, UINT, UINT, LONG);
  72. BOOL APIENTRY About(HWND, UINT, UINT, LONG);
  73. // Pages for Wizard
  74. BOOL APIENTRY CustIcon(HWND, UINT, UINT, LONG);
  75. BOOL APIENTRY Favorites(HWND, UINT, UINT, LONG);
  76. BOOL APIENTRY QueryProxy(HWND, UINT, UINT, LONG);
  77. BOOL APIENTRY QueryAutoConfig(HWND, UINT, UINT, LONG);
  78. BOOL APIENTRY ProxySettings(HWND, UINT, UINT, LONG);
  79. BOOL APIENTRY Signature(HWND, UINT, UINT, LONG);
  80. BOOL APIENTRY InstallDirectory(HWND, UINT, UINT, LONG);
  81. BOOL APIENTRY CustUserSettings(HWND, UINT, UINT, LONG);
  82. BOOL APIENTRY CustDirSettings(HWND, UINT, UINT, LONG);
  83. BOOL APIENTRY Restrictions(HWND, UINT, UINT, LONG);
  84. BOOL APIENTRY Security(HWND, UINT, UINT, LONG);
  85. BOOL APIENTRY NetMeetingRestrict(HWND, UINT, UINT, LONG);
  86. BOOL APIENTRY NetMeetingAdvanced(HWND, UINT, UINT, LONG);
  87. //functions
  88. BOOL InitApplication(HINSTANCE);
  89. BOOL InitInstance(HINSTANCE, int);
  90. int CreateWizard(HWND, HINSTANCE);
  91. void FillInPropertyPage( int , int, LPSTR, DLGPROC);
  92. void GenerateReview(HWND);
  93. void StatusDialog(UINT);
  94. // definitions for StatusDialog( )
  95. #define SD_STEP1 1
  96. #define SD_STEP2 2
  97. #define SD_STEP3 3
  98. #define SD_STEP4 4
  99. #define SD_STEP5 5
  100. #define SD_DESTROY 6
  101. typedef struct tagISKINFO
  102. {
  103. char pszISKBackBitmap[MAX_PATH];
  104. char pszISKTitleBar[MAX_PATH];
  105. char pszISKBtnBitmap[MAX_PATH];
  106. DWORD dwNormalColor;
  107. DWORD dwHighlightColor;
  108. DWORD dwNIndex;
  109. DWORD dwHIndex;
  110. BOOL fCoolButtons;
  111. } ISKINFO;
  112. BOOL APIENTRY ISKBackBitmap(HWND, UINT, UINT, LONG);
  113. #define SIGTYPE_TEXT 1
  114. #define SIGTYPE_FILE 2
  115. #define SIGFLAG_OUTGOING 0x10000
  116. #define SIGFLAG_REPLY 0x20000
  117. //#ifdef NTMAKEENV
  118. //#define DLGFONT "MS Shell Dlg"
  119. //#else
  120. #define DLGFONT "MS Sans Serif"
  121. //#endif
  122. #define IDM_WIZARD WM_USER + 3000
  123. #define IDM_LAST WM_USER + 3001
  124. #define IDM_EXIT WM_USER + 3002