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.

106 lines
2.3 KiB

  1. #include "commctrl.h"
  2. #include "intrawiz.rcv"
  3. // menu commands
  4. // Options menu
  5. #define IDM_WIZARD 4100
  6. #define IDM_EXIT 4101
  7. #define IDM_LAST 4102
  8. // Help menu
  9. #define IDM_ABOUT 4200
  10. // icons
  11. #define EXE_ICON 300
  12. // ids
  13. #define ID_EDITCHILD 41000
  14. // constants
  15. #define NUM_PAGES 11
  16. #define MAX_BUF 5000
  17. #define MAX_LINE 512
  18. #define MAX_URL 512
  19. #define PPAGE_KEY 0
  20. #define PPAGE_LANGUAGE 1
  21. #define PPAGE_MEDIA 2
  22. #define PPAGE_STARTSEARCH 3
  23. #define PPAGE_FAVORITES 4
  24. #define PPAGE_CUSTOMISK 5
  25. #define PPAGE_ISKBACK 6
  26. #define PPAGE_TITLE 7
  27. #define PPAGE_CUSTICON 8
  28. #define PPAGE_FINISH 10
  29. #define PPAGE_HTML 9
  30. // typedefs
  31. typedef struct tagREVIEWINFO
  32. {
  33. HINSTANCE hInst; // current instance
  34. int iCustIcon;
  35. int iFavorites;
  36. int iReliability;
  37. int iGoals;
  38. int iAdaptation;
  39. char pszName[MAX_PATH];
  40. char pszTitle[MAX_PATH];
  41. char pszBitmap[MAX_PATH];
  42. char pszHomePage[MAX_URL];
  43. char pszSearchPage[MAX_URL];
  44. char pszDepartment[MAX_PATH];
  45. char pszBitmapPath[MAX_PATH];
  46. char pszBitmapName[MAX_PATH];
  47. char pszBitmap2Path[MAX_PATH];
  48. char pszBitmap2Name[MAX_PATH];
  49. } REVIEWINFO;
  50. // Function prototypes
  51. // procs
  52. long APIENTRY MainWndProc(HWND, UINT, UINT, LONG);
  53. BOOL APIENTRY About(HWND, UINT, UINT, LONG);
  54. // Pages for Wizard
  55. BOOL APIENTRY CustIcon(HWND, UINT, UINT, LONG);
  56. BOOL APIENTRY Favorites(HWND, UINT, UINT, LONG);
  57. BOOL APIENTRY Reliability(HWND, UINT, UINT, LONG);
  58. BOOL APIENTRY Goals(HWND, UINT, UINT, LONG);
  59. BOOL APIENTRY Adaptation(HWND, UINT, UINT, LONG);
  60. //functions
  61. BOOL InitApplication(HANDLE);
  62. BOOL InitInstance(HANDLE, int);
  63. int CreateWizard(HWND, HINSTANCE);
  64. void FillInPropertyPage(LPPROPSHEETHEADER, int , int, LPSTR, DLGPROC);
  65. void GenerateReview(HWND);
  66. void StatusDialog(UINT);
  67. // definitions for StatusDialog( )
  68. #define SD_STEP1 1
  69. #define SD_STEP2 2
  70. #define SD_STEP3 3
  71. #define SD_STEP4 4
  72. #define SD_STEP5 5
  73. #define SD_DESTROY 6
  74. typedef struct tagISKINFO
  75. {
  76. char pszISKBackBitmap[MAX_PATH];
  77. char pszISKTitleBar[MAX_PATH];
  78. char pszISKBtnBitmap[MAX_PATH];
  79. DWORD dwNormalColor;
  80. DWORD dwHighlightColor;
  81. DWORD dwNIndex;
  82. DWORD dwHIndex;
  83. BOOL fCoolButtons;
  84. } ISKINFO;
  85. BOOL APIENTRY ISKBackBitmap(HWND, UINT, UINT, LONG);
  86. typedef void (PASCAL * OPKWIZCALLBACK) (LPARAM, WPARAM);