mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 16:51:39 +00:00
[SETUPLIB][REACTOS][USETUP] Turn setuplib into a DLL shared between TUI and GUI 1st-stage setups (#7523)
CORE-13525 Notes: - Most of the exported functions have been turned from default cdecl to explicit stdcall / "NTAPI". - The two InitializeSetup() phases have been collapsed to make the initialization simpler. Average reductions (percentages; see PR #7523 for actual numbers): x86 Debug builds: reactos.exe: 35.1% smss.exe : 39.8% Total (including setuplib.dll): 17.9% x86 Release builds: reactos.exe: 22.3% smss.exe : 25.0% Total (including setuplib.dll): 10.6% x64 Debug builds: reactos.exe: 40.6% smss.exe : 41.6% Total (including setuplib.dll): 20.0% x64 Release builds: reactos.exe: 22.8% smss.exe : 22.3% Total (including setuplib.dll): 10.1%
This commit is contained in:
parent
e51e5de1f8
commit
d7c1d220b5
35 changed files with 462 additions and 262 deletions
|
@ -1984,6 +1984,7 @@ GetActiveDiskPartition(
|
|||
}
|
||||
|
||||
PPARTLIST
|
||||
NTAPI
|
||||
CreatePartitionList(VOID)
|
||||
{
|
||||
PPARTLIST List;
|
||||
|
@ -2069,6 +2070,7 @@ CreatePartitionList(VOID)
|
|||
}
|
||||
|
||||
VOID
|
||||
NTAPI
|
||||
DestroyPartitionList(
|
||||
IN PPARTLIST List)
|
||||
{
|
||||
|
@ -2288,6 +2290,7 @@ SelectPartition(
|
|||
}
|
||||
|
||||
PPARTENTRY
|
||||
NTAPI
|
||||
GetNextPartition(
|
||||
IN PPARTLIST List,
|
||||
IN PPARTENTRY CurrentPart OPTIONAL)
|
||||
|
@ -2380,6 +2383,7 @@ GetNextPartition(
|
|||
}
|
||||
|
||||
PPARTENTRY
|
||||
NTAPI
|
||||
GetPrevPartition(
|
||||
IN PPARTLIST List,
|
||||
IN PPARTENTRY CurrentPart OPTIONAL)
|
||||
|
@ -2783,6 +2787,7 @@ UpdateDiskLayout(
|
|||
* @return The adjacent unpartitioned region, if it exists, or NULL.
|
||||
**/
|
||||
PPARTENTRY
|
||||
NTAPI
|
||||
GetAdjUnpartitionedEntry(
|
||||
_In_ PPARTENTRY PartEntry,
|
||||
_In_ BOOLEAN Direction)
|
||||
|
@ -2872,6 +2877,7 @@ MBRPartitionCreateChecks(
|
|||
}
|
||||
|
||||
ERROR_NUMBER
|
||||
NTAPI
|
||||
PartitionCreateChecks(
|
||||
_In_ PPARTENTRY PartEntry,
|
||||
_In_opt_ ULONGLONG SizeBytes,
|
||||
|
@ -2900,6 +2906,7 @@ PartitionCreateChecks(
|
|||
// (see VDS::CREATE_PARTITION_PARAMETERS and PPARTITION_INFORMATION_MBR/GPT for example)
|
||||
// So far we only use it as the optional type of the partition to create.
|
||||
BOOLEAN
|
||||
NTAPI
|
||||
CreatePartition(
|
||||
_In_ PPARTLIST List,
|
||||
_Inout_ PPARTENTRY PartEntry,
|
||||
|
@ -2990,6 +2997,7 @@ DismountPartition(
|
|||
}
|
||||
|
||||
BOOLEAN
|
||||
NTAPI
|
||||
DeletePartition(
|
||||
_In_ PPARTLIST List,
|
||||
_In_ PPARTENTRY PartEntry,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue