ReactOS 0.4.16-dev-237-gd6eebaa
|
#include "precomp.h"
#include <ntddscsi.h>
#include "partlist.h"
#include "volutil.h"
#include "fsrec.h"
#include "registry.h"
#include <debug.h>
#include <pshpack1.h>
#include <poppack.h>
Go to the source code of this file.
Classes | |
struct | _REG_DISK_MOUNT_INFO |
Macros | |
#define | NDEBUG |
#define | ROOT_NAME L"\\Registry\\Machine\\HARDWARE\\DESCRIPTION\\System\\MultifunctionAdapter" |
#define | GetPrimaryPartitionCount(DiskEntry) GetPartitionCount(&(DiskEntry)->PrimaryPartListHead) |
#define | GetLogicalPartitionCount(DiskEntry) |
Typedefs | |
typedef struct _REG_DISK_MOUNT_INFO | REG_DISK_MOUNT_INFO |
typedef struct _REG_DISK_MOUNT_INFO * | PREG_DISK_MOUNT_INFO |
#define GetLogicalPartitionCount | ( | DiskEntry | ) |
Definition at line 2526 of file partlist.c.
#define GetPrimaryPartitionCount | ( | DiskEntry | ) | GetPartitionCount(&(DiskEntry)->PrimaryPartListHead) |
Definition at line 2523 of file partlist.c.
#define NDEBUG |
Definition at line 18 of file partlist.c.
#define ROOT_NAME L"\\Registry\\Machine\\HARDWARE\\DESCRIPTION\\System\\MultifunctionAdapter" |
typedef struct _REG_DISK_MOUNT_INFO * PREG_DISK_MOUNT_INFO |
Definition at line 1445 of file partlist.c.
Referenced by CreatePartitionList().
|
static |
Definition at line 740 of file partlist.c.
Referenced by InitializePartitionEntry(), and ScanForUnpartitionedDiskSpace().
|
static |
Definition at line 985 of file partlist.c.
Referenced by AddDiskToList().
Definition at line 67 of file partlist.c.
Referenced by InitializePartitionEntry(), and ScanForUnpartitionedDiskSpace().
Definition at line 79 of file partlist.c.
Referenced by PeFmtCreateSection().
Definition at line 138 of file partlist.c.
Referenced by CreatePartition(), CreatePartitionList(), and DeletePartition().
|
static |
Definition at line 692 of file partlist.c.
Referenced by AddLogicalDiskSpace(), InitializePartitionEntry(), and ScanForUnpartitionedDiskSpace().
BOOLEAN CreatePartition | ( | _In_ PPARTLIST | List, |
_Inout_ PPARTENTRY | PartEntry, | ||
_In_opt_ ULONGLONG | SizeBytes, | ||
_In_opt_ ULONG_PTR | PartitionInfo | ||
) |
Definition at line 2905 of file partlist.c.
Referenced by CreatePartitionPage(), DoCreatePartition(), InitSystemPartition(), and SelectPartitionPage().
Definition at line 1987 of file partlist.c.
Referenced by LoadSetupData(), rescan_main(), SelectPartitionPage(), UpgradeRepairPage(), and wmain().
BOOLEAN DeletePartition | ( | _In_ PPARTLIST | List, |
_In_ PPARTENTRY | PartEntry, | ||
_Out_opt_ PPARTENTRY * | FreeRegion | ||
) |
Definition at line 2998 of file partlist.c.
Referenced by DeletePartitionPage(), and DoDeletePartition().
Definition at line 2072 of file partlist.c.
Referenced by QuitPage(), rescan_main(), SelectPartitionPage(), and wmain().
|
static |
Definition at line 729 of file partlist.c.
Referenced by DeletePartition(), and DestroyPartitionList().
|
static |
Definition at line 237 of file partlist.c.
Referenced by EnumerateBiosDiskEntries().
|
static |
Definition at line 207 of file partlist.c.
Referenced by EnumerateBiosDiskEntries().
|
static |
Definition at line 2963 of file partlist.c.
Referenced by DeletePartition().
Definition at line 327 of file partlist.c.
Referenced by CreatePartitionList().
ERROR_NUMBER ExtendedPartitionCreationChecks | ( | _In_ PPARTENTRY | PartEntry | ) |
Definition at line 2867 of file partlist.c.
Referenced by CreatePartition(), and SelectPartitionPage().
PPARTENTRY FindSupportedSystemPartition | ( | IN PPARTLIST | List, |
IN BOOLEAN | ForceSelect, | ||
IN PDISKENTRY AlternativeDisk | OPTIONAL, | ||
IN PPARTENTRY AlternativePart | OPTIONAL | ||
) |
Definition at line 3223 of file partlist.c.
Referenced by InitSystemPartition().
|
static |
Definition at line 1930 of file partlist.c.
Referenced by CreatePartitionList(), FindSupportedSystemPartition(), and SetActivePartition().
PPARTENTRY GetAdjUnpartitionedEntry | ( | _In_ PPARTENTRY | PartEntry, |
_In_ BOOLEAN | Direction | ||
) |
Retrieves, if any, the unpartitioned disk region that is adjacent (next or previous) to the specified partition.
[in] | PartEntry | Partition from where to find the adjacent unpartitioned region. |
[in] | Direction | TRUE or FALSE to search the next or previous region, respectively. |
Definition at line 2786 of file partlist.c.
Referenced by DeletePartition(), DoCreatePartition(), and DoDeletePartition().
PDISKENTRY GetDiskByBiosNumber | ( | _In_ PPARTLIST | List, |
_In_ ULONG | HwDiskNumber | ||
) |
Definition at line 2126 of file partlist.c.
PDISKENTRY GetDiskByNumber | ( | _In_ PPARTLIST | List, |
_In_ ULONG | DiskNumber | ||
) |
Definition at line 2149 of file partlist.c.
Referenced by SelectPartition().
Definition at line 2172 of file partlist.c.
Referenced by ResolveArcNameManually().
PDISKENTRY GetDiskBySignature | ( | _In_ PPARTLIST | List, |
_In_ ULONG | Signature | ||
) |
Definition at line 2202 of file partlist.c.
Referenced by ResolveArcNameManually().
|
static |
Definition at line 105 of file partlist.c.
Referenced by AddDiskToList().
PPARTENTRY GetNextPartition | ( | IN PPARTLIST | List, |
IN PPARTENTRY CurrentPart | OPTIONAL | ||
) |
Definition at line 2291 of file partlist.c.
Referenced by ScrollUpDownPartitionList().
PPARTENTRY GetPartition | ( | _In_ PDISKENTRY | DiskEntry, |
_In_ ULONG | PartitionNumber | ||
) |
Definition at line 2225 of file partlist.c.
Referenced by ResolveArcNameManually(), and SelectPartition().
|
static |
Counts the number of partitioned disk regions in a given partition list.
Definition at line 2504 of file partlist.c.
PPARTENTRY GetPrevPartition | ( | IN PPARTLIST | List, |
IN PPARTENTRY CurrentPart | OPTIONAL | ||
) |
Definition at line 2383 of file partlist.c.
Referenced by ScrollUpDownPartitionList().
|
static |
Definition at line 1857 of file partlist.c.
Referenced by CreatePartitionList(), FindSupportedSystemPartition(), and SetActivePartition().
|
static |
Definition at line 770 of file partlist.c.
Referenced by CreatePartition().
|
static |
Definition at line 900 of file partlist.c.
Referenced by AddPartitionToDisk(), and WritePartitions().
|
static |
Definition at line 946 of file partlist.c.
Referenced by AddPartitionToDisk(), and CreatePartition().
Definition at line 921 of file partlist.c.
Referenced by AddPartitionToDisk(), and WritePartitionsToDisk().
|
static |
Definition at line 626 of file partlist.c.
Referenced by AddPartitionToDisk().
BOOLEAN IsDiskSuperFloppy | ( | _In_ const DRIVE_LAYOUT_INFORMATION * | Layout, |
_In_opt_ const ULONGLONG * | DiskSize | ||
) |
Definition at line 542 of file partlist.c.
Referenced by IsSuperFloppy().
BOOLEAN IsDiskSuperFloppy2 | ( | _In_ const DISK_PARTITION_INFO * | DiskInfo, |
_In_opt_ const ULONGLONG * | DiskSize, | ||
_In_ const PARTITION_INFORMATION * | PartitionInfo | ||
) |
Definition at line 491 of file partlist.c.
Referenced by InstallBootManagerAndBootEntries(), IsDiskSuperFloppy(), and IsDiskSuperFloppyEx().
BOOLEAN IsDiskSuperFloppyEx | ( | _In_ const DRIVE_LAYOUT_INFORMATION_EX * | LayoutEx, |
_In_opt_ const ULONGLONG * | DiskSize | ||
) |
Definition at line 563 of file partlist.c.
|
inlinestatic |
Definition at line 2479 of file partlist.c.
Referenced by UpdateDiskLayout().
BOOLEAN IsPartitionActive | ( | IN PPARTENTRY | PartEntry | ) |
Definition at line 1907 of file partlist.c.
Referenced by GetActiveDiskPartition(), SelectPartitionPage(), and SetActivePartition().
|
inlinestatic |
Definition at line 2488 of file partlist.c.
Referenced by UpdateDiskLayout().
BOOLEAN IsSuperFloppy | ( | _In_ PDISKENTRY | DiskEntry | ) |
Definition at line 600 of file partlist.c.
Referenced by AddDiskToList(), ExtendedPartitionCreationChecks(), InstallBootManagerAndBootEntries(), InstallBootManagerAndBootEntriesWorker(), PartitionCreationChecks(), and xHalIoWritePartitionTable().
|
static |
Definition at line 3135 of file partlist.c.
Referenced by FindSupportedSystemPartition().
ERROR_NUMBER PartitionCreationChecks | ( | _In_ PPARTENTRY | PartEntry | ) |
Definition at line 2822 of file partlist.c.
Referenced by CreatePartition(), DriveDlgProc(), and SelectPartitionPage().
|
static |
Definition at line 2533 of file partlist.c.
Referenced by UpdateDiskLayout().
Definition at line 95 of file partlist.c.
Referenced by CreatePartitionPage(), DriveDlgProc(), IsPartitionLargeEnough(), ListPartition(), PrettifySize1(), PrettifySize2(), PrintDisk(), and PrintVolume().
|
static |
Definition at line 1095 of file partlist.c.
Referenced by AddDiskToList().
PPARTENTRY SelectPartition | ( | _In_ PPARTLIST | List, |
_In_ ULONG | DiskNumber, | ||
_In_ ULONG | PartitionNumber | ||
) |
Definition at line 2266 of file partlist.c.
Referenced by EnumerateInstallations(), and SelectPartitionPage().
BOOLEAN SetActivePartition | ( | IN PPARTLIST | List, |
IN PPARTENTRY | PartEntry, | ||
IN PPARTENTRY OldActivePart | OPTIONAL | ||
) |
Definition at line 3523 of file partlist.c.
Referenced by InitSystemPartition().
|
static |
Definition at line 1292 of file partlist.c.
Referenced by UpdateDiskSignatures().
VOID SetMBRPartitionType | ( | IN PPARTENTRY | PartEntry, |
IN UCHAR | PartitionType | ||
) |
Definition at line 3896 of file partlist.c.
Referenced by FormatPartition().
Assign a "\DosDevices\#:" mount point drive letter to a disk partition or volume, specified by a given disk signature and starting partition offset.
Definition at line 3807 of file partlist.c.
Referenced by SetMountedDeviceValues().
Definition at line 3872 of file partlist.c.
Referenced by UpdateRegistry().
|
static |
Definition at line 280 of file partlist.c.
Referenced by EnumerateBiosDiskEntries().
|
static |
Definition at line 2585 of file partlist.c.
Referenced by active_main(), CreateExtendedPartition(), CreateLogicalPartition(), CreatePartition(), CreatePrimaryPartition(), DeletePartition(), inactive_main(), setid_main(), and UniqueIdDisk().
Definition at line 1354 of file partlist.c.
Referenced by CreatePartitionList().
Definition at line 1384 of file partlist.c.
Referenced by CreatePartitionList().
NTSTATUS WritePartitions | ( | IN PDISKENTRY | DiskEntry | ) |
Definition at line 3587 of file partlist.c.
Referenced by active_main(), CreateExtendedPartition(), CreateLogicalPartition(), CreatePrimaryPartition(), DeletePartition(), FormatPartition(), inactive_main(), setid_main(), UniqueIdDisk(), and WritePartitionsToDisk().
Definition at line 3750 of file partlist.c.
Referenced by FsVolCommitOpsQueue().