ReactOS 0.4.16-dev-816-g135a9a9
|
#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 2530 of file partlist.c.
#define GetPrimaryPartitionCount | ( | DiskEntry | ) | GetPartitionCount(&(DiskEntry)->PrimaryPartListHead) |
Definition at line 2527 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 NTAPI CreatePartition | ( | _In_ PPARTLIST | List, |
_Inout_ PPARTENTRY | PartEntry, | ||
_In_opt_ ULONGLONG | SizeBytes, | ||
_In_opt_ ULONG_PTR | PartitionInfo | ||
) |
Definition at line 2910 of file partlist.c.
Referenced by CreatePartitionPage(), DoCreatePartition(), InitSystemPartition(), and SelectPartitionPage().
Definition at line 1988 of file partlist.c.
Referenced by LoadSetupData(), rescan_main(), SelectPartitionPage(), UpgradeRepairPage(), and wmain().
BOOLEAN NTAPI DeletePartition | ( | _In_ PPARTLIST | List, |
_In_ PPARTENTRY | PartEntry, | ||
_Out_opt_ PPARTENTRY * | FreeRegion | ||
) |
Definition at line 3001 of file partlist.c.
Referenced by DeletePartitionPage(), and DoDeletePartition().
Definition at line 2074 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 2965 of file partlist.c.
Referenced by DeletePartition().
Definition at line 327 of file partlist.c.
Referenced by CreatePartitionList().
PPARTENTRY FindSupportedSystemPartition | ( | IN PPARTLIST | List, |
IN BOOLEAN | ForceSelect, | ||
IN PDISKENTRY AlternativeDisk | OPTIONAL, | ||
IN PPARTENTRY AlternativePart | OPTIONAL | ||
) |
Definition at line 3226 of file partlist.c.
Referenced by InitSystemPartition().
|
static |
Definition at line 1930 of file partlist.c.
Referenced by CreatePartitionList(), FindSupportedSystemPartition(), and SetActivePartition().
PPARTENTRY NTAPI 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 2791 of file partlist.c.
Referenced by DeletePartition(), DoCreatePartition(), and DoDeletePartition().
PDISKENTRY GetDiskByBiosNumber | ( | _In_ PPARTLIST | List, |
_In_ ULONG | HwDiskNumber | ||
) |
Definition at line 2128 of file partlist.c.
PDISKENTRY GetDiskByNumber | ( | _In_ PPARTLIST | List, |
_In_ ULONG | DiskNumber | ||
) |
Definition at line 2151 of file partlist.c.
Referenced by SelectPartition().
Definition at line 2174 of file partlist.c.
Referenced by ResolveArcNameManually().
PDISKENTRY GetDiskBySignature | ( | _In_ PPARTLIST | List, |
_In_ ULONG | Signature | ||
) |
Definition at line 2204 of file partlist.c.
Referenced by ResolveArcNameManually().
|
static |
Definition at line 105 of file partlist.c.
Referenced by AddDiskToList().
PPARTENTRY NTAPI GetNextPartition | ( | IN PPARTLIST | List, |
IN PPARTENTRY CurrentPart | OPTIONAL | ||
) |
Definition at line 2294 of file partlist.c.
Referenced by ScrollUpDownPartitionList().
PPARTENTRY GetPartition | ( | _In_ PDISKENTRY | DiskEntry, |
_In_ ULONG | PartitionNumber | ||
) |
Definition at line 2227 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 2508 of file partlist.c.
PPARTENTRY NTAPI GetPrevPartition | ( | IN PPARTLIST | List, |
IN PPARTENTRY CurrentPart | OPTIONAL | ||
) |
Definition at line 2387 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 2483 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 2492 of file partlist.c.
Referenced by UpdateDiskLayout().
BOOLEAN IsSuperFloppy | ( | _In_ PDISKENTRY | DiskEntry | ) |
Definition at line 600 of file partlist.c.
Referenced by AddDiskToList(), InstallBootManagerAndBootEntries(), InstallBootManagerAndBootEntriesWorker(), MBRPartitionCreateChecks(), and xHalIoWritePartitionTable().
|
static |
Definition at line 3138 of file partlist.c.
Referenced by FindSupportedSystemPartition().
|
static |
Definition at line 2827 of file partlist.c.
Referenced by PartitionCreateChecks().
ERROR_NUMBER NTAPI PartitionCreateChecks | ( | _In_ PPARTENTRY | PartEntry, |
_In_opt_ ULONGLONG | SizeBytes, | ||
_In_opt_ ULONG_PTR | PartitionInfo | ||
) |
Definition at line 2881 of file partlist.c.
Referenced by CreatePartition(), DriveDlgProc(), and SelectPartitionPage().
|
static |
Definition at line 2537 of file partlist.c.
Referenced by UpdateDiskLayout().
Definition at line 95 of file partlist.c.
Referenced by CreatePartitionPage(), DriveDlgProc(), IsMediumLargeEnough(), 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 2268 of file partlist.c.
Referenced by EnumerateInstallations(), and SelectPartitionPage().
BOOLEAN SetActivePartition | ( | IN PPARTLIST | List, |
IN PPARTENTRY | PartEntry, | ||
IN PPARTENTRY OldActivePart | OPTIONAL | ||
) |
Definition at line 3526 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 3899 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 3810 of file partlist.c.
Referenced by SetMountedDeviceValues().
Definition at line 3875 of file partlist.c.
Referenced by UpdateRegistry().
|
static |
Definition at line 280 of file partlist.c.
Referenced by EnumerateBiosDiskEntries().
|
static |
Definition at line 2589 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 3590 of file partlist.c.
Referenced by active_main(), CreateExtendedPartition(), CreateLogicalPartition(), CreatePrimaryPartition(), DeletePartition(), FormatPartition(), inactive_main(), setid_main(), UniqueIdDisk(), and WritePartitionsToDisk().
Definition at line 3753 of file partlist.c.
Referenced by FsVolCommitOpsQueue().