3138{
3148 DWORD dwPageCount = 10, dwNetworkPageCount = 0;
3149
3150 LogItem(
L"BEGIN_SECTION",
L"InstallWizard");
3151
3152
3156 if (pSetupData ==
NULL)
3157 {
3160 L"Setup failed to allocate global data!",
3163 goto done;
3164 }
3166
3168 if (hNetShell !=
NULL)
3169 {
3170 DPRINT(
"Netshell.dll loaded!\n");
3171
3173 "NetSetupRequestWizardPages");
3175 {
3176 pfn(&dwNetworkPageCount,
NULL,
NULL);
3177 dwPageCount += dwNetworkPageCount;
3178 }
3179 }
3180
3181 DPRINT(
"PageCount: %lu\n", dwPageCount);
3182
3187 {
3190 L"Setup failed to allocate page array!",
3193 goto done;
3194 }
3195
3196
3198
3199
3203 psp.lParam = (
LPARAM)pSetupData;
3207
3208
3209 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3215
3216
3217 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3223
3224
3225 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3231
3232
3233 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3239
3240
3241 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3247
3248
3249 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3255
3256
3257 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3263
3266
3267 if (pfn)
3268 {
3269 pfn(&dwNetworkPageCount, &phpage[nPages], pSetupData);
3270 nPages += dwNetworkPageCount;
3271 }
3272
3273
3274 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3280
3281
3286
3287 ASSERT(nPages == dwPageCount);
3288
3289
3291 psh.dwFlags = PSH_WIZARD97 | PSH_WATERMARK | PSH_HEADER |
PSH_MODELESS;
3293 psh.hwndParent =
NULL;
3294 psh.nPages = nPages;
3295 psh.nStartPage = 0;
3296 psh.phpage = phpage;
3299
3300
3303
3304
3307
3309 {
3311 {
3314 }
3315 }
3316
3319
3322
3323done:
3326
3327 if (hNetShell !=
NULL)
3329
3330 if (pSetupData !=
NULL)
3332
3333 LogItem(
L"END_SECTION",
L"InstallWizard");
3334}
#define IDS_PROCESSSUBTITLE
static HINSTANCE hDllInstance
#define GetProcAddress(x, y)
#define IDS_THEMESELECTIONTITLE
#define IDS_LOCALESUBTITLE
#define IDS_OWNERSUBTITLE
#define IDS_COMPUTERSUBTITLE
#define IDS_DATETIMESUBTITLE
#define IDS_THEMESELECTIONSUBTITLE
#define IDS_COMPUTERTITLE
#define IDS_PRODUCTSUBTITLE
#define IDS_DATETIMETITLE
struct _PSP * HPROPSHEETPAGE
#define CreatePropertySheetPage
PRODUCT_OPTION ProductOption
UINT uPostNetworkWizardPage
UINT uFirstNetworkWizardPage
static INT_PTR CALLBACK WelcomeDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static HFONT CreateTitleFont(VOID)
static INT_PTR CALLBACK FinishDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static INT_PTR CALLBACK ComputerPageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static INT_PTR CALLBACK LocalePageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static INT_PTR CALLBACK OwnerPageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static INT_PTR CALLBACK DateTimePageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static HFONT CreateBoldFont(VOID)
VOID ProcessSetupInf(IN OUT PSETUPDATA pSetupData)
DWORD(WINAPI * PFNREQUESTWIZARDPAGES)(PDWORD, HPROPSHEETPAGE *, PSETUPDATA)
static INT_PTR CALLBACK ThemePageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static INT_PTR CALLBACK AckPageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static INT_PTR CALLBACK ProcessPageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static INT_PTR CALLBACK ProductPageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
#define LogItem(lpTag, lpMessageText...)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)