46#define InstallVolume (InstallPartition->Volume)
51#define SystemVolume (SystemPartition->Volume)
99 NONCLIENTMETRICSW ncm;
100 ncm.cbSize =
sizeof(ncm);
102 lf = ncm.lfMessageFont;
141 WCHAR StaticBuffer[256];
188 if (MsgLen >=
_countof(StaticBuffer))
287 WCHAR ResBuffer[256];
412 if (pSetupData->NtOsInstallsList &&
522 IN const INT* pColsWidth,
523 IN const INT* pColsAlign,
532 lvC.pszText = szText;
535 for (
i = 0;
i < nNumOfColumns;
i++)
538 lvC.cx = pColsWidth[
i];
539 lvC.fmt = pColsAlign[
i];
565 WCHAR CurrentItemText[256];
573 if (GetEntryDescriptionProc)
575 GetEntryDescriptionProc(ListEntry,
585 if (ListEntry ==
List->CurrentEntry)
586 CurrentEntryIndex =
Index;
621 INT CurrentEntryIndex = 0;
625 WCHAR CurrentItemText[256];
633 if (!AddEntryItemProc)
642 if (ListEntry ==
List->CurrentEntry)
643 CurrentEntryIndex = lvItem.iItem;
712 plvItem->iSubItem = 0;
730 plvItem->iSubItem = 1;
731 plvItem->pszText =
Buffer;
734 plvItem->iSubItem = 2;
740#define IDS_LIST_COLUMN_FIRST IDS_INSTALLATION_NAME
741#define IDS_LIST_COLUMN_LAST IDS_INSTALLATION_VENDOR
743#define MAX_LIST_COLUMNS (IDS_LIST_COLUMN_LAST - IDS_LIST_COLUMN_FIRST + 1)
1044 static WCHAR szOrgWizNextBtnText[260];
1081 WCHAR CurrentItemText[256];
1091 L"Upgrading/Repairing \"%s\" from \"%s\"",
1098 L"New ReactOS installation");
1129 L"%c: \x2014 Harddisk %lu, Partition %lu",
1143 L"Harddisk %lu, Partition %lu",
1158 szOrgWizNextBtnText,
ARRAYSIZE(szOrgWizNextBtnText));
1235 DPRINT(
"%lu percent completed\n", *Percent);
1255 DPRINT(
"FormatEx was unable to complete successfully.\n\n");
1299 switch (FormatStatus)
1440 else if (nRet ==
IDOK)
1480 else if (nRet ==
IDOK)
1643 PCWSTR SrcFileName, DstFileName;
1679 if (DstFileName) ++DstFileName;
1680 else DstFileName = FilePathInfo->
Target;
1695 if (SrcFileName) ++SrcFileName;
1696 else SrcFileName = FilePathInfo->
Source;
1699 if (DstFileName) ++DstFileName;
1700 else DstFileName = FilePathInfo->
Target;
1702 if (!
_wcsicmp(SrcFileName, DstFileName))
1709 SrcFileName, DstFileName);
1717 if (DstFileName) ++DstFileName;
1718 else DstFileName = FilePathInfo->
Target;
1732 DPRINT1(
"An error happened while trying to copy file '%S' (error 0x%08lx), skipping it...\n",
1745 DPRINT1(
"CHECKPOINT:HALF_COPIED\n");
1760 static const UINT StringIDs[] =
1772 if (RegStatus <
_countof(StringIDs))
2070 static const WCHAR DriveLetter =
L'A';
2076 L"Bootloader installation",
2077 L"Please insert a blank floppy disk in drive %c: .\n"
2078 L"All data in the floppy disk will be erased!\n"
2079 L"\nClick on OK to continue."
2080 L"\nClick on CANCEL to skip bootloader installation.",
2099 L"No disk detected in drive %c: .",
2115 DPRINT1(
"InstallBootcodeToRemovable() failed: Status 0x%lx\n",
Status);
2165 DPRINT1(
"InstallBootManagerAndBootEntries() failed: Status 0x%lx\n",
Status);
2387 if (!pSetupData->PartitionList)
2389 DPRINT1(
"Could not enumerate available disks; failing installation\n");
2394 if (!pSetupData->NtOsInstallsList)
2395 DPRINT1(
"Failed to get a list of NTOS installations; continue installation...\n");
2403 pSetupData->USetupData.LanguageList =
CreateLanguageList(pSetupData->USetupData.SetupInf, pSetupData->DefaultLanguage);
2412 _countof(pSetupData->DefaultLanguage),
2413 L"%08lx", LocaleID);
2416 _countof(pSetupData->USetupData.LocaleID),
2417 L"%08lx", LocaleID);
2421 pSetupData->SelectedLanguageId = pSetupData->DefaultLanguage;
2422 wcscpy(pSetupData->DefaultLanguage, pSetupData->USetupData.LocaleID);
2423 pSetupData->USetupData.LanguageId = (
LANGID)(
wcstol(pSetupData->SelectedLanguageId,
NULL, 16) & 0xFFFF);
2426 pSetupData->SelectedLanguageId,
2427 pSetupData->DefaultKBLayout);
2440 PGENERIC_LIST LanguageList = pSetupData->USetupData.LanguageList;
2441 PGENERIC_LIST LayoutList = pSetupData->USetupData.LayoutList;
2462 if (!
_wcsicmp(pSetupData->DefaultKBLayout, pszLayoutId))
2464 DPRINT(
"Found %S in LayoutList\n", pszLayoutId);
2479 MappingList->MappingsCount = 0;
2496 MappingList->MappingsCount = 0;
2513 PCWSTR pwszNtPathToMap = pwszNTPath;
2517 WCHAR wszDrives[512];
2531 for (ListEntry = MappingList->List.
Flink;
2532 ListEntry != &MappingList->List;
2533 ListEntry = ListEntry->
Flink)
2546 pwszDrive =
Entry->Win32Path;
2547 pwszRemaining = pwszNTPath +
wcslen(
Entry->NtPath);
2558 if (cchDrives == 0 || cchDrives >=
_countof(wszDrives))
2561 DPRINT1(
"ConvertNtPathToWin32Path: GetLogicalDriveStringsW failed\n");
2569 for (pwszDrive = wszDrives; *pwszDrive; pwszDrive +=
wcslen(pwszDrive) + 1)
2574 pwszDrive[2] =
L'\\';
2576 DPRINT(
"Testing '%S' --> '%S'\n", pwszDrive, wszNTPath);
2579 FoundDrive = !
_wcsnicmp(pwszNtPathToMap, wszNTPath,
wcslen(wszNTPath));
2608 if (pwszDrive[0] !=
ptr[1])
2610 DPRINT1(
"Peculiar: expected network share drive letter %C different from actual one %C\n",
2611 pwszDrive[0],
ptr[1]);
2617 while (*ptr2 ==
L'\\') ++ptr2;
2622 FoundDrive = !
_wcsnicmp(pwszNtPathToMap, wszNTPath,
wcslen(wszNTPath));
2631 if (pwszNtPathToMap == pwszNTPath)
2633 ASSERT(!RetryOnce && pwszNTPath != TargetPath);
2634 pwszRemaining = pwszNTPath +
wcslen(wszNTPath);
2646 DPRINT1(
"ConvertNtPathToWin32Path: Cannot allocate memory\n");
2650 pwszNTPath, pwszRemaining - pwszNTPath);
2655 MappingList->MappingsCount++;
2658 pwszDrive =
Entry->Win32Path;
2683 if (!RetryOnce && !FoundDrive)
2693 if (
swscanf(pwszNTPath,
L"\\Device\\Harddisk%lu\\Partition%lu%n",
2701 RtlInitEmptyUnicodeString(&SymLink, (
PWCHAR)pwszNTPath,
Length *
sizeof(
WCHAR));
2715 DPRINT1(
"ConvertNtPathToWin32Path: NtOpenSymbolicLinkObject(%wZ) failed, Status 0x%08lx\n",
2721 RtlInitEmptyUnicodeString(&
Target, TargetPath,
sizeof(TargetPath));
2731 DPRINT1(
"ConvertNtPathToWin32Path: NtQuerySymbolicLinkObject(%wZ) failed, Status 0x%08lx\n",
2737 pwszRemaining = pwszNTPath +
Length;
2738 pwszNtPathToMap = TargetPath;
2754 DPRINT(
"ConvertNtPathToWin32Path: %S\n", pwszPath);
2765 IN BOOL bEnablePrivilege)
2778 &
tp.Privileges[0].Luid);
2781 tp.PrivilegeCount = 1;
2798 DPRINT(
"HotkeyThread start\n");
2836 DPRINT(
"HotkeyThread terminate\n");
2895 iccx.
dwSize =
sizeof(iccx);
2913 psp.hInstance =
hInst;
2921 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
2924 psp.hInstance =
hInst;
2932 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
2935 psp.hInstance =
hInst;
2943 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
2946 psp.hInstance =
hInst;
2954 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
2957 psp.hInstance =
hInst;
2965 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
2968 psp.hInstance =
hInst;
2977 psp.dwFlags =
PSP_DEFAULT | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
2980 psp.hInstance =
hInst;
2989 psp.hInstance =
hInst;
2997 psh.dwFlags = PSH_WIZARD97 | PSH_WATERMARK | PSH_HEADER;
2998 psh.hInstance =
hInst;
2999 psh.hwndParent =
NULL;
3000 psh.nPages = nPages;
static HWND hWndList[5+1]
BOOLEAN NTAPI PrepareFileCopy(IN OUT PUSETUP_DATA pSetupData, IN PFILE_COPY_STATUS_ROUTINE StatusRoutine OPTIONAL)
BOOLEAN NTAPI DoFileCopy(IN OUT PUSETUP_DATA pSetupData, IN PSP_FILE_CALLBACK_W MsgHandler, IN PVOID Context 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 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)
static HFONT CreateBoldFont(_In_opt_ HFONT hOrigFont, _In_opt_ INT PointSize)
Create a bold font derived from the provided font.
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)
static HFONT CreateTitleFont(_In_opt_ HFONT hOrigFont)
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)
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)
#define SetDlgItemFont(hDlg, nID, hFont, bRedraw)
struct _SETUPDATA * PSETUPDATA
#define IDS_ERROR_SYSTEM_PARTITION
#define IDS_CONFIG_SYSTEM_PARTITION
#define IDS_ERROR_FORMAT_UNRECOGNIZED_VOLUME
#define IDS_DRIVESUBTITLE
#define IDS_PROCESSSUBTITLE
#define IDS_FORMATTING_PROGRESS1
#define IDS_COPYING_FILES
#define IDS_ERROR_BOOTLDR_FAILED
#define IDS_ERROR_COULD_NOT_CHECK
#define IDS_REG_REGHIVEUPDATE
#define IDS_REG_CODEPAGEINFOUPDATE
#define IDS_UPDATESUBTITLE
#define IDS_PREPARE_FILES
#define IDS_REG_IMPORTFILE
#define IDS_PREPARE_PARTITIONS
#define IDS_ERROR_CHECKING_PARTITION
#define IDS_ERROR_BOOTLDR_ARCH_UNSUPPORTED
#define IDS_ERROR_COULD_NOT_FORMAT
#define IDS_REG_KEYBOARDSETTINGSUPDATE
#define IDC_PROCESSPROGRESS
#define IDS_ERROR_INSTALL_BOOTCODE
#define IDS_ERROR_WRITE_BOOT
#define IDC_CONFIRM_INSTALL
#define IDS_ERROR_INSTALL_BOOTCODE_REMOVABLE
#define IDS_CHECKING_PROGRESS2
#define IDS_REG_ADDKBLAYOUTS
#define IDS_CHECKING_PROGRESS1
#define IDS_UPDATE_REGISTRY
#define IDS_NO_TXTSETUP_SIF
#define IDS_REG_LOCALESETTINGSUPDATE
#define IDD_UPDATEREPAIRPAGE
#define IDS_DEVICESUBTITLE
#define IDS_FORMATTING_PROGRESS2
#define IDS_SUMMARYSUBTITLE
#define IDS_REG_DISPLAYSETTINGSUPDATE
#define IDS_INSTALL_BOOTLOADER
#define IDS_CREATE_REGISTRY
#define IDC_INSTALLSOURCE
#define IDC_RESTART_PROGRESS
#define IDS_ERROR_WRITE_PTABLE
#define IDS_ERROR_FORMATTING_PARTITION
NTSTATUS NTAPI InstallBootcodeToRemovable(_In_ ARCHITECTURE_TYPE ArchType, _In_ PCUNICODE_STRING RemovableRootPath, _In_ PCUNICODE_STRING SourceRootPath, _In_ PCUNICODE_STRING DestinationArcPath)
NTSTATUS NTAPI InstallBootManagerAndBootEntries(_In_ ARCHITECTURE_TYPE ArchType, _In_ PCUNICODE_STRING SystemRootPath, _In_ PCUNICODE_STRING SourceRootPath, _In_ PCUNICODE_STRING DestinationArcPath, _In_ ULONG_PTR Options)
Installs FreeLoader on the system and configure the boot entries.
_In_ PSCSI_REQUEST_BLOCK _Out_ NTSTATUS _Inout_ BOOLEAN * Retry
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
NTSYSAPI BOOLEAN NTAPI RtlCreateUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
#define STATUS_NOT_SUPPORTED
#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)
static const WCHAR CmdLine[]
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
static PDISK_IMAGE FloppyDrive[2]
#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
SPFILE_EXPORTS SpFileExports
SPINF_EXPORTS SpInfExports
ULONG NTAPI GetNumberOfListEntries(IN PGENERIC_LIST List)
VOID NTAPI SetCurrentListEntry(IN PGENERIC_LIST List, IN PGENERIC_LIST_ENTRY Entry)
PGENERIC_LIST_ENTRY NTAPI GetFirstListEntry(IN PGENERIC_LIST List)
PGENERIC_LIST_ENTRY NTAPI GetNextListEntry(IN PGENERIC_LIST_ENTRY Entry)
PGENERIC_LIST_ENTRY NTAPI GetCurrentListEntry(IN PGENERIC_LIST List)
PVOID NTAPI GetListEntryData(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
INT WINAPI MulDiv(INT nNumber, INT nNumerator, INT nDenominator)
#define SYMBOLIC_LINK_QUERY
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
#define RTL_NUMBER_OF_FIELD(type, field)
#define DBG_UNREFERENCED_PARAMETER(P)
_In_ ULONG _In_ ULONG _In_ ULONG Length
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
#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 NTAPI 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
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_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 NTAPI 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 NTAPI CreatePartitionList(VOID)
VOID NTAPI InstallSetupInfFile(IN OUT PUSETUP_DATA pSetupData)
ERROR_NUMBER NTAPI InitializeSetup(_Inout_ PUSETUP_DATA pSetupData, _In_opt_ PSETUP_ERROR_ROUTINE ErrorRoutine, _In_ PSPFILE_EXPORTS pSpFileExports, _In_ PSPINF_EXPORTS pSpInfExports)
NTSTATUS NTAPI InitDestinationPaths(_Inout_ PUSETUP_DATA pSetupData, _In_ PCWSTR InstallationDir, _In_ PVOLENTRY Volume)
VOID NTAPI CheckUnattendedSetup(IN OUT PUSETUP_DATA pSetupData)
BOOLEAN NTAPI 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 NTAPI FinishSetup(IN OUT PUSETUP_DATA pSetupData)
BOOLEAN IsUnattendedSetup
ERROR_NUMBER NTAPI 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)
#define ERROR_SYSTEM_PARTITION_NOT_FOUND
enum _REGISTRY_STATUS REGISTRY_STATUS
#define STATUS_DEVICE_NOT_READY
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
ULONG CompletedOperations
struct _LIST_ENTRY * Flink
WCHAR InstallationName[MAX_PATH]
UNICODE_STRING SystemNtPath
WCHAR VendorName[MAX_PATH]
WCHAR DeviceName[MAX_PATH]
NT device name: "\Device\HarddiskM\PartitionN".
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
UNICODE_STRING SystemRootPath
UNICODE_STRING SourceRootPath
WCHAR InstallationDirectory[MAX_PATH]
ARCHITECTURE_TYPE ArchType
PGENERIC_LIST KeyboardList
UNICODE_STRING DestinationArcPath
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)
#define RTL_CONSTANT_STRING(s)
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_opt_ PCUNICODE_STRING DeviceName
_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 DeleteFont(hfont)
#define ComboBox_GetItemData(hwndCtl, index)
#define ComboBox_GetCurSel(hwndCtl)
int WINAPI GetObjectW(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
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)
BOOL WINAPI SystemParametersInfoW(_In_ UINT uiAction, _In_ UINT uiParam, _Inout_opt_ PVOID pvParam, _In_ UINT fWinIni)
HWND WINAPI GetParent(_In_ HWND)
BOOL WINAPI ExitWindowsEx(_In_ UINT, _In_ DWORD)
#define MB_ICONINFORMATION
int WINAPI MessageBoxIndirectW(_In_ CONST MSGBOXPARAMSW *lpmbp)
#define MAKEINTRESOURCEW(i)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
#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