30#define PM_REGISTRATION_NOTIFY (WM_APP + 1)
37#define PM_ITEM_START (WM_APP + 2)
38#define PM_ITEM_END (WM_APP + 3)
39#define PM_STEP_START (WM_APP + 4)
40#define PM_STEP_END (WM_APP + 5)
41#define PM_ITEMS_DONE (WM_APP + 6)
155 HRSRC GplTextResource;
166 if (
NULL == GplTextResource)
181 if (
NULL == GplTextMem)
187 if (
NULL == GplTextLocked)
193 GplText[
Size] =
'\0';
257 (
WPARAM)pSetupData->hTitleFont,
310 PWCHAR End, CurrentProject;
311 INT ProjectsSize, ProjectsCount;
328 if (
NULL == Projects)
333 if (0 == ProjectsCount)
338 if (ProjectsCount < ProjectsSize - 1)
346 CurrentProject = Projects;
347 while (*CurrentProject !=
L'\0')
349 End =
wcschr(CurrentProject,
L'\n');
357 CurrentProject = End + 1;
361 CurrentProject +=
wcslen(CurrentProject);
427 {
L"Terminal Server\0",
L"ServerNT", 0, 0x200, 0 },
428 {
L"\0",
L"WinNT", 1, 0x300, 1 }
433 {
L".Default",
L"%SystemRoot%\\Media\\ReactOS_Default.wav" },
434 {
L"AppGPFault",
L"" },
436 {
L"CriticalBatteryAlarm",
L"%SystemRoot%\\Media\\ReactOS_Battery_Critical.wav" },
437 {
L"DeviceConnect",
L"%SystemRoot%\\Media\\ReactOS_Hardware_Insert.wav" },
438 {
L"DeviceDisconnect",
L"%SystemRoot%\\Media\\ReactOS_Hardware_Remove.wav" },
439 {
L"DeviceFail",
L"%SystemRoot%\\Media\\ReactOS_Hardware_Fail.wav" },
440 {
L"LowBatteryAlarm",
L"%SystemRoot%\\Media\\ReactOS_Battery_Low.wav" },
441 {
L"MailBeep",
L"%SystemRoot%\\Media\\ReactOS_Notify.wav" },
442 {
L"Maximize",
L"%SystemRoot%\\Media\\ReactOS_Restore.wav" },
443 {
L"MenuCommand",
L"%SystemRoot%\\Media\\ReactOS_Menu_Command.wav" },
444 {
L"MenuPopup",
L"" },
445 {
L"Minimize",
L"%SystemRoot%\\Media\\ReactOS_Minimize.wav" },
447 {
L"PrintComplete",
L"%SystemRoot%\\Media\\ReactOS_Print_Complete.wav" },
448 {
L"RestoreDown",
L"" },
449 {
L"RestoreUp",
L"" },
450 {
L"SystemAsterisk",
L"%SystemRoot%\\Media\\ReactOS_Ding.wav" },
451 {
L"SystemExclamation",
L"%SystemRoot%\\Media\\ReactOS_Exclamation.wav" },
452 {
L"SystemExit",
L"%SystemRoot%\\Media\\ReactOS_Shutdown.wav" },
453 {
L"SystemHand",
L"%SystemRoot%\\Media\\ReactOS_Critical_Stop.wav" },
454 {
L"SystemNotification",
L"%SystemRoot%\\Media\\ReactOS_Balloon.wav" },
455 {
L"SystemQuestion",
L"%SystemRoot%\\Media\\ReactOS_Ding.wav" },
456 {
L"SystemStart",
L"%SystemRoot%\\Media\\ReactOS_Startup.wav" },
457 {
L"WindowsLogoff",
L"%SystemRoot%\\Media\\ReactOS_LogOff.wav" }
463 {
L"EmptyRecycleBin",
L"%SystemRoot%\\Media\\ReactOS_Recycle.wav" },
464 {
L"Navigating",
L"%SystemRoot%\\Media\\ReactOS_Start.wav" }
473 HKEY hRootKey, hEventKey, hDefaultKey;
484 DPRINT1(
"RegOpenKeyExW failed\n");
556 DWORD dwValue, cbData;
564 DPRINT1(
"RegOpenKeyExW failed\n");
569 pszData =
pData->ProductSuite;
574 DPRINT1(
"RegSetValueExW failed\n");
579 pszData =
pData->ProductType;
584 DPRINT1(
"RegSetValueExW failed\n");
594 DPRINT1(
"RegOpenKeyExW failed\n");
599 dwValue =
pData->ReportAsWorkstation;
600 cbData =
sizeof(dwValue);
604 DPRINT1(
"RegSetValueExW failed\n");
614 DPRINT1(
"RegOpenKeyExW failed\n");
619 dwValue =
pData->CSDVersion;
620 cbData =
sizeof(dwValue);
624 DPRINT1(
"RegSetValueExW failed\n");
634 DPRINT1(
"RegOpenKeyExW failed\n");
639 dwValue =
pData->LogonType;
640 cbData =
sizeof(dwValue);
644 DPRINT1(
"RegSetValueExW failed\n");
691 WCHAR szText[64], szDefault[64];
781 WCHAR * OwnerOrganization)
787 L"Software\\Microsoft\\Windows NT\\CurrentVersion",
811 L"RegisteredOrganization",
814 (
LPBYTE)OwnerOrganization,
828 WCHAR OwnerOrganization[51];
830 WCHAR ErrorName[256];
892 wcscpy(ErrorName,
L"Setup cannot continue until you enter your name.");
902 OwnerOrganization[0] = 0;
934 WCHAR ErrorComputerName[256];
949 wcscpy(ErrorComputerName,
L"Setup failed to set the computer name.");
968 L"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters",
974 DPRINT1(
"RegOpenKeyExW for Tcpip\\Parameters failed (%08lX)\n", lError);
986 DPRINT1(
"RegSetValueEx(\"Hostname\") failed (%08lX)\n", lError);
999 WCHAR szAdministratorName[256];
1005 szAdministratorName,
1008 wcscpy(szAdministratorName,
L"Administrator");
1012 L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon",
1020 L"DefaultDomainName",
1027 DPRINT1(
"RegSetValueEx(\"DefaultDomainName\") failed!\n");
1034 (
LPBYTE)szAdministratorName,
1035 (
wcslen(szAdministratorName)+ 1) *
sizeof(
WCHAR));
1038 DPRINT1(
"RegSetValueEx(\"DefaultUserName\") failed!\n");
1051 static const WCHAR Chars[] =
L"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
1052 static const unsigned cChars =
sizeof(Chars) /
sizeof(
WCHAR) - 1;
1060 for (
i = 8;
i < 15;
i++)
1073 WCHAR Password1[128];
1074 WCHAR Password2[128];
1077 WCHAR EmptyComputerName[256], NotMatchPassword[256], WrongPassword[256];
1107 if (pSetupData->UnattendSetup)
1143 wcscpy(EmptyComputerName,
L"Setup cannot continue until you enter the name of your computer.");
1161#ifdef PASSWORDS_MANDATORY
1169 wcscpy(EmptyPassword,
L"You must enter a password !");
1180 if (
wcscmp(Password1, Password2))
1185 wcscpy(NotMatchPassword,
L"The passwords you entered do not match. Please enter the desired password again.");
1201 wcscpy(WrongPassword,
L"The password you entered contains invalid characters. Please enter a cleaned password.");
1215 pSetupData->UnattendSetup =
FALSE;
1235 WCHAR CurLocale[256] =
L"";
1237 WCHAR ResText[256] =
L"";
1238 WCHAR LocaleText[256 * 2];
1254 WCHAR LayoutPath[256];
1255 WCHAR LocaleName[32];
1256 WCHAR SpecialId[5] =
L"";
1257 WCHAR ResText[256] =
L"";
1272 LayoutSpecial =
TRUE;
1275#define MAX_LAYOUTS_PER_LANGID 0x10000
1293 dwValueSize =
sizeof(LocaleName);
1294 if (!LayoutSpecial ||
1301 (
wcscmp(LocaleName, SpecialId) == 0)))
1304 dwValueSize =
sizeof(LocaleName);
1322#undef MAX_LAYOUTS_PER_LANGID
1340 if (!pwszCPLParameters)
1346 ZeroMemory(&StartupInfo,
sizeof(StartupInfo));
1347 StartupInfo.
cb =
sizeof(StartupInfo);
1348 ZeroMemory(&ProcessInformation,
sizeof(ProcessInformation));
1362 &ProcessInformation))
1524 ULONG DescriptionSize;
1525 ULONG StandardNameSize;
1526 ULONG DaylightNameSize;
1534 DescriptionSize =
sizeof(
Entry->Description);
1535 StandardNameSize =
sizeof(
Entry->StandardName);
1536 DaylightNameSize =
sizeof(
Entry->DaylightName);
1540 &
Entry->TimezoneInfo,
1543 Entry->StandardName,
1545 Entry->DaylightName,
1564 if (Current !=
NULL)
1578 Entry->Next = Current;
1641 if (dwEntryIndex != 0 && dwEntryIndex ==
Entry->Index)
1679 Entry->StandardName);
1681 Entry->DaylightName);
1683 TimeZoneInformation.
Bias =
Entry->TimezoneInfo.Bias;
1688 &
Entry->TimezoneInfo.StandardDate,
1691 &
Entry->TimezoneInfo.DaylightDate,
1755 WCHAR ErrorLocalTime[256];
1772 wcscpy(ErrorLocalTime,
L"Setup was unable to set the local time.");
1934 WCHAR DisplayName[100] = {0};
1946 lvi.pszText = DisplayName;
1967 int iTheme = pnmv->
iItem;
1968 DPRINT1(
"Selected theme: %u\n",
Themes[iTheme].DisplayName);
1970 if (
Themes[iTheme].ThemeFile)
1972 WCHAR wszParams[1024];
1974 WCHAR*
format =
L"desk.cpl,,2 /Action:ActivateMSTheme /file:\"%s\"";
2044 DPRINT(
"Received SPFILENOTIFY_STARTREGISTRATION notification for %S\n",
2052 DPRINT(
"Received SPFILENOTIFY_ENDREGISTRATION notification for %S\n",
2115 WCHAR SectionName[512];
2127 DPRINT1(
"No RegistrationPhase2 section found\n");
2135 DPRINT1(
"Unable to retrieve section name\n");
2140 DPRINT1(
"SectionName %S DllCount %ld\n", SectionName, DllCount);
2156 L"RegistrationPhase2",
2171 DPRINT(
"Catching exception\n");
2194 hwndDlg = pItemsData->
hwndDlg;
2220 HANDLE hCompletionThread;
2224 if (pItemsData ==
NULL)
2227 pItemsData->
hwndDlg = hwndDlg;
2235 if (hCompletionThread ==
NULL)
2255 WCHAR UnknownError[84];
2265 wcscpy(UnknownError,
L"Unknown error");
2268 _ultow(LastError, UnknownError +
wcslen(UnknownError), 10);
2393 DPRINT(
"PM_STEP_START\n");
2410 DPRINT(
"PM_ITEMS_DONE\n");
2428 DWORD InProgress = 0;
2442 L"Software\\Microsoft\\Windows NT\\CurrentVersion",
2558 WCHAR wszDrives[512];
2559 WCHAR wszNTPath[512];
2566 if (cchDrives == 0 || cchDrives >=
_countof(wszDrives))
2573 for (pwszDrive = wszDrives; *pwszDrive; pwszDrive +=
wcslen(pwszDrive) + 1)
2580 pwszDrive[2] =
L'\\';
2585 wsprintf(wszBuf,
L"Testing '%s' --> '%s' %s a CD",
2586 pwszDrive, wszNTPath,
2591 if (!
_wcsicmp(wszNTPath, pwszNTPath))
2594 wcscpy(pwszPath, pwszDrive);
2597 wsprintf(wszBuf,
L"GetInstallSourceWin32: %s", pwszPath);
2621 L"UnattendSetupEnabled",
2640 DPRINT(
"Unattend setup was disabled by UnattendSetupEnabled key.\n");
2644 pSetupData->UnattendSetup =
TRUE;
2679 if (
ARRAYSIZE(pSetupData->OwnerName) > LineLength)
2681 wcscpy(pSetupData->OwnerName, szValue);
2686 if (
ARRAYSIZE(pSetupData->OwnerOrganization) > LineLength)
2688 wcscpy(pSetupData->OwnerOrganization, szValue);
2693 if (
ARRAYSIZE(pSetupData->ComputerName) > LineLength)
2695 wcscpy(pSetupData->ComputerName, szValue);
2700 if (
ARRAYSIZE(pSetupData->AdminPassword) > LineLength)
2702 wcscpy(pSetupData->AdminPassword, szValue);
2707 pSetupData->TimeZoneIndex =
_wtoi(szValue);
2711 pSetupData->DisableAutoDaylightTimeSet =
_wtoi(szValue);
2716 pSetupData->DisableGeckoInst =
TRUE;
2718 pSetupData->DisableGeckoInst =
FALSE;
2757 iValue =
_wtoi(szValue);
2790 L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce",
2795 DPRINT1(
"Error: failed to open HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce\n");
2845 DPRINT1(
"Error: failed to open HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment\n");
2907 return (
_wcsicmp(szPath1, szPath2) == 0);
2917 DWORD dwPathLength = 0;
2918 DWORD dwNewLength = 0;
2924 L"Installation Sources",
2932 dwPathLength == 0 ||
2933 dwPathLength %
sizeof(
WCHAR) != 0)
2940 dwNewLength = dwPathLength + (
wcslen(lpPath) + 1) *
sizeof(
WCHAR);
2949 L"Installation Sources",
2976 if (dwPathLength == 0)
2978 dwNewLength = (
wcslen(lpPath) + 1 + 1) *
sizeof(
WCHAR);
2991 L"Installation Sources",
3066 swprintf(szValue,
L"\"%s\"", pSetupData->SourcePath);
3078 L"Software\\Microsoft\\Windows NT\\CurrentVersion",
3090 L"Software\\Microsoft\\Windows\\CurrentVersion\\Setup",
3105 (
LPBYTE)pSetupData->SourcePath,
3106 (
wcslen(pSetupData->SourcePath) + 1) *
sizeof(
WCHAR));
3109 L"ServicePackSourcePath",
3112 (
LPBYTE)pSetupData->SourcePath,
3113 (
wcslen(pSetupData->SourcePath) + 1) *
sizeof(
WCHAR));
3148 DWORD dwPageCount = 10, dwNetworkPageCount = 0;
3150 LogItem(
L"BEGIN_SECTION",
L"InstallWizard");
3156 if (pSetupData ==
NULL)
3160 L"Setup failed to allocate global data!",
3168 if (hNetShell !=
NULL)
3170 DPRINT(
"Netshell.dll loaded!\n");
3173 "NetSetupRequestWizardPages");
3176 pfn(&dwNetworkPageCount,
NULL,
NULL);
3177 dwPageCount += dwNetworkPageCount;
3181 DPRINT(
"PageCount: %lu\n", dwPageCount);
3190 L"Setup failed to allocate page array!",
3203 psp.lParam = (
LPARAM)pSetupData;
3209 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3217 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3225 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3233 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3241 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3249 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3257 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3269 pfn(&dwNetworkPageCount, &phpage[nPages], pSetupData);
3270 nPages += dwNetworkPageCount;
3274 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3287 ASSERT(nPages == dwPageCount);
3291 psh.dwFlags = PSH_WIZARD97 | PSH_WATERMARK | PSH_HEADER |
PSH_MODELESS;
3293 psh.hwndParent =
NULL;
3294 psh.nPages = nPages;
3296 psh.phpage = phpage;
3327 if (hNetShell !=
NULL)
3330 if (pSetupData !=
NULL)
3333 LogItem(
L"END_SECTION",
L"InstallWizard");
PRTL_UNICODE_STRING_BUFFER Path
static VOID ErrorMessage(_In_ DWORD dwErrorCode, _In_opt_ PCWSTR pszMsg,...)
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)
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
#define ERROR_NOT_ENOUGH_MEMORY
#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)
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)
DWORD WINAPI GetTickCount(VOID)
VOID WINAPI GetLocalTime(OUT LPSYSTEMTIME lpSystemTime)
BOOL WINAPI WritePrivateProfileStringW(LPCWSTR section, LPCWSTR entry, LPCWSTR string, 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)
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)
BOOL RegisterTypeLibraries(HINF hinf, LPCWSTR szSection)
#define IDS_THEMESELECTIONTITLE
#define IDC_OWNERORGANIZATION
#define IDS_LOCALESUBTITLE
#define IDC_ADMINPASSWORD2
#define IDS_PRODUCTWORKSTATIONNAME
#define IDS_DLLINSTALL_FAILED
#define IDS_REGSVR_FAILED
#define IDS_WZD_COMPUTERNAME
#define IDS_LOADLIBRARY_FAILED
#define IDS_OWNERSUBTITLE
#define IDS_GETPROCADDR_FAILED
#define IDS_WZD_PASSWORDMATCH
#define IDS_COMPUTERSUBTITLE
#define IDC_PRODUCT_OPTIONS
#define IDS_WZD_PASSWORDCHAR
#define IDC_PRODUCT_DESCRIPTION
#define IDS_DATETIMESUBTITLE
#define IDS_PRODUCTWORKSTATIONINFO
#define IDS_THEMESELECTIONSUBTITLE
#define IDS_REASON_UNKNOWN
#define IDS_PRODUCTSERVERNAME
#define IDS_COMPUTERTITLE
#define IDS_WZD_LOCALTIME
#define IDS_MACHINE_OWNER_NAME
#define IDS_WZD_SETCOMPUTERNAME
#define IDS_WZD_PASSWORDEMPTY
#define IDC_ADMINPASSWORD1
#define IDS_PRODUCTSUBTITLE
#define IDS_PRODUCTSERVERINFO
#define IDS_UNKNOWN_ERROR
#define IDS_DATETIMETITLE
#define IDS_ADMINISTRATOR_NAME
NTSTATUS WINAPI SetAccountsDomainSid(PSID DomainSid, LPCWSTR DomainName)
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
void __cdecl srand(_In_ unsigned int _Seed)
_CRTIMP wchar_t *__cdecl _ultow(_In_ unsigned long _Value, _Pre_notnull_ _Post_z_ wchar_t *_Dest, _In_ int _Radix)
_Check_return_ int __cdecl rand(void)
_Check_return_ _CRTIMP int __cdecl _wtoi(_In_z_ const wchar_t *_Str)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
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
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
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 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)
#define _SEH2_GetExceptionCode()
#define _SEH2_EXCEPT(...)
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_CRTIMP wchar_t *__cdecl wcscat(_Inout_updates_z_(_String_length_(_Dest)+_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
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
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)
base of all file and directory entries
WCHAR lfFaceName[LF_FACESIZE]
DWORD ReportAsWorkstation
struct _TIMEZONE_ENTRY * TimeZoneListHead
PRODUCT_OPTION ProductOption
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 const WCHAR * s_ExplorerSoundEvents[][2]
static INT_PTR CALLBACK GplDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static const PRODUCT_OPTION_DATA s_ProductOptionData[]
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[]
struct _ITEMSDATA * PITEMSDATA
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 BOOL DoWriteProductOption(PRODUCT_OPTION nOption)
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)
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 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[]
struct _REGISTRATIONNOTIFY * PREGISTRATIONNOTIFY
static VOID DestroyTimeZoneList(PSETUPDATA SetupData)
static const WCHAR * s_DefaultSoundEvents[][2]
static BOOL GetLocalSystemTime(HWND hwnd, PSETUPDATA SetupData)
static LONG RetrieveTimeZone(IN HKEY hZoneKey, IN PVOID Context)
static struct ThemeInfo Themes[]
DWORD(WINAPI * PFNREQUESTWIZARDPAGES)(PDWORD, HPROPSHEETPAGE *, PSETUPDATA)
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 void OnChooseOption(HWND hwndDlg, PRODUCT_OPTION nOption)
static INT_PTR CALLBACK AckPageDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static DWORD CALLBACK ItemCompletionThread(LPVOID Parameter)
static BOOL RunControlPanelApplet(HWND hwnd, PCWSTR pwszCPLParameters)
static VOID SetInstallationCompleted(VOID)
static VOID AddInstallationSource(IN HKEY hKey, IN LPWSTR lpPath)
struct _TIMEZONE_ENTRY * PTIMEZONE_ENTRY
static const WCHAR s_szExplorerSoundEvents[]
VOID ProcessUnattendSection(IN OUT PSETUPDATA pSetupData)
struct _TIMEZONE_ENTRY TIMEZONE_ENTRY
static const WCHAR s_szProductOptions[]
static const WCHAR s_szControlWindows[]
struct _REGISTRATIONNOTIFY REGISTRATIONNOTIFY
static VOID ShowTimeZoneList(HWND hwnd, PSETUPDATA SetupData, DWORD dwEntryIndex)
struct _ITEMSDATA ITEMSDATA
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)
static const WCHAR s_szDefaultSoundEvents[]
#define LogItem(lpTag, lpMessageText...)
enum _PRODUCT_OPTION PRODUCT_OPTION
@ PRODUCT_OPTION_WORKSTATION
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)
#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)
DWORD WINAPI GetLastError(void)
#define FORMAT_MESSAGE_FROM_SYSTEM
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
#define MAX_COMPUTERNAME_LENGTH
#define ListBox_AddString(hwndCtl, lpsz)
#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)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
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 *)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
#define SendDlgItemMessage
BOOL WINAPI DestroyWindow(_In_ HWND)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
_Inout_opt_ PVOID Parameter