127 HRSRC GplTextResource;
138 if (
NULL == GplTextResource)
153 if (
NULL == GplTextMem)
159 if (
NULL == GplTextLocked)
165 GplText[
Size] =
'\0';
229 (
WPARAM)pSetupData->hTitleFont,
282 PWCHAR End, CurrentProject;
283 INT ProjectsSize, ProjectsCount;
300 if (
NULL == Projects)
305 if (0 == ProjectsCount)
310 if (ProjectsCount < ProjectsSize - 1)
318 CurrentProject = Projects;
319 while (*CurrentProject !=
L'\0')
321 End =
wcschr(CurrentProject,
L'\n');
329 CurrentProject = End + 1;
333 CurrentProject +=
wcslen(CurrentProject);
399 {
L"Terminal Server\0",
L"ServerNT", 0, 0x200, 0 },
400 {
L"\0",
L"WinNT", 1, 0x300, 1 }
405 {
L".Default",
L"%SystemRoot%\\Media\\ReactOS_Default.wav" },
406 {
L"AppGPFault",
L"" },
408 {
L"CriticalBatteryAlarm",
L"%SystemRoot%\\Media\\ReactOS_Battery_Critical.wav" },
409 {
L"DeviceConnect",
L"%SystemRoot%\\Media\\ReactOS_Hardware_Insert.wav" },
410 {
L"DeviceDisconnect",
L"%SystemRoot%\\Media\\ReactOS_Hardware_Remove.wav" },
411 {
L"DeviceFail",
L"%SystemRoot%\\Media\\ReactOS_Hardware_Fail.wav" },
412 {
L"LowBatteryAlarm",
L"%SystemRoot%\\Media\\ReactOS_Battery_Low.wav" },
413 {
L"MailBeep",
L"%SystemRoot%\\Media\\ReactOS_Notify.wav" },
414 {
L"Maximize",
L"%SystemRoot%\\Media\\ReactOS_Restore.wav" },
415 {
L"MenuCommand",
L"%SystemRoot%\\Media\\ReactOS_Menu_Command.wav" },
416 {
L"MenuPopup",
L"" },
417 {
L"Minimize",
L"%SystemRoot%\\Media\\ReactOS_Minimize.wav" },
419 {
L"PrintComplete",
L"%SystemRoot%\\Media\\ReactOS_Print_Complete.wav" },
420 {
L"RestoreDown",
L"" },
421 {
L"RestoreUp",
L"" },
422 {
L"SystemAsterisk",
L"%SystemRoot%\\Media\\ReactOS_Ding.wav" },
423 {
L"SystemExclamation",
L"%SystemRoot%\\Media\\ReactOS_Exclamation.wav" },
424 {
L"SystemExit",
L"%SystemRoot%\\Media\\ReactOS_Shutdown.wav" },
425 {
L"SystemHand",
L"%SystemRoot%\\Media\\ReactOS_Critical_Stop.wav" },
426 {
L"SystemNotification",
L"%SystemRoot%\\Media\\ReactOS_Balloon.wav" },
427 {
L"SystemQuestion",
L"%SystemRoot%\\Media\\ReactOS_Ding.wav" },
428 {
L"SystemStart",
L"%SystemRoot%\\Media\\ReactOS_Startup.wav" },
429 {
L"WindowsLogoff",
L"%SystemRoot%\\Media\\ReactOS_LogOff.wav" }
435 {
L"EmptyRecycleBin",
L"%SystemRoot%\\Media\\ReactOS_Recycle.wav" },
436 {
L"Navigating",
L"%SystemRoot%\\Media\\ReactOS_Start.wav" }
445 HKEY hRootKey, hEventKey, hDefaultKey;
456 DPRINT1(
"RegOpenKeyExW failed\n");
528 DWORD dwValue, cbData;
536 DPRINT1(
"RegOpenKeyExW failed\n");
541 pszData =
pData->ProductSuite;
546 DPRINT1(
"RegSetValueExW failed\n");
551 pszData =
pData->ProductType;
556 DPRINT1(
"RegSetValueExW failed\n");
566 DPRINT1(
"RegOpenKeyExW failed\n");
571 dwValue =
pData->ReportAsWorkstation;
572 cbData =
sizeof(dwValue);
576 DPRINT1(
"RegSetValueExW failed\n");
586 DPRINT1(
"RegOpenKeyExW failed\n");
591 dwValue =
pData->CSDVersion;
592 cbData =
sizeof(dwValue);
596 DPRINT1(
"RegSetValueExW failed\n");
606 DPRINT1(
"RegOpenKeyExW failed\n");
611 dwValue =
pData->LogonType;
612 cbData =
sizeof(dwValue);
616 DPRINT1(
"RegSetValueExW failed\n");
663 WCHAR szText[64], szDefault[64];
753 WCHAR * OwnerOrganization)
759 L"Software\\Microsoft\\Windows NT\\CurrentVersion",
783 L"RegisteredOrganization",
786 (
LPBYTE)OwnerOrganization,
800 WCHAR OwnerOrganization[51];
802 WCHAR ErrorName[256];
864 wcscpy(ErrorName,
L"Setup cannot continue until you enter your name.");
874 OwnerOrganization[0] = 0;
906 WCHAR ErrorComputerName[256];
921 wcscpy(ErrorComputerName,
L"Setup failed to set the computer name.");
940 L"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters",
958 DPRINT1(
"RegSetValueEx(\"Hostname\") failed (%08lX)\n", lError);
965 DPRINT1(
"RegCreateKeyExW for Tcpip\\Parameters failed (%08lX)\n", lError);
976 WCHAR szAdministratorName[256];
985 wcscpy(szAdministratorName,
L"Administrator");
989 L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon",
997 L"DefaultDomainName",
1004 DPRINT1(
"RegSetValueEx(\"DefaultDomainName\") failed!\n");
1011 (
LPBYTE)szAdministratorName,
1012 (
wcslen(szAdministratorName)+ 1) *
sizeof(
WCHAR));
1015 DPRINT1(
"RegSetValueEx(\"DefaultUserName\") failed!\n");
1028 static const WCHAR Chars[] =
L"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
1029 static const unsigned cChars =
sizeof(Chars) /
sizeof(
WCHAR) - 1;
1037 for (
i = 8;
i < 15;
i++)
1050 WCHAR Password1[128];
1051 WCHAR Password2[128];
1054 WCHAR EmptyComputerName[256], NotMatchPassword[256], WrongPassword[256];
1084 if (pSetupData->UnattendSetup)
1120 wcscpy(EmptyComputerName,
L"Setup cannot continue until you enter the name of your computer.");
1138#ifdef PASSWORDS_MANDATORY
1146 wcscpy(EmptyPassword,
L"You must enter a password !");
1157 if (
wcscmp(Password1, Password2))
1162 wcscpy(NotMatchPassword,
L"The passwords you entered do not match. Please enter the desired password again.");
1178 wcscpy(WrongPassword,
L"The password you entered contains invalid characters. Please enter a cleaned password.");
1192 pSetupData->UnattendSetup =
FALSE;
1212 WCHAR CurLocale[256] =
L"";
1214 WCHAR ResText[256] =
L"";
1215 WCHAR LocaleText[256 * 2];
1231 WCHAR LayoutPath[256];
1233 WCHAR SpecialId[5] =
L"";
1234 WCHAR ResText[256] =
L"";
1249 LayoutSpecial =
TRUE;
1252#define MAX_LAYOUTS_PER_LANGID 0x10000
1271 if (!LayoutSpecial ||
1299#undef MAX_LAYOUTS_PER_LANGID
1317 if (!pwszCPLParameters)
1323 ZeroMemory(&StartupInfo,
sizeof(StartupInfo));
1324 StartupInfo.
cb =
sizeof(StartupInfo);
1325 ZeroMemory(&ProcessInformation,
sizeof(ProcessInformation));
1339 &ProcessInformation))
1393 else if (
_wcsicmp(pszExt,
L".msstyles") == 0)
1398 DPRINT1(
"EnableVisualTheme(): Unknown file '%S'\n", ThemeFile);
1403 DPRINT1(
"Applying visual %s '%S'\n",
1405 ThemeFile ? ThemeFile :
L"(Classic)");
1421 szStyleFile,
_countof(szStyleFile), ThemeFile) && *szStyleFile)
1424 ThemeFile = szStyleFile;
1433 DPRINT1(
"--> Applying visual style '%S'\n",
1434 ThemeFile ? ThemeFile :
L"(Classic)");
1439 WCHAR wszParams[1024];
1441 PCWSTR format =
L"desk.cpl,,2 /Action:ActivateMSTheme /file:\"%s\"";
1585 ULONG DescriptionSize;
1586 ULONG StandardNameSize;
1587 ULONG DaylightNameSize;
1595 DescriptionSize =
sizeof(
Entry->Description);
1596 StandardNameSize =
sizeof(
Entry->StandardName);
1597 DaylightNameSize =
sizeof(
Entry->DaylightName);
1601 &
Entry->TimezoneInfo,
1604 Entry->StandardName,
1606 Entry->DaylightName,
1625 if (Current !=
NULL)
1639 Entry->Next = Current;
1702 if (dwEntryIndex != 0 && dwEntryIndex ==
Entry->Index)
1740 Entry->StandardName);
1742 Entry->DaylightName);
1744 TimeZoneInformation.
Bias =
Entry->TimezoneInfo.Bias;
1749 &
Entry->TimezoneInfo.StandardDate,
1752 &
Entry->TimezoneInfo.DaylightDate,
1816 WCHAR ErrorLocalTime[256];
1833 wcscpy(ErrorLocalTime,
L"Setup was unable to set the local time.");
1995 WCHAR DisplayName[100] = {0};
2007 lvi.pszText = DisplayName;
2029 int iTheme = pnmv->
iItem;
2030 DPRINT1(
"Selected theme: %u\n",
Themes[iTheme].DisplayName);
2032 if (
Themes[iTheme].ThemeFile)
2101 DPRINT(
"Received SPFILENOTIFY_STARTREGISTRATION notification for %S\n",
2110 DPRINT(
"Received SPFILENOTIFY_ENDREGISTRATION notification for %S\n",
2175 WCHAR SectionName[512];
2181 RegistrationData.
hwndDlg = pItemsData->hwndDlg;
2187 DPRINT1(
"No RegistrationPhase2 section found\n");
2195 DPRINT1(
"Unable to retrieve section name\n");
2200 DPRINT(
"SectionName %S DllCount %ld\n", SectionName, DllCount);
2208 RegistrationData.
pNotify = pNotify;
2214 L"RegistrationPhase2",
2229 DPRINT(
"Catching exception\n");
2244 WCHAR SectionName[512];
2256 DPRINT1(
"No RegistrationPhase2 section found\n");
2264 DPRINT1(
"Unable to retrieve section name\n");
2274 DPRINT(
"Register Components: %ld Steps\n", Steps);
2282 DPRINT(
"Register Components: done\n");
2297 hwndDlg = pItemsData->
hwndDlg;
2325 HANDLE hCompletionThread;
2329 if (pItemsData ==
NULL)
2332 pItemsData->
hwndDlg = hwndDlg;
2340 if (hCompletionThread ==
NULL)
2360 WCHAR UnknownError[84];
2370 wcscpy(UnknownError,
L"Unknown error");
2373 _ultow(LastError, UnknownError +
wcslen(UnknownError), 10);
2500 DPRINT(
"PM_STEP_START\n");
2517 DPRINT(
"PM_ITEMS_DONE\n");
2535 DWORD InProgress = 0;
2549 L"Software\\Microsoft\\Windows NT\\CurrentVersion",
2665 WCHAR wszDrives[512];
2666 WCHAR wszNTPath[512];
2673 if (cchDrives == 0 || cchDrives >=
_countof(wszDrives))
2680 for (pwszDrive = wszDrives; *pwszDrive; pwszDrive +=
wcslen(pwszDrive) + 1)
2687 pwszDrive[2] =
L'\\';
2692 wsprintf(wszBuf,
L"Testing '%s' --> '%s' %s a CD",
2693 pwszDrive, wszNTPath,
2698 if (!
_wcsicmp(wszNTPath, pwszNTPath))
2701 wcscpy(pwszPath, pwszDrive);
2704 wsprintf(wszBuf,
L"GetInstallSourceWin32: %s", pwszPath);
2728 L"UnattendSetupEnabled",
2747 DPRINT(
"Unattend setup was disabled by UnattendSetupEnabled key.\n");
2751 pSetupData->UnattendSetup =
TRUE;
2786 if (
ARRAYSIZE(pSetupData->OwnerName) > LineLength)
2788 wcscpy(pSetupData->OwnerName, szValue);
2793 if (
ARRAYSIZE(pSetupData->OwnerOrganization) > LineLength)
2795 wcscpy(pSetupData->OwnerOrganization, szValue);
2800 if (
ARRAYSIZE(pSetupData->ComputerName) > LineLength)
2802 wcscpy(pSetupData->ComputerName, szValue);
2807 if (
ARRAYSIZE(pSetupData->AdminPassword) > LineLength)
2809 wcscpy(pSetupData->AdminPassword, szValue);
2814 pSetupData->TimeZoneIndex =
_wtoi(szValue);
2818 pSetupData->DisableAutoDaylightTimeSet =
_wtoi(szValue);
2823 pSetupData->DisableGeckoInst =
TRUE;
2825 pSetupData->DisableGeckoInst =
FALSE;
2864 iValue =
_wtoi(szValue);
2897 L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce",
2902 DPRINT1(
"Error: failed to open HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce\n");
2952 DPRINT1(
"Error: failed to open HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment\n");
3014 return (
_wcsicmp(szPath1, szPath2) == 0);
3024 DWORD dwPathLength = 0;
3025 DWORD dwNewLength = 0;
3031 L"Installation Sources",
3039 dwPathLength == 0 ||
3040 dwPathLength %
sizeof(
WCHAR) != 0)
3047 dwNewLength = dwPathLength + (
wcslen(lpPath) + 1) *
sizeof(
WCHAR);
3056 L"Installation Sources",
3083 if (dwPathLength == 0)
3085 dwNewLength = (
wcslen(lpPath) + 1 + 1) *
sizeof(
WCHAR);
3098 L"Installation Sources",
3173 swprintf(szValue,
L"\"%s\"", pSetupData->SourcePath);
3185 L"Software\\Microsoft\\Windows NT\\CurrentVersion",
3197 L"Software\\Microsoft\\Windows\\CurrentVersion\\Setup",
3212 (
LPBYTE)pSetupData->SourcePath,
3213 (
wcslen(pSetupData->SourcePath) + 1) *
sizeof(
WCHAR));
3216 L"ServicePackSourcePath",
3219 (
LPBYTE)pSetupData->SourcePath,
3220 (
wcslen(pSetupData->SourcePath) + 1) *
sizeof(
WCHAR));
3255 DWORD dwPageCount = 10, dwNetworkPageCount = 0;
3257 LogItem(
L"BEGIN_SECTION",
L"InstallWizard");
3263 if (pSetupData ==
NULL)
3267 L"Setup failed to allocate global data!",
3275 if (hNetShell !=
NULL)
3277 DPRINT(
"Netshell.dll loaded!\n");
3280 "NetSetupRequestWizardPages");
3283 pfn(&dwNetworkPageCount,
NULL,
NULL);
3284 dwPageCount += dwNetworkPageCount;
3288 DPRINT(
"PageCount: %lu\n", dwPageCount);
3297 L"Setup failed to allocate page array!",
3310 psp.lParam = (
LPARAM)pSetupData;
3316 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3324 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3332 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3340 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3348 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3356 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3364 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3376 pfn(&dwNetworkPageCount, &phpage[nPages], pSetupData);
3377 nPages += dwNetworkPageCount;
3381 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
3394 ASSERT(nPages == dwPageCount);
3398 psh.dwFlags = PSH_WIZARD97 | PSH_WATERMARK | PSH_HEADER |
PSH_MODELESS;
3400 psh.hwndParent =
NULL;
3401 psh.nPages = nPages;
3403 psh.phpage = phpage;
3434 if (hNetShell !=
NULL)
3437 if (pSetupData !=
NULL)
3440 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,...)
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
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)
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)
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)
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
struct _REGISTRATIONNOTIFY * PREGISTRATIONNOTIFY
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_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)
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)
#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
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 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)
#define _SEH2_GetExceptionCode()
#define _SEH2_EXCEPT(...)
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
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
PREGISTRATIONNOTIFY pNotify
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 VOID RegisterComponents(PITEMSDATA pItemsData)
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[]
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)
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 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 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[]
static VOID ShowTimeZoneList(HWND hwnd, PSETUPDATA SetupData, DWORD dwEntryIndex)
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)
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)
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