47#define InstallVolume (InstallPartition->Volume)
52#define SystemVolume (SystemPartition->Volume)
92 ncm.cbSize =
sizeof(NONCLIENTMETRICS);
95 LogFont = ncm.lfMessageFont;
121 WCHAR StaticBuffer[256];
168 if (MsgLen >=
_countof(StaticBuffer))
267 WCHAR ResBuffer[256];
314 (
WPARAM)pSetupData->hTitleFont,
373 if (pSetupData->NtOsInstallsList &&
483 IN const INT* pColsWidth,
484 IN const INT* pColsAlign,
493 lvC.pszText = szText;
496 for (
i = 0;
i < nNumOfColumns;
i++)
499 lvC.cx = pColsWidth[
i];
500 lvC.fmt = pColsAlign[
i];
526 WCHAR CurrentItemText[256];
534 if (GetEntryDescriptionProc)
536 GetEntryDescriptionProc(ListEntry,
546 if (ListEntry ==
List->CurrentEntry)
547 CurrentEntryIndex =
Index;
582 INT CurrentEntryIndex = 0;
586 WCHAR CurrentItemText[256];
594 if (!AddEntryItemProc)
603 if (ListEntry ==
List->CurrentEntry)
604 CurrentEntryIndex = lvItem.iItem;
673 plvItem->iSubItem = 0;
691 plvItem->iSubItem = 1;
692 plvItem->pszText =
Buffer;
695 plvItem->iSubItem = 2;
701#define IDS_LIST_COLUMN_FIRST IDS_INSTALLATION_NAME
702#define IDS_LIST_COLUMN_LAST IDS_INSTALLATION_VENDOR
704#define MAX_LIST_COLUMNS (IDS_LIST_COLUMN_LAST - IDS_LIST_COLUMN_FIRST + 1)
1005 static WCHAR szOrgWizNextBtnText[260];
1042 WCHAR CurrentItemText[256];
1052 L"Upgrading/Repairing \"%s\" from \"%s\"",
1059 L"New ReactOS installation");
1090 L"%c: \x2014 Harddisk %lu, Partition %lu",
1104 L"Harddisk %lu, Partition %lu",
1119 szOrgWizNextBtnText,
ARRAYSIZE(szOrgWizNextBtnText));
1194 DPRINT(
"%lu percent completed\n", *Percent);
1214 DPRINT(
"FormatEx was unable to complete successfully.\n\n");
1259 switch (FormatStatus)
1400 else if (nRet ==
IDOK)
1440 else if (nRet ==
IDOK)
1484 L"Formatting volume %c: (%s) in %s...",
1492 L"Formatting volume %s in %s...",
1549 L"Checking volume %c: (%s)...",
1556 L"Checking volume %s...",
1601 PCWSTR SrcFileName, DstFileName;
1638 if (DstFileName) ++DstFileName;
1639 else DstFileName = FilePathInfo->
Target;
1651 if (SrcFileName) ++SrcFileName;
1652 else SrcFileName = FilePathInfo->
Source;
1655 if (DstFileName) ++DstFileName;
1656 else DstFileName = FilePathInfo->
Target;
1659 if (!
wcsicmp(SrcFileName, DstFileName))
1672 if (DstFileName) ++DstFileName;
1673 else DstFileName = FilePathInfo->
Target;
1686 DPRINT1(
"An error happened while trying to copy file '%S' (error 0x%08lx), skipping it...\n",
1699 DPRINT1(
"CHECKPOINT:HALF_COPIED\n");
1714 static const UINT StringIDs[] =
1726 if (RegStatus <
_countof(StringIDs))
2138 (
WPARAM)pSetupData->hTitleFont,
2201 if (!pSetupData->PartitionList)
2203 DPRINT1(
"Could not enumerate available disks; failing installation\n");
2208 if (!pSetupData->NtOsInstallsList)
2209 DPRINT1(
"Failed to get a list of NTOS installations; continue installation...\n");
2217 pSetupData->USetupData.LanguageList =
CreateLanguageList(pSetupData->USetupData.SetupInf, pSetupData->DefaultLanguage);
2226 _countof(pSetupData->DefaultLanguage),
2227 L"%08lx", LocaleID);
2230 _countof(pSetupData->USetupData.LocaleID),
2231 L"%08lx", LocaleID);
2235 pSetupData->SelectedLanguageId = pSetupData->DefaultLanguage;
2236 wcscpy(pSetupData->DefaultLanguage, pSetupData->USetupData.LocaleID);
2237 pSetupData->USetupData.LanguageId = (
LANGID)(
wcstol(pSetupData->SelectedLanguageId,
NULL, 16) & 0xFFFF);
2240 pSetupData->SelectedLanguageId,
2241 pSetupData->DefaultKBLayout);
2254 PGENERIC_LIST LanguageList = pSetupData->USetupData.LanguageList;
2255 PGENERIC_LIST LayoutList = pSetupData->USetupData.LayoutList;
2276 if (!
wcsicmp(pSetupData->DefaultKBLayout, pszLayoutId))
2278 DPRINT(
"Found %S in LayoutList\n", pszLayoutId);
2293 MappingList->MappingsCount = 0;
2310 MappingList->MappingsCount = 0;
2327 PCWSTR pwszNtPathToMap = pwszNTPath;
2331 WCHAR wszDrives[512];
2345 for (ListEntry = MappingList->List.
Flink;
2346 ListEntry != &MappingList->List;
2347 ListEntry = ListEntry->
Flink)
2360 pwszDrive =
Entry->Win32Path;
2361 pwszRemaining = pwszNTPath +
wcslen(
Entry->NtPath);
2372 if (cchDrives == 0 || cchDrives >=
_countof(wszDrives))
2375 DPRINT1(
"ConvertNtPathToWin32Path: GetLogicalDriveStringsW failed\n");
2383 for (pwszDrive = wszDrives; *pwszDrive; pwszDrive +=
wcslen(pwszDrive) + 1)
2388 pwszDrive[2] =
L'\\';
2390 DPRINT(
"Testing '%S' --> '%S'\n", pwszDrive, wszNTPath);
2393 FoundDrive = !
_wcsnicmp(pwszNtPathToMap, wszNTPath,
wcslen(wszNTPath));
2422 if (pwszDrive[0] !=
ptr[1])
2424 DPRINT1(
"Peculiar: expected network share drive letter %C different from actual one %C\n",
2425 pwszDrive[0],
ptr[1]);
2431 while (*ptr2 ==
L'\\') ++ptr2;
2436 FoundDrive = !
_wcsnicmp(pwszNtPathToMap, wszNTPath,
wcslen(wszNTPath));
2445 if (pwszNtPathToMap == pwszNTPath)
2447 ASSERT(!RetryOnce && pwszNTPath != TargetPath);
2448 pwszRemaining = pwszNTPath +
wcslen(wszNTPath);
2460 DPRINT1(
"ConvertNtPathToWin32Path: Cannot allocate memory\n");
2464 pwszNTPath, pwszRemaining - pwszNTPath);
2469 MappingList->MappingsCount++;
2472 pwszDrive =
Entry->Win32Path;
2497 if (!RetryOnce && !FoundDrive)
2507 if (
swscanf(pwszNTPath,
L"\\Device\\Harddisk%lu\\Partition%lu%n",
2515 RtlInitEmptyUnicodeString(&SymLink, (
PWCHAR)pwszNTPath,
Length *
sizeof(
WCHAR));
2529 DPRINT1(
"ConvertNtPathToWin32Path: NtOpenSymbolicLinkObject(%wZ) failed, Status 0x%08lx\n",
2535 RtlInitEmptyUnicodeString(&
Target, TargetPath,
sizeof(TargetPath));
2545 DPRINT1(
"ConvertNtPathToWin32Path: NtQuerySymbolicLinkObject(%wZ) failed, Status 0x%08lx\n",
2551 pwszRemaining = pwszNTPath +
Length;
2552 pwszNtPathToMap = TargetPath;
2568 DPRINT(
"ConvertNtPathToWin32Path: %S\n", pwszPath);
2579 IN BOOL bEnablePrivilege)
2592 &
tp.Privileges[0].Luid);
2595 tp.PrivilegeCount = 1;
2612 DPRINT(
"HotkeyThread start\n");
2650 DPRINT(
"HotkeyThread terminate\n");
2711 iccx.
dwSize =
sizeof(iccx);
2728 psp.hInstance =
hInst;
2736 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
2739 psp.hInstance =
hInst;
2747 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
2750 psp.hInstance =
hInst;
2758 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
2761 psp.hInstance =
hInst;
2769 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
2772 psp.hInstance =
hInst;
2780 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
2783 psp.hInstance =
hInst;
2792 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
2795 psp.hInstance =
hInst;
2804 psp.hInstance =
hInst;
2812 psh.dwFlags = PSH_WIZARD97 | PSH_WATERMARK | PSH_HEADER;
2813 psh.hInstance =
hInst;
2814 psh.hwndParent =
NULL;
2815 psh.nPages = nPages;
static HWND hWndList[5+1]
BOOLEAN DoFileCopy(IN OUT PUSETUP_DATA pSetupData, IN PSP_FILE_CALLBACK_W MsgHandler, IN PVOID Context OPTIONAL)
BOOLEAN PrepareFileCopy(IN OUT PUSETUP_DATA pSetupData, IN PFILE_COPY_STATUS_ROUTINE StatusRoutine OPTIONAL)
PGENERIC_LIST CreateKeyboardDriverList(IN HINF InfFile)
PGENERIC_LIST CreateComputerTypeList(IN HINF InfFile)
PGENERIC_LIST CreateDisplayDriverList(IN HINF InfFile)
PGENERIC_LIST CreateKeyboardLayoutList(IN HINF InfFile, IN PCWSTR LanguageId, OUT PWSTR DefaultKBLayout)
PGENERIC_LIST CreateLanguageList(IN HINF InfFile, OUT PWSTR DefaultLanguage)
struct _GENENTRY * PGENENTRY
VOID __cdecl SetWindowResPrintfW(_In_ HWND hWnd, _In_opt_ HINSTANCE hInstance, _In_ UINT uID,...)
static HFONT CreateTitleFont(VOID)
static VOID CenterWindow(HWND hWnd)
VOID PropSheet_SetCloseCancel(_In_ HWND hWndWiz, _In_ BOOL Enable)
Enables or disables the Cancel and the Close title-bar property-sheet window buttons.
static INT_PTR CALLBACK ProcessDlgProc(IN HWND hwndDlg, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lParam)
struct _FSVOL_CONTEXT FSVOL_CONTEXT
static VOID __cdecl RegistryStatus(IN REGISTRY_STATUS RegStatus,...)
PVOID GetSelectedListViewItem(IN HWND hWndList)
static FSVOL_OP CALLBACK FsVolCallback(_In_opt_ PVOID Context, _In_ FSVOLNOTIFY FormatStatus, _In_ ULONG_PTR Param1, _In_ ULONG_PTR Param2)
struct _COPYCONTEXT * PCOPYCONTEXT
static INT_PTR CALLBACK TypeDlgProc(IN HWND hwndDlg, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lParam)
static const INT column_widths[MAX_LIST_COLUMNS]
static INT_PTR CALLBACK RestartDlgProc(IN HWND hwndDlg, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lParam)
static BOOLEAN NTAPI FormatCallback(_In_ CALLBACKCOMMAND Command, _In_ ULONG Modifier, _In_ PVOID Argument)
BOOL ConvertNtPathToWin32Path(IN OUT PNT_WIN32_PATH_MAPPING_LIST MappingList, OUT PWSTR pwszPath, IN DWORD cchPathMax, IN PCWSTR pwszNTPath)
BOOL LoadSetupData(IN OUT PSETUPDATA pSetupData)
static const INT column_alignment[MAX_LIST_COLUMNS]
static INT_PTR CALLBACK UpgradeRepairDlgProc(IN HWND hwndDlg, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lParam)
PPARTENTRY InstallPartition
PVOID GetSelectedComboListItem(IN HWND hWndList)
VOID InitGenericListView(IN HWND hWndList, IN PGENERIC_LIST List, IN PADD_ENTRY_ITEM AddEntryItemProc)
INT __cdecl DisplayError(_In_opt_ HWND hWnd, _In_ UINT uIDTitle, _In_ UINT uIDMessage,...)
VOID SetWindowResPrintfVW(_In_ HWND hWnd, _In_opt_ HINSTANCE hInstance, _In_ UINT uID, _In_ va_list args)
struct _FSVOL_CONTEXT * PFSVOL_CONTEXT
VOID FreeNtToWin32PathMappingList(IN OUT PNT_WIN32_PATH_MAPPING_LIST MappingList)
BOOL CreateListViewColumns(IN HINSTANCE hInstance, IN HWND hWndListView, IN const UINT *pIDs, IN const INT *pColsWidth, IN const INT *pColsAlign, IN UINT nNumOfColumns)
static VOID NTAPI GetSettingDescription(IN PGENERIC_LIST_ENTRY Entry, OUT PWSTR Buffer, IN SIZE_T cchBufferSize)
#define IDS_LIST_COLUMN_FIRST
VOID(NTAPI * PADD_ENTRY_ITEM)(IN HWND hWndList, IN LVITEM *plvItem, IN PGENERIC_LIST_ENTRY Entry, IN OUT PWSTR Buffer, IN SIZE_T cchBufferSize)
static INT_PTR CALLBACK DeviceDlgProc(IN HWND hwndDlg, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lParam)
static INT_PTR CALLBACK SummaryDlgProc(IN HWND hwndDlg, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lParam)
INT __cdecl DisplayMessage(_In_opt_ HWND hWnd, _In_ UINT uType, _In_opt_ PCWSTR pszTitle, _In_opt_ PCWSTR pszFormatMessage,...)
VOID InitNtToWin32PathMappingList(IN OUT PNT_WIN32_PATH_MAPPING_LIST MappingList)
VOID(NTAPI * PGET_ENTRY_DESCRIPTION)(IN PGENERIC_LIST_ENTRY Entry, OUT PWSTR Buffer, IN SIZE_T cchBufferSize)
PPARTENTRY SystemPartition
VOID SetWindowResTextW(_In_ HWND hWnd, _In_opt_ HINSTANCE hInstance, _In_ UINT uID)
static VOID NTAPI AddNTOSInstallationItem(IN HWND hWndList, IN LVITEM *plvItem, IN PGENERIC_LIST_ENTRY Entry, IN OUT PWSTR Buffer, IN SIZE_T cchBufferSize)
BOOLEAN IsUnattendedSetup
static INT_PTR CALLBACK StartDlgProc(IN HWND hwndDlg, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lParam)
INT DisplayMessageV(_In_opt_ HWND hWnd, _In_ UINT uType, _In_opt_ PCWSTR pszTitle, _In_opt_ PCWSTR pszFormatMessage, _In_ va_list args)
struct _COPYCONTEXT COPYCONTEXT
static DWORD CALLBACK HotkeyThread(LPVOID Parameter)
BOOL EnablePrivilege(IN LPCWSTR lpszPrivilegeName, IN BOOL bEnablePrivilege)
static const UINT column_ids[MAX_LIST_COLUMNS]
VOID InitGenericComboList(IN HWND hWndList, IN PGENERIC_LIST List, IN PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc)
static DWORD WINAPI PrepareAndDoCopyThread(IN LPVOID Param)
static UINT CALLBACK FileCopyCallback(PVOID Context, UINT Notification, UINT_PTR Param1, UINT_PTR Param2)
#define ShowDlgItem(hDlg, nID, nCmdShow)
struct _SETUPDATA * PSETUPDATA
#define IDS_ERROR_SYSTEM_PARTITION
#define IDS_ERROR_FORMAT_UNRECOGNIZED_VOLUME
#define IDS_DRIVESUBTITLE
#define IDS_PROCESSSUBTITLE
#define IDS_ERROR_COULD_NOT_CHECK
#define IDS_REG_REGHIVEUPDATE
#define IDS_REG_CODEPAGEINFOUPDATE
#define IDS_REG_IMPORTFILE
#define IDS_ERROR_CHECKING_PARTITION
#define IDS_ERROR_COULD_NOT_FORMAT
#define IDS_REG_KEYBOARDSETTINGSUPDATE
#define IDC_PROCESSPROGRESS
#define IDC_CONFIRM_INSTALL
#define IDS_REG_ADDKBLAYOUTS
#define IDS_UPDATE_REGISTRY
#define IDS_NO_TXTSETUP_SIF
#define IDS_REG_LOCALESETTINGSUPDATE
#define IDD_UPDATEREPAIRPAGE
#define IDS_DEVICESUBTITLE
#define IDS_SUMMARYSUBTITLE
#define IDS_REG_DISPLAYSETTINGSUPDATE
#define IDS_CREATE_REGISTRY
#define IDC_INSTALLSOURCE
#define IDC_RESTART_PROGRESS
#define IDS_ERROR_WRITE_PTABLE
#define IDS_ERROR_FORMATTING_PARTITION
_In_ PSCSI_REQUEST_BLOCK _Out_ NTSTATUS _Inout_ BOOLEAN * Retry
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
#define NT_SUCCESS(StatCode)
BOOL WINAPI LookupPrivilegeValueW(LPCWSTR lpSystemName, LPCWSTR lpPrivilegeName, PLUID lpLuid)
BOOL WINAPI AdjustTokenPrivileges(HANDLE TokenHandle, BOOL DisableAllPrivileges, PTOKEN_PRIVILEGES NewState, DWORD BufferLength, PTOKEN_PRIVILEGES PreviousState, PDWORD ReturnLength)
BOOL WINAPI OpenProcessToken(HANDLE ProcessHandle, DWORD DesiredAccess, PHANDLE TokenHandle)
BOOL WINAPI ImageList_Destroy(HIMAGELIST himl)
HIMAGELIST WINAPI ImageList_Create(INT cx, INT cy, UINT flags, INT cInitial, INT cGrow)
#define GetCurrentProcess()
#define HeapFree(x, y, z)
ATOM WINAPI GlobalDeleteAtom(ATOM nAtom)
ATOM WINAPI GlobalAddAtomW(LPCWSTR lpString)
DWORD WINAPI QueryDosDeviceW(LPCWSTR lpDeviceName, LPWSTR lpTargetPath, DWORD ucchMax)
DWORD WINAPI GetLogicalDriveStringsW(IN DWORD nBufferLength, IN LPWSTR lpBuffer)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
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)
DWORD WINAPI ResumeThread(IN HANDLE hThread)
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)
DWORD WINAPI GetThreadId(IN HANDLE Thread)
LCID WINAPI GetUserDefaultLCID(void)
PVOL_CREATE_INFO FindVolCreateInTreeByVolume(_In_ HWND hTreeList, _In_ PVOLENTRY Volume)
INT_PTR CALLBACK DriveDlgProc(_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
_In_ uint64_t _In_ uint64_t _In_ uint64_t _In_opt_ traverse_ptr * tp
#define InsertHeadList(ListHead, Entry)
#define IsListEmpty(ListHead)
#define RemoveHeadList(ListHead)
#define InitializeListHead(ListHead)
enum _ERROR_NUMBER ERROR_NUMBER
#define EnableDlgItem(hDlg, nID, bEnable)
#define SPFILENOTIFY_ENDDELETE
struct _FILEPATHS_W * PFILEPATHS_W
#define SPFILENOTIFY_STARTDELETE
#define SPFILENOTIFY_STARTSUBQUEUE
#define SPFILENOTIFY_ENDCOPY
#define SPFILENOTIFY_STARTCOPY
#define SPFILENOTIFY_COPYERROR
#define SPFILENOTIFY_STARTRENAME
#define SPFILENOTIFY_ENDRENAME
struct TEXTOUTPUT * PTEXTOUTPUT
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
_Check_return_ _CRTIMP int __cdecl swscanf(_In_z_ const wchar_t *_Src, _In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
_Check_return_ _CRTIMP int __cdecl _vscwprintf(_In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_ long __cdecl wcstol(_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define OBJ_CASE_INSENSITIVE
VOID SetCurrentListEntry(IN PGENERIC_LIST List, IN PGENERIC_LIST_ENTRY Entry)
PGENERIC_LIST_ENTRY GetFirstListEntry(IN PGENERIC_LIST List)
PGENERIC_LIST_ENTRY GetCurrentListEntry(IN PGENERIC_LIST List)
ULONG GetNumberOfListEntries(IN PGENERIC_LIST List)
PVOID GetListEntryData(IN PGENERIC_LIST_ENTRY Entry)
PGENERIC_LIST_ENTRY GetNextListEntry(IN PGENERIC_LIST_ENTRY Entry)
#define memmove(s1, s2, n)
#define PSN_QUERYINITIALFOCUS
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
#define InitializeObjectAttributes(p, n, a, r, s)
struct _PSP * HPROPSHEETPAGE
unsigned __int3264 UINT_PTR
#define SYMBOLIC_LINK_QUERY
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
#define DBG_UNREFERENCED_PARAMETER(P)
_In_ ULONG _In_ ULONG _In_ ULONG Length
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
#define STATUS_NOT_SUPPORTED
#define STATUS_PARTITION_FAILURE
NTSTATUS NTAPI NtQuerySymbolicLinkObject(IN HANDLE LinkHandle, OUT PUNICODE_STRING LinkTarget, OUT PULONG ResultLength OPTIONAL)
NTSTATUS NTAPI NtOpenSymbolicLinkObject(OUT PHANDLE LinkHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes)
PGENERIC_LIST CreateNTOSInstallationsList(_In_ PPARTLIST PartList)
Create a list of available NT OS installations on the computer, by searching for recognized ones on e...
struct _NTOS_INSTALLATION * PNTOS_INSTALLATION
#define PropSheet_PressButton(d, i)
#define CreatePropertySheetPage
#define PropSheet_SetWizButtons(d, f)
#define PropSheet_SetCurSelByID(d, i)
#define ListView_SetItemState(hwndLV, i, data, mask)
#define ListView_SetExtendedListViewStyleEx(hwndLV, dwMask, dw)
#define ICC_TREEVIEW_CLASSES
#define ListView_InsertColumn(hwnd, iCol, pcol)
#define ListView_SetImageList(hwnd, himl, iImageList)
#define ListView_GetImageList(hwnd, iImageList)
#define LVS_EX_FULLROWSELECT
#define ICC_PROGRESS_CLASS
#define ListView_GetSelectionMark(hwnd)
struct tagNMLISTVIEW * LPNMLISTVIEW
#define ImageList_AddIcon(himl, hicon)
#define ListView_GetItem(hwnd, pitem)
#define ListView_EnsureVisible(hwndLV, i, fPartialOK)
#define ICC_LISTVIEW_CLASSES
_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 _wcsnicmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)
BOOLEAN FsVolCommitOpsQueue(_In_ PPARTLIST PartitionList, _In_ PVOLENTRY SystemVolume, _In_ PVOLENTRY InstallVolume, _In_opt_ PFSVOL_CALLBACK FsVolCallback, _In_opt_ PVOID Context)
@ FSVOLNOTIFY_STARTSUBQUEUE
@ FSVOLNOTIFY_STARTFORMAT
@ FSVOLNOTIFY_ENDSUBQUEUE
@ FSVOLNOTIFY_PARTITIONERROR
@ FSVOLNOTIFY_FORMATERROR
struct _FORMAT_VOLUME_INFO * PFORMAT_VOLUME_INFO
enum _FSVOLNOTIFY FSVOLNOTIFY
struct _CHECK_VOLUME_INFO * PCHECK_VOLUME_INFO
PPARTLIST CreatePartitionList(VOID)
NTSTATUS InitDestinationPaths(_Inout_ PUSETUP_DATA pSetupData, _In_ PCWSTR InstallationDir, _In_ PVOLENTRY Volume)
BOOLEAN InitSystemPartition(_In_ PPARTLIST PartitionList, _In_ PPARTENTRY InstallPartition, _Out_ PPARTENTRY *pSystemPartition, _In_opt_ PFSVOL_CALLBACK FsVolCallback, _In_opt_ PVOID Context)
Find or set the active system partition.
VOID FinishSetup(IN OUT PUSETUP_DATA pSetupData)
VOID CheckUnattendedSetup(IN OUT PUSETUP_DATA pSetupData)
ERROR_NUMBER UpdateRegistry(IN OUT PUSETUP_DATA pSetupData, IN BOOLEAN RepairUpdateFlag, IN PPARTLIST PartitionList, IN WCHAR DestinationDriveLetter, IN PCWSTR SelectedLanguageId, IN PREGISTRY_STATUS_ROUTINE StatusRoutine OPTIONAL, IN PFONTSUBSTSETTINGS SubstSettings OPTIONAL)
VOID InstallSetupInfFile(IN OUT PUSETUP_DATA pSetupData)
ERROR_NUMBER InitializeSetup(IN OUT PUSETUP_DATA pSetupData, IN ULONG InitPhase)
#define ERROR_SYSTEM_PARTITION_NOT_FOUND
enum _REGISTRY_STATUS REGISTRY_STATUS
LPTSTR FindSubStrI(LPCTSTR str, LPCTSTR strSearch)
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
STRSAFEAPI StringCchVPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat, va_list argList)
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
STRSAFEAPI StringCchCopyNW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc, size_t cchToCopy)
base of all file and directory entries
CHAR lfFaceName[LF_FACESIZE]
ULONG CompletedOperations
struct _LIST_ENTRY * Flink
WCHAR InstallationName[MAX_PATH]
UNICODE_STRING SystemNtPath
WCHAR VendorName[MAX_PATH]
struct _DISKENTRY * DiskEntry
ULONG OnDiskPartitionNumber
PCWSTR SelectedLanguageId
PNTOS_INSTALLATION CurrentInstallation
PGENERIC_LIST NtOsInstallsList
NT_WIN32_PATH_MAPPING_LIST MappingList
PGENERIC_LIST DisplayList
UNICODE_STRING DestinationRootPath
PGENERIC_LIST ComputerList
WCHAR InstallationDirectory[MAX_PATH]
PGENERIC_LIST KeyboardList
WCHAR DeviceName[MAX_PATH]
NT device name: "\Device\HarddiskVolumeN".
WCHAR FileSystem[MAX_PATH+1]
Data structure stored when a partition/volume needs to be formatted.
WCHAR FileSystemName[MAX_PATH+1]
FMIFS_MEDIA_FLAG MediaFlag
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateEventW(IN LPSECURITY_ATTRIBUTES lpEventAttributes OPTIONAL, IN BOOL bManualReset, IN BOOL bInitialState, IN LPCWSTR lpName OPTIONAL)
BOOL WINAPI DECLSPEC_HOTPATCH SetEvent(IN HANDLE hEvent)
BOOL WINAPI DECLSPEC_HOTPATCH ResetEvent(IN HANDLE hEvent)
int TreeListRegister(HINSTANCE hInstance)
BOOL TreeListUnregister(HINSTANCE hInstance)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
#define CONTAINING_RECORD(address, type, field)
#define STATUS_UNRECOGNIZED_VOLUME
PFMIFSCALLBACK ChkdskCallback
_In_ WDFCOLLECTION _In_ ULONG Index
_In_ PWDFDEVICE_INIT _In_ PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION Notification
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ PCUNICODE_STRING _In_ PCUNICODE_STRING _In_ LCID LocaleId
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
_Must_inspect_result_ _In_ WDFCMRESLIST List
UINT WINAPI GetDlgItemTextW(HWND hDlg, int nIDDlgItem, LPWSTR lpString, int nMaxCount)
DWORD WINAPI GetLastError(void)
#define CREATE_NEW_CONSOLE
#define ComboBox_GetItemData(hwndCtl, index)
#define ComboBox_GetCurSel(hwndCtl)
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
#define CreateFontIndirect
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
BOOL WINAPI GetKeyboardLayoutNameW(_Out_writes_(KL_NAMELENGTH) LPWSTR)
#define GetWindowLongPtrW
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
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)
BOOL WINAPI UnregisterHotKey(_In_opt_ HWND, _In_ int)
#define IS_INTRESOURCE(i)
BOOL WINAPI SetDlgItemTextW(_In_ HWND, _In_ int, _In_ LPCWSTR)
HMENU WINAPI GetSystemMenu(_In_ HWND, _In_ BOOL)
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)
HWND WINAPI GetDesktopWindow(void)
BOOL WINAPI SetWindowTextW(_In_ HWND, _In_opt_ LPCWSTR)
UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int)
BOOL WINAPI RegisterHotKey(_In_opt_ HWND, _In_ int, _In_ UINT, _In_ UINT)
BOOL WINAPI PostThreadMessageW(_In_ DWORD, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
struct tagNMHDR * LPNMHDR
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
HDC WINAPI GetDC(_In_opt_ HWND)
HWND WINAPI GetParent(_In_ HWND)
BOOL WINAPI ExitWindowsEx(_In_ UINT, _In_ DWORD)
int WINAPI MessageBoxIndirectW(_In_ CONST MSGBOXPARAMSW *lpmbp)
#define MAKEINTRESOURCEW(i)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
#define SystemParametersInfo
#define SetWindowLongPtrW
#define SendDlgItemMessage
BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
HICON WINAPI LoadIconW(_In_opt_ HINSTANCE hInstance, _In_ LPCWSTR lpIconName)
int WINAPI GetSystemMetrics(_In_ int)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
_In_ ULONG _In_ ULONG PartitionNumber
_Inout_opt_ PVOID Parameter
#define TOKEN_ADJUST_PRIVILEGES
#define SE_PRIVILEGE_ENABLED