127 HRSRC GplTextResource;
138 if (
NULL == GplTextResource)
153 if (
NULL == GplTextMem)
159 if (
NULL == GplTextLocked)
165 GplText[
Size] =
'\0';
229 (
WPARAM)pSetupData->hTitleFont,
293 PWCHAR End, CurrentProject;
294 INT ProjectsSize, ProjectsCount;
311 if (
NULL == Projects)
316 if (0 == ProjectsCount)
321 if (ProjectsCount < ProjectsSize - 1)
329 CurrentProject = Projects;
330 while (*CurrentProject !=
L'\0')
332 End =
wcschr(CurrentProject,
L'\n');
340 CurrentProject = End + 1;
344 CurrentProject +=
wcslen(CurrentProject);
411 {
L"Terminal Server\0",
L"ServerNT", 0, 0x200, 0 },
412 {
L"\0",
L"WinNT", 1, 0x300, 1 },
413 {
L"Terminal Server\0",
L"ServerNT", 0, 0x200, 0 }
427 {
L".Default",
L"%SystemRoot%\\Media\\ReactOS_Default.wav" },
428 {
L"AppGPFault",
L"" },
430 {
L"CriticalBatteryAlarm",
L"%SystemRoot%\\Media\\ReactOS_Battery_Critical.wav" },
431 {
L"DeviceConnect",
L"%SystemRoot%\\Media\\ReactOS_Hardware_Insert.wav" },
432 {
L"DeviceDisconnect",
L"%SystemRoot%\\Media\\ReactOS_Hardware_Remove.wav" },
433 {
L"DeviceFail",
L"%SystemRoot%\\Media\\ReactOS_Hardware_Fail.wav" },
434 {
L"LowBatteryAlarm",
L"%SystemRoot%\\Media\\ReactOS_Battery_Low.wav" },
435 {
L"MailBeep",
L"%SystemRoot%\\Media\\ReactOS_Notify.wav" },
436 {
L"Maximize",
L"%SystemRoot%\\Media\\ReactOS_Restore.wav" },
437 {
L"MenuCommand",
L"%SystemRoot%\\Media\\ReactOS_Menu_Command.wav" },
438 {
L"MenuPopup",
L"" },
439 {
L"Minimize",
L"%SystemRoot%\\Media\\ReactOS_Minimize.wav" },
441 {
L"PrintComplete",
L"%SystemRoot%\\Media\\ReactOS_Print_Complete.wav" },
442 {
L"RestoreDown",
L"" },
443 {
L"RestoreUp",
L"" },
444 {
L"SystemAsterisk",
L"%SystemRoot%\\Media\\ReactOS_Ding.wav" },
445 {
L"SystemExclamation",
L"%SystemRoot%\\Media\\ReactOS_Exclamation.wav" },
446 {
L"SystemExit",
L"%SystemRoot%\\Media\\ReactOS_Shutdown.wav" },
447 {
L"SystemHand",
L"%SystemRoot%\\Media\\ReactOS_Critical_Stop.wav" },
448 {
L"SystemNotification",
L"%SystemRoot%\\Media\\ReactOS_Balloon.wav" },
449 {
L"SystemQuestion",
L"%SystemRoot%\\Media\\ReactOS_Ding.wav" },
450 {
L"SystemStart",
L"%SystemRoot%\\Media\\ReactOS_Startup.wav" },
451 {
L"WindowsLogoff",
L"%SystemRoot%\\Media\\ReactOS_LogOff.wav" }
457 {
L"EmptyRecycleBin",
L"%SystemRoot%\\Media\\ReactOS_Recycle.wav" },
458 {
L"Navigating",
L"%SystemRoot%\\Media\\ReactOS_Start.wav" }
467 HKEY hRootKey, hEventKey, hDefaultKey;
478 DPRINT1(
"RegOpenKeyExW failed\n");
558 DPRINT1(
"RegOpenKeyExW failed\n");
563 pszData =
pData->ProductSuite;
568 DPRINT1(
"RegSetValueExW failed\n");
573 pszData =
pData->ProductType;
578 DPRINT1(
"RegSetValueExW failed\n");
588 DPRINT1(
"RegOpenKeyExW failed\n");
593 dwValue =
pData->ReportAsWorkstation;
598 DPRINT1(
"RegSetValueExW failed\n");
608 DPRINT1(
"RegOpenKeyExW failed\n");
613 dwValue =
pData->CSDVersion;
618 DPRINT1(
"RegSetValueExW failed\n");
628 DPRINT1(
"RegOpenKeyExW failed\n");
633 dwValue =
pData->LogonType;
638 DPRINT1(
"RegSetValueExW failed\n");
652 WCHAR szShell[] =
L"cmd.exe";
657 DPRINT1(
"RegSetValueExW failed\n");
666 DPRINT1(
"RegOpenKeyExW failed\n");
674 DPRINT1(
"RegSetValueExW failed\n");
722 WCHAR szText[64], szDefault[64];
830 WCHAR * OwnerOrganization)
836 L"Software\\Microsoft\\Windows NT\\CurrentVersion",
860 L"RegisteredOrganization",
863 (
LPBYTE)OwnerOrganization,
877 WCHAR OwnerOrganization[51];
879 WCHAR ErrorName[256];
941 wcscpy(ErrorName,
L"Setup cannot continue until you enter your name.");
951 OwnerOrganization[0] = 0;
983 WCHAR ErrorComputerName[256];
998 wcscpy(ErrorComputerName,
L"Setup failed to set the computer name.");
1017 L"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters",
1035 DPRINT1(
"RegSetValueEx(\"Hostname\") failed (%08lX)\n", lError);
1042 DPRINT1(
"RegCreateKeyExW for Tcpip\\Parameters failed (%08lX)\n", lError);
1053 WCHAR szAdministratorName[256];
1059 szAdministratorName,
1062 wcscpy(szAdministratorName,
L"Administrator");
1066 L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon",
1074 L"DefaultDomainName",
1081 DPRINT1(
"RegSetValueEx(\"DefaultDomainName\") failed!\n");
1088 (
LPBYTE)szAdministratorName,
1089 (
wcslen(szAdministratorName)+ 1) *
sizeof(
WCHAR));
1092 DPRINT1(
"RegSetValueEx(\"DefaultUserName\") failed!\n");
1105 static const WCHAR Chars[] =
L"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
1106 static const unsigned cChars =
sizeof(Chars) /
sizeof(
WCHAR) - 1;
1114 for (
i = 8;
i < 15;
i++)
1127 WCHAR Password1[128];
1128 WCHAR Password2[128];
1131 WCHAR EmptyComputerName[256], NotMatchPassword[256], WrongPassword[256];
1161 if (pSetupData->UnattendSetup)
1197 wcscpy(EmptyComputerName,
L"Setup cannot continue until you enter the name of your computer.");
1215#ifdef PASSWORDS_MANDATORY
1223 wcscpy(EmptyPassword,
L"You must enter a password !");
1234 if (
wcscmp(Password1, Password2))
1239 wcscpy(NotMatchPassword,
L"The passwords you entered do not match. Please enter the desired password again.");
1255 wcscpy(WrongPassword,
L"The password you entered contains invalid characters. Please enter a cleaned password.");
1269 pSetupData->UnattendSetup =
FALSE;
1289 WCHAR CurLocale[256] =
L"";
1291 WCHAR ResText[256] =
L"";
1292 WCHAR LocaleText[256 * 2];
1308 WCHAR LayoutPath[256];
1310 WCHAR SpecialId[5] =
L"";
1311 WCHAR ResText[256] =
L"";
1326 LayoutSpecial =
TRUE;
1329#define MAX_LAYOUTS_PER_LANGID 0x10000
1348 if (!LayoutSpecial ||
1376#undef MAX_LAYOUTS_PER_LANGID
1394 if (!pwszCPLParameters)
1400 ZeroMemory(&StartupInfo,
sizeof(StartupInfo));
1401 StartupInfo.
cb =
sizeof(StartupInfo);
1402 ZeroMemory(&ProcessInformation,
sizeof(ProcessInformation));
1416 &ProcessInformation))
1470 else if (
_wcsicmp(pszExt,
L".msstyles") == 0)
1475 DPRINT1(
"EnableVisualTheme(): Unknown file '%S'\n", ThemeFile);
1480 DPRINT1(
"Applying visual %s '%S'\n",
1482 ThemeFile ? ThemeFile :
L"(Classic)");
1498 szStyleFile,
_countof(szStyleFile), ThemeFile) && *szStyleFile)
1501 ThemeFile = szStyleFile;
1510 DPRINT1(
"--> Applying visual style '%S'\n",
1511 ThemeFile ? ThemeFile :
L"(Classic)");
1516 WCHAR wszParams[1024];
1518 PCWSTR format =
L"desk.cpl,,2 /Action:ActivateMSTheme /file:\"%s\"";
1535 WCHAR Locale[9] =
L"0000";
1662 ULONG DescriptionSize;
1663 ULONG StandardNameSize;
1664 ULONG DaylightNameSize;
1672 DescriptionSize =
sizeof(
Entry->Description);
1673 StandardNameSize =
sizeof(
Entry->StandardName);
1674 DaylightNameSize =
sizeof(
Entry->DaylightName);
1678 &
Entry->TimezoneInfo,
1681 Entry->StandardName,
1683 Entry->DaylightName,
1702 if (Current !=
NULL)
1716 Entry->Next = Current;
1767 return (
Entry->TimezoneInfo.StandardDate.wMonth != 0 &&
1768 Entry->TimezoneInfo.DaylightDate.wMonth != 0);
1778 if (
Entry->Index == dwEntryIndex)
1826 if (dwEntryIndex != 0 && dwEntryIndex ==
Entry->Index)
1864 Entry->StandardName);
1866 Entry->DaylightName);
1868 TimeZoneInformation.
Bias =
Entry->TimezoneInfo.Bias;
1873 &
Entry->TimezoneInfo.StandardDate,
1876 &
Entry->TimezoneInfo.DaylightDate,
1940 WCHAR ErrorLocalTime[256];
1957 wcscpy(ErrorLocalTime,
L"Setup was unable to set the local time.");
2011 dwEntryIndex = (
DWORD)-1;
2146 WCHAR DisplayName[100] = {0};
2158 lvi.pszText = DisplayName;
2180 int iTheme = pnmv->
iItem;
2181 DPRINT1(
"Selected theme: %u\n",
Themes[iTheme].DisplayName);
2183 if (
Themes[iTheme].ThemeFile)
2252 DPRINT(
"Received SPFILENOTIFY_STARTREGISTRATION notification for %S\n",
2261 DPRINT(
"Received SPFILENOTIFY_ENDREGISTRATION notification for %S\n",
2326 WCHAR SectionName[512];
2332 RegistrationData.
hwndDlg = pItemsData->hwndDlg;
2338 DPRINT1(
"No RegistrationPhase2 section found\n");
2346 DPRINT1(
"Unable to retrieve section name\n");
2351 DPRINT(
"SectionName %S DllCount %ld\n", SectionName, DllCount);
2359 RegistrationData.
pNotify = pNotify;
2365 L"RegistrationPhase2",
2380 DPRINT(
"Catching exception\n");
2395 WCHAR SectionName[512];
2407 DPRINT1(
"No RegistrationPhase2 section found\n");
2415 DPRINT1(
"Unable to retrieve section name\n");
2425 DPRINT(
"Register Components: %ld Steps\n", Steps);
2433 DPRINT(
"Register Components: done\n");
2452 DPRINT(
"Install security: %ld Steps\n", Steps);
2459 DPRINT(
"Install security: done\n");
2473 hwndDlg = pItemsData->
hwndDlg;
2505 HANDLE hCompletionThread;
2509 if (pItemsData ==
NULL)
2512 pItemsData->
hwndDlg = hwndDlg;
2520 if (hCompletionThread ==
NULL)
2540 WCHAR UnknownError[84];
2550 wcscpy(UnknownError,
L"Unknown error");
2553 _ultow(LastError, UnknownError +
wcslen(UnknownError), 10);
2623 static HICON s_hCheckIcon, s_hArrowIcon, s_hCrossIcon;
2624 static HFONT s_hNormalFont;
2703 DPRINT(
"PM_STEP_START\n");
2720 DPRINT(
"PM_ITEMS_DONE\n");
2738 DWORD InProgress = 0;
2752 L"Software\\Microsoft\\Windows NT\\CurrentVersion",
2879 WCHAR wszDrives[512];
2880 WCHAR wszNTPath[512];
2887 if (cchDrives == 0 || cchDrives >=
_countof(wszDrives))
2894 for (pwszDrive = wszDrives; *pwszDrive; pwszDrive +=
wcslen(pwszDrive) + 1)
2901 pwszDrive[2] =
L'\\';
2906 wsprintf(wszBuf,
L"Testing '%s' --> '%s' %s a CD",
2907 pwszDrive, wszNTPath,
2912 if (!
_wcsicmp(wszNTPath, pwszNTPath))
2915 wcscpy(pwszPath, pwszDrive);
2918 wsprintf(wszBuf,
L"GetInstallSourceWin32: %s", pwszPath);
2942 L"UnattendSetupEnabled",
2961 DPRINT(
"Unattend setup was disabled by UnattendSetupEnabled key.\n");
2965 pSetupData->UnattendSetup =
TRUE;
3000 if (
ARRAYSIZE(pSetupData->OwnerName) > LineLength)
3002 wcscpy(pSetupData->OwnerName, szValue);
3007 if (
ARRAYSIZE(pSetupData->OwnerOrganization) > LineLength)
3009 wcscpy(pSetupData->OwnerOrganization, szValue);
3014 if (
ARRAYSIZE(pSetupData->ComputerName) > LineLength)
3016 wcscpy(pSetupData->ComputerName, szValue);
3021 if (
ARRAYSIZE(pSetupData->AdminPassword) > LineLength)
3023 wcscpy(pSetupData->AdminPassword, szValue);
3028 pSetupData->TimeZoneIndex =
_wtoi(szValue);
3032 pSetupData->DisableAutoDaylightTimeSet =
_wtoi(szValue);
3037 pSetupData->DisableGeckoInst =
TRUE;
3039 pSetupData->DisableGeckoInst =
FALSE;
3078 iValue =
_wtoi(szValue);
3111 L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce",
3116 DPRINT1(
"Error: failed to open HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce\n");
3166 DPRINT1(
"Error: failed to open HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment\n");
3228 return (
_wcsicmp(szPath1, szPath2) == 0);
3238 DWORD dwPathLength = 0;
3239 DWORD dwNewLength = 0;
3245 L"Installation Sources",
3253 dwPathLength == 0 ||
3254 dwPathLength %
sizeof(
WCHAR) != 0)
3261 dwNewLength = dwPathLength + (
wcslen(lpPath) + 1) *
sizeof(
WCHAR);
3270 L"Installation Sources",
3297 if (dwPathLength == 0)
3299 dwNewLength = (
wcslen(lpPath) + 1 + 1) *
sizeof(
WCHAR);
3312 L"Installation Sources",
3387 _swprintf(szValue,
L"\"%s\"", pSetupData->SourcePath);
3399 L"Software\\Microsoft\\Windows NT\\CurrentVersion",
3411 L"Software\\Microsoft\\Windows\\CurrentVersion\\Setup",
3426 (
LPBYTE)pSetupData->SourcePath,
3427 (
wcslen(pSetupData->SourcePath) + 1) *
sizeof(
WCHAR));
3430 L"ServicePackSourcePath",
3433 (
LPBYTE)pSetupData->SourcePath,
3434 (
wcslen(pSetupData->SourcePath) + 1) *
sizeof(
WCHAR));
3469 DWORD dwPageCount = 10, dwNetworkPageCount = 0;
3471 LogItem(
L"BEGIN_SECTION",
L"InstallWizard");
3477 if (pSetupData ==
NULL)
3481 L"Setup failed to allocate global data!",
3489 if (hNetShell !=
NULL)
3491 DPRINT(
"Netshell.dll loaded!\n");
3494 "NetSetupRequestWizardPages");
3497 pfn(&dwNetworkPageCount,
NULL,
NULL);
3498 dwPageCount += dwNetworkPageCount;
3502 DPRINT(
"PageCount: %lu\n", dwPageCount);
3511 L"Setup failed to allocate page array!",
3524 psp.lParam = (
LPARAM)pSetupData;
3530 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3538 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3546 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3554 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3562 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3570 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3578 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3590 pfn(&dwNetworkPageCount, &phpage[nPages], pSetupData);
3591 nPages += dwNetworkPageCount;
3595 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3608 ASSERT(nPages == dwPageCount);
3612 psh.dwFlags = PSH_WIZARD97 | PSH_WATERMARK | PSH_HEADER |
PSH_MODELESS;
3614 psh.hwndParent =
NULL;
3615 psh.nPages = nPages;
3617 psh.phpage = phpage;
3648 if (hNetShell !=
NULL)
3651 if (pSetupData !=
NULL)
3654 LogItem(
L"END_SECTION",
L"InstallWizard");
static _In_ LPCWSTR LocaleName
PRTL_UNICODE_STRING_BUFFER Path
static VOID ErrorMessage(_In_ DWORD dwErrorCode, _In_opt_ PCWSTR pszMsg,...)
#define ShowDlgItem(hDlg, nID, nCmdShow)
struct _SETUPDATA * PSETUPDATA
#define IDS_PROCESSSUBTITLE
#define IDC_PROCESSPROGRESS
#define IDC_RESTART_PROGRESS
#define RegCloseKey(hKey)
static HINSTANCE hDllInstance
BOOL WINAPI SetComputerNameW(LPCWSTR lpComputerName)
BOOL WINAPI SetComputerNameExW(COMPUTER_NAME_FORMAT NameType, LPCWSTR lpBuffer)
#define ERROR_NOT_ENOUGH_MEMORY
BOOL WINAPI SHIM_OBJ_NAME() Notify(DWORD fdwReason, PVOID ptr)
#define IDS_REACTOS_SETUP
LONG WINAPI RegCreateKeyExW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD Reserved, _In_opt_ LPWSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_opt_ LPDWORD lpdwDisposition)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
INT WINAPI ImageList_AddMasked(HIMAGELIST himl, HBITMAP hBitmap, COLORREF clrMask)
HIMAGELIST WINAPI ImageList_Create(INT cx, INT cy, UINT flags, INT cInitial, INT cGrow)
static const WCHAR Title[]
#define GetProcAddress(x, y)
#define INVALID_HANDLE_VALUE
#define HeapFree(x, y, z)
static void cleanup(void)
#define IDS_UNKNOWN_ERROR
DWORD WINAPI QueryDosDeviceW(LPCWSTR lpDeviceName, LPWSTR lpTargetPath, DWORD ucchMax)
DWORD WINAPI ExpandEnvironmentStringsW(IN LPCWSTR lpSrc, IN LPWSTR lpDst, IN DWORD nSize)
UINT WINAPI GetDriveTypeW(IN LPCWSTR lpRootPathName)
DWORD WINAPI GetLogicalDriveStringsW(IN DWORD nBufferLength, IN LPWSTR lpBuffer)
DWORD WINAPI GetFileAttributesW(LPCWSTR lpFileName)
UINT WINAPI GetSystemDirectoryW(OUT LPWSTR lpBuffer, IN UINT uSize)
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessW(LPCWSTR lpApplicationName, LPWSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCWSTR lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
BOOL WINAPI SetLocalTime(IN CONST SYSTEMTIME *lpSystemTime)
VOID WINAPI GetLocalTime(OUT LPSYSTEMTIME lpSystemTime)
BOOL WINAPI WritePrivateProfileStringW(LPCWSTR section, LPCWSTR entry, LPCWSTR string, LPCWSTR filename)
INT WINAPI GetPrivateProfileStringW(LPCWSTR section, LPCWSTR entry, LPCWSTR def_val, LPWSTR buffer, UINT len, LPCWSTR filename)
HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
DWORD WINAPI SizeofResource(HINSTANCE hModule, HRSRC hRsrc)
LPVOID WINAPI LockResource(HGLOBAL handle)
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
BOOL WINAPI SetTimeZoneInformation(CONST TIME_ZONE_INFORMATION *lpTimeZoneInformation)
GEOID WINAPI GetUserGeoID(GEOCLASS GeoClass)
LCID WINAPI GetThreadLocale(void)
INT WINAPI GetGeoInfoW(GEOID geoid, GEOTYPE geotype, LPWSTR data, int data_len, LANGID lang)
LCID WINAPI GetUserDefaultLCID(void)
LCID WINAPI GetSystemDefaultLCID(void)
INT WINAPI GetLocaleInfoW(LCID lcid, LCTYPE lctype, LPWSTR buffer, INT len)
ULONG WINAPI DECLSPEC_HOTPATCH GetTickCount(void)
_ACRTIMP wchar_t *__cdecl _ultow(__msvcrt_ulong, wchar_t *, int)
_ACRTIMP int __cdecl _wtoi(const wchar_t *)
_ACRTIMP int __cdecl _wcsicmp(const wchar_t *, const wchar_t *)
_ACRTIMP size_t __cdecl wcslen(const wchar_t *)
_ACRTIMP int __cdecl wcscmp(const wchar_t *, const wchar_t *)
_ACRTIMP int __cdecl rand(void)
_ACRTIMP void __cdecl srand(unsigned int)
static const WCHAR CmdLine[]
BOOL WINAPI SetupInstallFromInfSectionW(HWND owner, HINF hinf, PCWSTR section, UINT flags, HKEY key_root, PCWSTR src_root, UINT copy_flags, PSP_FILE_CALLBACK_W callback, PVOID context, HDEVINFO devinfo, PSP_DEVINFO_DATA devinfo_data)
static const WCHAR RegisterDlls[]
HINF WINAPI SetupOpenInfFileW(PCWSTR name, PCWSTR class, DWORD style, UINT *error)
LONG WINAPI SetupGetLineCountW(HINF hinf, PCWSTR section)
void WINAPI SetupTermDefaultQueueCallback(PVOID context)
PVOID WINAPI SetupInitDefaultQueueCallback(HWND owner)
HRESULT WINAPI SHGetFolderPathAndSubDirW(HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwFlags, LPCWSTR pszSubPath, LPWSTR pszPath)
NTSTATUS SetAdministratorPassword(LPCWSTR Password)
struct _ITEMSDATA * PITEMSDATA
LONG CountSecuritySteps(VOID)
struct _REGISTRATIONNOTIFY * PREGISTRATIONNOTIFY
DWORD InstallSecurity(_In_ PITEMSDATA pItemsData, _In_ PREGISTRATIONNOTIFY pNotify)
BOOL RegisterTypeLibraries(_In_ PITEMSDATA pItemsData, _In_ PREGISTRATIONNOTIFY pNotify, _In_ HINF hinf, _In_ LPCWSTR szSection)
VOID InstallStartMenuItems(_In_ PITEMSDATA pItemsData)
#define IDS_THEMESELECTIONTITLE
#define IDC_OWNERORGANIZATION
#define IDS_INSTALLATIONSERVERINFO
#define IDS_INSTALLATIONSUBTITLE
#define IDC_INSTALLATION_ICON
#define IDS_LOCALESUBTITLE
#define IDS_INSTALLATIONWORKSTATIONNAME
#define IDC_INSTALLATION_TYPES
#define IDC_ADMINPASSWORD2
#define IDS_DLLINSTALL_FAILED
#define IDS_REGSVR_FAILED
#define IDS_WZD_COMPUTERNAME
#define IDC_INSTALLATION_DESCRIPTION
#define IDS_LOADLIBRARY_FAILED
#define IDS_OWNERSUBTITLE
#define IDS_GETPROCADDR_FAILED
#define IDS_WZD_PASSWORDMATCH
#define IDS_COMPUTERSUBTITLE
#define IDS_INSTALLATIONTITLE
#define IDS_WZD_PASSWORDCHAR
#define IDS_DATETIMESUBTITLE
#define IDS_THEMESELECTIONSUBTITLE
#define IDS_REASON_UNKNOWN
#define IDS_INSTALLATIONSERVERNAME
#define IDS_COMPUTERTITLE
#define IDS_WZD_LOCALTIME
#define IDS_MACHINE_OWNER_NAME
#define IDS_WZD_SETCOMPUTERNAME
#define IDS_WZD_PASSWORDEMPTY
#define IDS_INSTALLATIONSERVERCORENAME
#define IDC_ADMINPASSWORD1
#define IDS_INSTALLATIONWORKSTATIONINFO
#define IDS_DATETIMETITLE
#define IDS_ADMINISTRATOR_NAME
#define IDS_INSTALLATIONSERVERCOREINFO
NTSTATUS WINAPI SetAccountsDomainSid(PSID DomainSid, LPCWSTR DomainName)
#define EnableDlgItem(hDlg, nID, bEnable)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
HLOCAL NTAPI LocalFree(HLOCAL hMem)
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
#define EXCEPTION_EXECUTE_HANDLER
HRESULT Next([in] ULONG celt, [out, size_is(celt), length_is(*pceltFetched)] STATPROPSETSTG *rgelt, [out] ULONG *pceltFetched)
#define memcpy(s1, s2, n)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
#define _swprintf(buf, format,...)
static PLARGE_INTEGER Time
static SCRIPT_CACHE SCRIPT_ANALYSIS OPENTYPE_TAG OPENTYPE_TAG int TEXTRANGE_PROPERTIES int const WCHAR int cChars
struct _PSP * HPROPSHEETPAGE
unsigned __int3264 UINT_PTR
INT WINAPI MulDiv(INT nNumber, INT nNumerator, INT nDenominator)
static HFONT CreateTitleFont(VOID)
static INT_PTR CALLBACK WelcomeDlgProc(IN HWND hwndDlg, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lParam)
static INT_PTR CALLBACK FinishDlgProc(IN HWND hwndDlg, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lParam)
static VOID CenterWindow(IN HWND hWnd)
#define REG_OPTION_NON_VOLATILE
#define FILE_ATTRIBUTE_DIRECTORY
#define MAKELCID(lgid, srtid)
#define MAKEINTRESOURCE(i)
#define PathCanonicalizeW
#define PathAddBackslashW
static const WCHAR szName[]
#define PropSheet_PressButton(d, i)
#define CreatePropertySheetPage
#define PropSheet_SetWizButtons(d, f)
#define ListView_InsertItem(hwnd, pitem)
#define ListView_SetIconSpacing(hwndLV, cx, cy)
#define ListView_SetImageList(hwnd, himl, iImageList)
#define ListView_SetBkColor(hwnd, clrBk)
#define DateTime_SetSystemtime(hdp, gd, pst)
#define DTN_DATETIMECHANGE
struct tagNMLISTVIEW * LPNMLISTVIEW
#define ListView_SetTextBkColor(hwnd, clrTextBk)
#define DateTime_GetSystemtime(hdp, pst)
_In_opt_ _In_opt_ _In_ _In_ DWORD cbData
#define _SEH2_GetExceptionCode()
#define _SEH2_EXCEPT(...)
NTSTATUS NTAPI RtlCreateBootStatusDataFile(VOID)
#define SPREG_GETPROCADDR
#define SetupDefaultQueueCallback
#define SPFILENOTIFY_STARTREGISTRATION
struct _SP_REGISTER_CONTROL_STATUSW * PSP_REGISTER_CONTROL_STATUSW
#define SPFILENOTIFY_ENDREGISTRATION
#define SPREG_LOADLIBRARY
STDMETHOD() Next(THIS_ ULONG celt, IAssociationElement *pElement, ULONG *pceltFetched) PURE
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
STRSAFEAPI StringCchCatW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
STRSAFEAPI StringCbCopyW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
WCHAR lfFaceName[LF_FACESIZE]
DWORD ReportAsWorkstation
PREGISTRATIONNOTIFY pNotify
INSTALLATION_TYPE InstallationType
struct _TIMEZONE_ENTRY * TimeZoneListHead
UINT uPostNetworkWizardPage
struct _TIMEZONE_ENTRY * TimeZoneListTail
UINT uFirstNetworkWizardPage
WCHAR OwnerOrganization[51]
DWORD DisableAutoDaylightTimeSet
REG_TZI_FORMAT TimezoneInfo
struct _TIMEZONE_ENTRY * Prev
struct _TIMEZONE_ENTRY * Next
static BOOL WriteOwnerSettings(WCHAR *OwnerName, WCHAR *OwnerOrganization)
static VOID RegisterComponents(PITEMSDATA pItemsData)
static const WCHAR * s_ExplorerSoundEvents[][2]
static INT_PTR CALLBACK GplDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static BOOL DoWriteSoundEvents(HKEY hKey, LPCWSTR lpSubkey, LPCWSTR lpEventsArray[][2], DWORD dwSize)
struct _PRODUCT_OPTION_DATA PRODUCT_OPTION_DATA
static VOID ShowItemError(HWND hwndDlg, DWORD LastError)
struct _REGISTRATIONDATA REGISTRATIONDATA
static BOOL GetInstallSourceWin32(OUT PWSTR pwszPath, IN DWORD cchPathMax, IN PCWSTR pwszNTPath)
static const WCHAR s_szRosVersion[]
static BOOL RunItemCompletionThread(_In_ HWND hwndDlg)
static UINT CALLBACK RegistrationNotificationProc(PVOID Context, UINT Notification, UINT_PTR Param1, UINT_PTR Param2)
static VOID CreateTimeZoneList(PSETUPDATA SetupData)
static VOID SetKeyboardLayoutName(HWND hwnd)
static BOOL SetSystemLocalTime(HWND hwnd, PSETUPDATA SetupData)
static VOID WriteUserLocale(VOID)
static INT_PTR CALLBACK ComputerPageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static BOOL PathIsEqual(IN LPCWSTR lpPath1, IN LPCWSTR lpPath2)
static VOID UpdateLocalSystemTime(HWND hwnd, SYSTEMTIME LocalTime)
static INT_PTR CALLBACK LocalePageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
VOID EnableVisualTheme(_In_opt_ HWND hwndParent, _In_opt_ PCWSTR ThemeFile)
static BOOL WriteDefaultLogonData(LPWSTR Domain)
static void GenerateComputerName(LPWSTR lpBuffer)
static PTIMEZONE_ENTRY GetLargerTimeZoneEntry(PSETUPDATA SetupData, DWORD Index)
static VOID SetUserLocaleName(HWND hwnd)
static INT_PTR CALLBACK OwnerPageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static BOOL WriteDateTimeSettings(HWND hwndDlg, PSETUPDATA SetupData)
#define MAX_LAYOUTS_PER_LANGID
static INT_PTR CALLBACK DateTimePageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static const WCHAR * InstallationTypes[INSTALLATION_TYPE_MAX]
static HFONT CreateBoldFont(VOID)
static BOOL WriteComputerSettings(WCHAR *ComputerName, HWND hwndDlg)
VOID ProcessSetupInf(IN OUT PSETUPDATA pSetupData)
static VOID ShowStepError(HWND hwndDlg, PREGISTRATIONNOTIFY RegistrationNotify)
static const WCHAR s_szWinlogon[]
static VOID DestroyTimeZoneList(PSETUPDATA SetupData)
static const PRODUCT_OPTION_DATA s_ProductOptionData[INSTALLATION_TYPE_MAX]
static const WCHAR * s_DefaultSoundEvents[][2]
static BOOL GetLocalSystemTime(HWND hwnd, PSETUPDATA SetupData)
static void OnChooseInstallationType(HWND hwndDlg, INSTALLATION_TYPE nOption)
static LONG RetrieveTimeZone(IN HKEY hZoneKey, IN PVOID Context)
static struct ThemeInfo Themes[]
DWORD(WINAPI * PFNREQUESTWIZARDPAGES)(PDWORD, HPROPSHEETPAGE *, PSETUPDATA)
static PTIMEZONE_ENTRY GetSelectedTimeZoneEntry(PSETUPDATA SetupData, DWORD dwEntryIndex)
static PTIMEZONE_ENTRY GetTimeZoneEntryByIndex(PSETUPDATA SetupData, DWORD dwComboIndex)
void WINAPI Control_RunDLLW(HWND hWnd, HINSTANCE hInst, LPCWSTR cmd, DWORD nCmdShow)
struct _REGISTRATIONDATA * PREGISTRATIONDATA
static VOID SetLocalTimeZone(HWND hwnd, PSETUPDATA SetupData)
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 BOOL HasDaylightSavingTime(PTIMEZONE_ENTRY Entry)
static DWORD CALLBACK ItemCompletionThread(LPVOID Parameter)
static BOOL RunControlPanelApplet(HWND hwnd, PCWSTR pwszCPLParameters)
static const WCHAR s_szCurrentVersion[]
static VOID SetInstallationCompleted(VOID)
static VOID AddInstallationSource(IN HKEY hKey, IN LPWSTR lpPath)
struct _TIMEZONE_ENTRY * PTIMEZONE_ENTRY
static const WCHAR s_szExplorerSoundEvents[]
static INT_PTR CALLBACK InstallTypePageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
VOID ProcessUnattendSection(IN OUT PSETUPDATA pSetupData)
static BOOL DoWriteInstallationType(INSTALLATION_TYPE nOption)
static VOID UpdateAutoDaylightCheckbox(HWND hwndDlg, PTIMEZONE_ENTRY Entry)
struct _TIMEZONE_ENTRY TIMEZONE_ENTRY
static const WCHAR s_szProductOptions[]
static const WCHAR s_szControlWindows[]
static VOID ShowTimeZoneList(HWND hwnd, PSETUPDATA SetupData, DWORD dwEntryIndex)
static INT_PTR CALLBACK ProcessPageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static const WCHAR s_szDefaultSoundEvents[]
#define LogItem(lpTag, lpMessageText...)
@ INSTALLATION_TYPE_SERVER_CORE
@ INSTALLATION_TYPE_DEFAULT
@ INSTALLATION_TYPE_SERVER
@ INSTALLATION_TYPE_WORKSTATION
enum _INSTALLATION_TYPE INSTALLATION_TYPE
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
TW_UINT32 TW_UINT16 TW_UINT16 MSG
VOID EnumerateTimeZoneList(IN PENUM_TIMEZONE_CALLBACK Callback, IN PVOID Context OPTIONAL)
LONG QueryTimeZoneData(IN HKEY hZoneKey, OUT PULONG Index OPTIONAL, OUT PREG_TZI_FORMAT TimeZoneInfo, OUT PWCHAR Description OPTIONAL, IN OUT PULONG DescriptionSize OPTIONAL, OUT PWCHAR StandardName OPTIONAL, IN OUT PULONG StandardNameSize OPTIONAL, OUT PWCHAR DaylightName OPTIONAL, IN OUT PULONG DaylightNameSize OPTIONAL)
VOID SetAutoDaylight(IN BOOL EnableAutoDaylightTime)
BOOL GetTimeZoneListIndex(IN OUT PULONG pIndex)
BOOL WINAPI SetupGetStringFieldW(IN PINFCONTEXT Context, IN ULONG FieldIndex, OUT PWSTR ReturnBuffer, IN ULONG ReturnBufferSize, OUT PULONG RequiredSize)
BOOL WINAPI SetupFindFirstLineW(IN HINF InfHandle, IN PCWSTR Section, IN PCWSTR Key, IN OUT PINFCONTEXT Context)
BOOL WINAPI SetupFindNextLine(IN PINFCONTEXT ContextIn, OUT PINFCONTEXT ContextOut)
VOID WINAPI SetupCloseInfFile(IN HINF InfHandle)
struct _THEME_FILE THEME_FILE
#define INVALID_FILE_ATTRIBUTES
_In_ WDFCOLLECTION _In_ ULONG Index
_In_ PWDFDEVICE_INIT _In_ PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION Notification
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
BOOL WINAPI EnumDisplaySettingsW(LPCWSTR lpszDeviceName, DWORD iModeNum, LPDEVMODEW lpDevMode)
LONG WINAPI ChangeDisplaySettingsW(LPDEVMODEW lpDevMode, DWORD dwflags)
UINT WINAPI GetDlgItemTextW(HWND hDlg, int nIDDlgItem, LPWSTR lpString, int nMaxCount)
VOID WINAPI SwitchToThisWindow(HWND hwnd, BOOL fAltTab)
DWORD WINAPI GetLastError(void)
#define FORMAT_MESSAGE_FROM_SYSTEM
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
#define MAX_COMPUTERNAME_LENGTH
#define ListBox_AddString(hwndCtl, lpsz)
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
#define DM_DISPLAYFREQUENCY
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
HFONT WINAPI CreateFontIndirectW(_In_ const LOGFONTW *)
#define HKEY_LOCAL_MACHINE
#define HKEY_CURRENT_USER
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HKL WINAPI GetKeyboardLayout(_In_ DWORD)
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
#define LR_CREATEDIBSECTION
BOOL WINAPI SetForegroundWindow(_In_ HWND)
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
LRESULT WINAPI SendMessageA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI SetDlgItemTextW(_In_ HWND, _In_ int, _In_ LPCWSTR)
#define QS_ALLPOSTMESSAGE
#define CDS_UPDATEREGISTRY
DWORD WINAPI MsgWaitForMultipleObjects(_In_ DWORD nCount, _In_reads_opt_(nCount) CONST HANDLE *pHandles, _In_ BOOL fWaitAll, _In_ DWORD dwMilliseconds, _In_ DWORD dwWakeMask)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
HWND WINAPI GetDesktopWindow(void)
BOOL WINAPI SetWindowTextW(_In_ HWND, _In_opt_ LPCWSTR)
#define ENUM_CURRENT_SETTINGS
HWND WINAPI SetFocus(_In_opt_ HWND)
BOOL WINAPI PeekMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT, _In_ UINT)
struct tagNMHDR * LPNMHDR
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
HDC WINAPI GetDC(_In_opt_ HWND)
BOOL WINAPI SystemParametersInfoW(_In_ UINT uiAction, _In_ UINT uiParam, _Inout_opt_ PVOID pvParam, _In_ UINT fWinIni)
HWND WINAPI GetParent(_In_ HWND)
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)
#define MAKEINTRESOURCEW(i)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
#define SendDlgItemMessage
BOOL WINAPI DestroyWindow(_In_ HWND)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
BOOL WINAPI DestroyIcon(_In_ HICON)
_Inout_opt_ PVOID Parameter