|
ReactOS 0.4.17-dev-650-gd0e71de
|
#include "reactos.h"#include <winnls.h>#include <ndk/obfuncs.h>#include "resource.h"#include <debug.h>#include <ndk/exfuncs.h>#include <delayimp.h>#include <pshpack1.h>#include <poppack.h>
Go to the source code of this file.
Classes | |
| struct | _FSVOL_CONTEXT |
| struct | _COPYCONTEXT |
| struct | _CLOSABLE_WND_INFO |
| struct | DLGTEMPLATEEX |
Macros | |
| #define | NTOS_MODE_USER |
| #define | NDEBUG |
| #define | InstallVolume (InstallPartition->Volume) |
| #define | SystemVolume (SystemPartition->Volume) |
| #define | IDS_LIST_COLUMN_FIRST IDS_INSTALLATION_NAME |
| #define | IDS_LIST_COLUMN_LAST IDS_INSTALLATION_VENDOR |
| #define | MAX_LIST_COLUMNS (IDS_LIST_COLUMN_LAST - IDS_LIST_COLUMN_FIRST + 1) |
| #define | PM_INSTALL_START (WM_APP + 1) |
| #define | PM_INSTALL_DONE (WM_APP + 2) |
| #define | DECLARE_UNICODE_STRING_SIZE(_var, _size) |
| #define | DELAYIMP_INSECURE_WRITABLE_HOOKS |
| #define | REACTOS_SETUP_MUTEX L"__ReactOS_Setup__" |
Typedefs | |
| typedef VOID(NTAPI * | PGET_ENTRY_DESCRIPTION) (IN PGENERIC_LIST_ENTRY Entry, OUT PWSTR Buffer, IN SIZE_T cchBufferSize) |
| typedef VOID(NTAPI * | PADD_ENTRY_ITEM) (IN HWND hWndList, IN LVITEM *plvItem, IN PGENERIC_LIST_ENTRY Entry, IN OUT PWSTR Buffer, IN SIZE_T cchBufferSize) |
| typedef struct _FSVOL_CONTEXT | FSVOL_CONTEXT |
| typedef struct _FSVOL_CONTEXT * | PFSVOL_CONTEXT |
| typedef struct _COPYCONTEXT | COPYCONTEXT |
| typedef struct _COPYCONTEXT * | PCOPYCONTEXT |
| typedef struct _CLOSABLE_WND_INFO | CLOSABLE_WND_INFO |
| typedef struct _CLOSABLE_WND_INFO * | PCLOSABLE_WND_INFO |
| typedef struct DLGTEMPLATEEX | DLGTEMPLATEEX |
| typedef struct DLGTEMPLATEEX * | LPDLGTEMPLATEEX |
Variables | |
| HANDLE | ProcessHeap |
| SETUPDATA | SetupData |
| PPARTENTRY | InstallPartition = NULL |
| PPARTENTRY | SystemPartition = NULL |
| UI_CONTEXT | UiContext |
| HCURSOR | hWaitCursor |
| static const UINT | column_ids [MAX_LIST_COLUMNS] = {IDS_LIST_COLUMN_FIRST, IDS_LIST_COLUMN_FIRST + 1, IDS_LIST_COLUMN_FIRST + 2} |
| static const INT | column_widths [MAX_LIST_COLUMNS] = {200, 150, 100} |
| static const INT | column_alignment [MAX_LIST_COLUMNS] = {LVCFMT_LEFT, LVCFMT_LEFT, LVCFMT_LEFT} |
| PfnDliHook | __pfnDliNotifyHook2 = setupDelayHook |
| Custom delay-loading hooks for loading the Setup DLLs from a suitable path. | |
| PfnDliHook | __pfnDliFailureHook2 = setupDelayHook |
| WNDPROC | wpOrgPrshtProc = NULL |
| struct { | |
| BOOL IncludeForUnattended | |
| DWORD dwFlags | |
| PCWSTR pszTemplate | |
| PCWSTR pszHeaderTitle | |
| PCWSTR pszHeaderSubTitle | |
| DLGPROC pfnDlgProc | |
| } | WizardPages [] |
| #define DECLARE_UNICODE_STRING_SIZE | ( | _var, | |
| _size | |||
| ) |
| #define IDS_LIST_COLUMN_FIRST IDS_INSTALLATION_NAME |
| #define IDS_LIST_COLUMN_LAST IDS_INSTALLATION_VENDOR |
| #define InstallVolume (InstallPartition->Volume) |
| #define MAX_LIST_COLUMNS (IDS_LIST_COLUMN_LAST - IDS_LIST_COLUMN_FIRST + 1) |
| #define REACTOS_SETUP_MUTEX L"__ReactOS_Setup__" |
| #define SystemVolume (SystemPartition->Volume) |
| typedef struct _COPYCONTEXT COPYCONTEXT |
| typedef struct DLGTEMPLATEEX DLGTEMPLATEEX |
| typedef struct _FSVOL_CONTEXT FSVOL_CONTEXT |
| typedef struct DLGTEMPLATEEX * LPDLGTEMPLATEEX |
| typedef struct _CLOSABLE_WND_INFO * PCLOSABLE_WND_INFO |
| typedef struct _COPYCONTEXT * PCOPYCONTEXT |
| typedef struct _FSVOL_CONTEXT * PFSVOL_CONTEXT |
Definition at line 3758 of file reactos.c.
|
static |
Definition at line 764 of file reactos.c.
Referenced by UpgradeRepairDlgProc().
Detects whether there exist interactive closable windows opened.
Definition at line 2676 of file reactos.c.
Referenced by _tWinMain(), and FinishDlgProc().
Definition at line 45 of file reactos.c.
Referenced by FinishDlgProc(), CEditCompatModes::OnInitDialog(), CConfirmReplace::OnInitDialog(), CZipPassword::OnInitDialog(), and PrshtWndProc().
Ensure only one ReactOS Setup instance is running. If another instance already exists, find and activate its window.
Definition at line 3704 of file reactos.c.
Referenced by _tWinMain().
| BOOL ConvertNtPathToWin32Path | ( | IN OUT PNT_WIN32_PATH_MAPPING_LIST | MappingList, |
| OUT PWSTR | pwszPath, | ||
| IN DWORD | cchPathMax, | ||
| IN PCWSTR | pwszNTPath | ||
| ) |
Definition at line 3043 of file reactos.c.
Referenced by SetupOpenInfFileExW().
Create a bold font derived from the provided font.
Definition at line 72 of file reactos.c.
Referenced by _tWinMain(), CreateTitleFont(), and ProgressDlg::ProcessWindowMessage().
| BOOL CreateListViewColumns | ( | IN HINSTANCE | hInstance, |
| IN HWND | hWndListView, | ||
| IN const UINT * | pIDs, | ||
| IN const INT * | pColsWidth, | ||
| IN const INT * | pColsAlign, | ||
| IN UINT | nNumOfColumns | ||
| ) |
Definition at line 598 of file reactos.c.
Referenced by UpgradeRepairDlgProc().
|
inlinestatic |
Definition at line 106 of file reactos.c.
Referenced by _tWinMain().
|
static |
Definition at line 1029 of file reactos.c.
Definition at line 263 of file reactos.c.
Referenced by _tWinMain(), FsVolCallback(), and PrepareAndDoCopyThread().
| INT __cdecl DisplayMessage | ( | _In_opt_ HWND | hWnd, |
| _In_ UINT | uType, | ||
| _In_opt_ PCWSTR | pszTitle, | ||
| _In_opt_ PCWSTR | pszFormatMessage, | ||
| ... | |||
| ) |
Definition at line 244 of file reactos.c.
Referenced by _tWinMain(), AttachToConsoleInternal(), Bios32Post(), BiosRomBasic(), BrowseDlgProc(), CmdStartProcess(), ControlBop(), CpuSimulate(), DeviceDlgProc(), DosCreateProcess(), DosStartProcess32(), DriveDlgProc(), EjectFloppy(), EmulatorException(), FsVolCallback(), LoadInstallableVDD(), MountDisk(), MountFDI(), MountFloppy(), MountHDD(), PrepareAndDoCopyThread(), ProcessDlgProc(), RetrieveDisk(), SelectInstallPartition(), SummaryDlgProc(), TypeDlgProc(), UnmountDisk(), UpgradeRepairDlgProc(), VgaAttachToConsole(), VgaConsoleCreateTextScreen(), VgaEnterNewMode(), and WinNtVdmBiosReset().
| INT DisplayMessageV | ( | _In_opt_ HWND | hWnd, |
| _In_ UINT | uType, | ||
| _In_opt_ PCWSTR | pszTitle, | ||
| _In_opt_ PCWSTR | pszFormatMessage, | ||
| _In_ va_list | args | ||
| ) |
Definition at line 174 of file reactos.c.
Referenced by DisplayError(), and DisplayMessage().
Definition at line 3302 of file reactos.c.
Referenced by _tWinMain().
|
static |
Definition at line 1769 of file reactos.c.
Referenced by PrepareAndDoCopyThread().
Definition at line 2641 of file reactos.c.
Referenced by AreThereInteractiveWindows().
|
static |
Definition at line 2694 of file reactos.c.
| size_t FormatAllocStringWV | ( | _In_opt_ _Outptr_ PWSTR * | pString, |
| _In_opt_ size_t | cchBufferLen, | ||
| _In_ PCWSTR | pszFormat, | ||
| _In_ va_list | args | ||
| ) |
Definition at line 149 of file reactos.c.
Referenced by DisplayMessageV(), and SetWindowResPrintfVW().
|
static |
Definition at line 1364 of file reactos.c.
Referenced by FsVolCallback().
| VOID FreeNtToWin32PathMappingList | ( | IN OUT PNT_WIN32_PATH_MAPPING_LIST | MappingList | ) |
Definition at line 3022 of file reactos.c.
Referenced by _tWinMain().
|
static |
HACK!!
Definition at line 1430 of file reactos.c.
Referenced by DoChecking(), DoFormatting(), FsVolCommitOpsQueue(), InitSystemPartition(), and PrepareAndDoCopyThread().
Definition at line 3381 of file reactos.c.
Referenced by setupDelayHook().
Definition at line 733 of file reactos.c.
Referenced by UpgradeRepairDlgProc().
|
static |
Definition at line 753 of file reactos.c.
Referenced by DeviceDlgProc(), and SummaryDlgProc().
Definition at line 3332 of file reactos.c.
Referenced by _tWinMain().
| VOID InitGenericComboList | ( | IN HWND | hWndList, |
| IN PGENERIC_LIST | List, | ||
| IN PGET_ENTRY_DESCRIPTION | GetEntryDescriptionProc | ||
| ) |
Definition at line 637 of file reactos.c.
Referenced by DeviceDlgProc().
| VOID InitGenericListView | ( | IN HWND | hWndList, |
| IN PGENERIC_LIST | List, | ||
| IN PADD_ENTRY_ITEM | AddEntryItemProc | ||
| ) |
Definition at line 696 of file reactos.c.
Referenced by UpgradeRepairDlgProc().
| VOID InitNtToWin32PathMappingList | ( | IN OUT PNT_WIN32_PATH_MAPPING_LIST | MappingList | ) |
Definition at line 3014 of file reactos.c.
Referenced by _tWinMain().
Detects whether a Windows shell is active.
Definition at line 2618 of file reactos.c.
Referenced by AreThereInteractiveWindows(), and FinishDlgProc().
| size_t LoadAllocStringW | ( | _In_opt_ HINSTANCE hInstance hInstance | , |
| _In_ UINT | uID, | ||
| _In_opt_ _Outptr_ PWSTR * | pString, | ||
| _In_opt_ size_t | cchBufferLen | ||
| ) |
Definition at line 114 of file reactos.c.
Referenced by CheckForOtherInstance(), DisplayMessageV(), SetWindowResPrintfVW(), and SetWindowResTextW().
| BOOL LoadSetupData | ( | IN OUT PSETUPDATA | pSetupData | ) |
Definition at line 2919 of file reactos.c.
Referenced by _tWinMain().
Definition at line 1954 of file reactos.c.
Referenced by ProcessDlgProc().
|
static |
Definition at line 2310 of file reactos.c.
Enable or disable the Cancel and the Close title-bar property-sheet buttons.
The buttons are however kept visible in case they are disabled (this informs the user they are disabled only temporarily).
Definition at line 1939 of file reactos.c.
Referenced by FinishDlgProc(), PrepareAndDoCopyThread(), and ProcessDlgProc().
|
static |
Definition at line 3569 of file reactos.c.
Referenced by _tWinMain().
|
static |
Definition at line 3526 of file reactos.c.
Referenced by PropSheetCallback().
|
static |
Definition at line 1901 of file reactos.c.
Referenced by PrepareAndDoCopyThread().
|
static |
Controls the delay-loading of Setup DLLs from a suitable path.
Definition at line 3440 of file reactos.c.
| VOID SetWindowResPrintfVW | ( | _In_ HWND | hWnd, |
| _In_opt_ HINSTANCE | hInstance, | ||
| _In_ UINT | uID, | ||
| _In_ va_list | args | ||
| ) |
Definition at line 302 of file reactos.c.
Referenced by RegistryStatus(), and SetWindowResPrintfW().
| VOID __cdecl SetWindowResPrintfW | ( | _In_ HWND | hWnd, |
| _In_opt_ HINSTANCE | hInstance, | ||
| _In_ UINT | uID, | ||
| ... | |||
| ) |
Definition at line 340 of file reactos.c.
Referenced by FileCopyCallback(), FsVolCallback(), and RegistryStatus().
Definition at line 283 of file reactos.c.
Referenced by FinishDlgProc(), PrepareAndDoCopyThread(), and SummaryDlgProc().
|
static |
Definition at line 354 of file reactos.c.
|
static |
Definition at line 1149 of file reactos.c.
|
static |
Definition at line 426 of file reactos.c.
|
static |
Definition at line 829 of file reactos.c.
| PfnDliHook __pfnDliFailureHook2 = setupDelayHook |
| PfnDliHook __pfnDliNotifyHook2 = setupDelayHook |
|
static |
Definition at line 826 of file reactos.c.
Referenced by UpgradeRepairDlgProc().
|
static |
Definition at line 824 of file reactos.c.
Referenced by UpgradeRepairDlgProc().
|
static |
Definition at line 825 of file reactos.c.
Referenced by UpgradeRepairDlgProc().
| HCURSOR hWaitCursor |
Definition at line 38 of file reactos.c.
Referenced by ProcessDlgProc(), and PrshtWndProc().
| PPARTENTRY InstallPartition = NULL |
Definition at line 27 of file reactos.c.
Referenced by InitSystemPartition(), PrepareAndDoCopyThread(), SelectInstallPartition(), SummaryDlgProc(), TypeDlgProc(), and UpgradeRepairDlgProc().
| DLGPROC pfnDlgProc |
Definition at line 3629 of file reactos.c.
Referenced by SH_CreatePropertySheetPage(), and SH_CreatePropertySheetPageEx().
| HANDLE ProcessHeap |
Definition at line 23 of file reactos.c.
Referenced by _tWinMain(), ConvertNtPathToWin32Path(), and FreeNtToWin32PathMappingList().
| PCWSTR pszHeaderSubTitle |
Definition at line 3628 of file reactos.c.
Referenced by free_prop_sheet_pages(), and prop_sheet_pages_AtoW().
| PCWSTR pszHeaderTitle |
Definition at line 3627 of file reactos.c.
Referenced by free_prop_sheet_pages(), and prop_sheet_pages_AtoW().
| PCWSTR pszTemplate |
Definition at line 3626 of file reactos.c.
Referenced by free_prop_sheet_pages(), and prop_sheet_pages_AtoW().
| SETUPDATA SetupData |
Definition at line 24 of file reactos.c.
Referenced by _tWinMain(), CreateTimeZoneList(), DateTimePageDlgProc(), DestroyTimeZoneList(), FileCopyCallback(), FinishDlgProc(), FormatDlgProcWorker(), FsVolCallback(), GetLargerTimeZoneEntry(), GetLocalSystemTime(), GetSelectedTimeZoneEntry(), GetTimeZoneEntryByIndex(), LocalePageDlgProc(), ProcessPageDlgProc(), PropSheetCallback(), RegistryStatus(), RetrieveTimeZone(), SetLocalTimeZone(), SetSystemLocalTime(), SetupOpenInfFileExW(), ShowErrorTip(), ShowTimeZoneList(), ThemePageDlgProc(), and WriteDateTimeSettings().
| PPARTENTRY SystemPartition = NULL |
Definition at line 32 of file reactos.c.
Referenced by InitSystemPartition(), LoadAndBootWindows(), LoadAndBootWindowsCommon(), LoadReactOSSetup(), OpenBootStore(), PrepareAndDoCopyThread(), SmpTranslateSystemPartitionInformation(), and WinLdrInitializePhase1().
| UI_CONTEXT UiContext |
Definition at line 37 of file reactos.c.
Referenced by DriveDlgProc(), FileCopyCallback(), FormatCallback(), FsVolCallback(), PrepareAndDoCopyThread(), and RegistryStatus().
| const struct { ... } WizardPages[] |
Referenced by _tWinMain().
Definition at line 3521 of file reactos.c.
Referenced by PropSheetCallback(), and PrshtWndProc().