ReactOS 0.4.15-dev-8434-g155a7c7
|
#include "precomp.h"
#include <ntddscsi.h>
#include "partlist.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 2464 of file partlist.c.
#define GetPrimaryPartitionCount | ( | DiskEntry | ) | GetPartitionCount(&(DiskEntry)->PrimaryPartListHead) |
Definition at line 2461 of file partlist.c.
#define NDEBUG |
Definition at line 16 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 1382 of file partlist.c.
Referenced by CreatePartitionList().
|
static |
Definition at line 678 of file partlist.c.
Referenced by InitializePartitionEntry(), and ScanForUnpartitionedDiskSpace().
|
static |
Definition at line 841 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 640 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 2844 of file partlist.c.
Referenced by CreatePartitionPage(), InitSystemPartition(), and SelectPartitionPage().
Definition at line 1923 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 3002 of file partlist.c.
Referenced by DeletePartitionPage().
Definition at line 2007 of file partlist.c.
Referenced by QuitPage(), rescan_main(), SelectPartitionPage(), and wmain().
|
static |
Definition at line 247 of file partlist.c.
Referenced by EnumerateBiosDiskEntries().
|
static |
Definition at line 217 of file partlist.c.
Referenced by EnumerateBiosDiskEntries().
NTSTATUS DismountVolume | ( | IN PPARTENTRY | PartEntry | ) |
Definition at line 2895 of file partlist.c.
Referenced by AddPartitionToDisk(), clean_main(), and DeletePartition().
Definition at line 337 of file partlist.c.
Referenced by CreatePartitionList().
ERROR_NUMBER ExtendedPartitionCreationChecks | ( | _In_ PPARTENTRY | PartEntry | ) |
Definition at line 2806 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 3215 of file partlist.c.
Referenced by InitSystemPartition().
|
static |
Definition at line 1867 of file partlist.c.
Referenced by CreatePartitionList(), FindSupportedSystemPartition(), and SetActivePartition().
|
static |
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 2725 of file partlist.c.
Referenced by DeletePartition().
PDISKENTRY GetDiskByBiosNumber | ( | _In_ PPARTLIST | List, |
_In_ ULONG | HwDiskNumber | ||
) |
Definition at line 2064 of file partlist.c.
PDISKENTRY GetDiskByNumber | ( | _In_ PPARTLIST | List, |
_In_ ULONG | DiskNumber | ||
) |
Definition at line 2087 of file partlist.c.
Referenced by SelectPartition().
Definition at line 2110 of file partlist.c.
Referenced by ResolveArcNameManually().
PDISKENTRY GetDiskBySignature | ( | _In_ PPARTLIST | List, |
_In_ ULONG | Signature | ||
) |
Definition at line 2140 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 2229 of file partlist.c.
Referenced by ScrollUpDownPartitionList().
PPARTENTRY GetPartition | ( | _In_ PDISKENTRY | DiskEntry, |
_In_ ULONG | PartitionNumber | ||
) |
Definition at line 2163 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 2442 of file partlist.c.
PPARTENTRY GetPrevPartition | ( | IN PPARTLIST | List, |
IN PPARTENTRY CurrentPart | OPTIONAL | ||
) |
Definition at line 2321 of file partlist.c.
Referenced by ScrollUpDownPartitionList().
|
static |
Definition at line 1794 of file partlist.c.
Referenced by CreatePartitionList(), FindSupportedSystemPartition(), and SetActivePartition().
|
static |
Definition at line 708 of file partlist.c.
Referenced by CreatePartition().
|
static |
Definition at line 574 of file partlist.c.
Referenced by AddPartitionToDisk().
|
inlinestatic |
Definition at line 2417 of file partlist.c.
Referenced by UpdateDiskLayout().
BOOLEAN IsPartitionActive | ( | IN PPARTENTRY | PartEntry | ) |
Definition at line 1844 of file partlist.c.
Referenced by GetActiveDiskPartition(), SelectPartitionPage(), and SetActivePartition().
|
inlinestatic |
Definition at line 2426 of file partlist.c.
Referenced by UpdateDiskLayout().
BOOLEAN IsSuperFloppy | ( | IN PDISKENTRY | DiskEntry | ) |
Definition at line 501 of file partlist.c.
Referenced by AddDiskToList(), BootLoaderHardDiskPage(), ExtendedPartitionCreationChecks(), PartitionCreationChecks(), and xHalIoWritePartitionTable().
|
static |
Definition at line 3135 of file partlist.c.
Referenced by FindSupportedSystemPartition().
ERROR_NUMBER PartitionCreationChecks | ( | _In_ PPARTENTRY | PartEntry | ) |
Definition at line 2761 of file partlist.c.
Referenced by CreatePartition(), and SelectPartitionPage().
|
static |
Definition at line 2471 of file partlist.c.
Referenced by UpdateDiskLayout().
Definition at line 95 of file partlist.c.
Referenced by CreatePartitionPage(), IsPartitionLargeEnough(), ListPartition(), PrettifySize1(), PrettifySize2(), PrintDisk(), PrintDiskData(), PrintPartitionData(), and PrintVolume().
|
static |
Definition at line 1032 of file partlist.c.
Referenced by AddDiskToList().
PPARTENTRY SelectPartition | ( | _In_ PPARTLIST | List, |
_In_ ULONG | DiskNumber, | ||
_In_ ULONG | PartitionNumber | ||
) |
Definition at line 2204 of file partlist.c.
Referenced by EnumerateInstallations(), and SelectPartitionPage().
BOOLEAN SetActivePartition | ( | IN PPARTLIST | List, |
IN PPARTENTRY | PartEntry, | ||
IN PPARTENTRY OldActivePart | OPTIONAL | ||
) |
Definition at line 3515 of file partlist.c.
Referenced by InitSystemPartition().
|
static |
Definition at line 1229 of file partlist.c.
Referenced by UpdateDiskSignatures().
VOID SetMBRPartitionType | ( | IN PPARTENTRY | PartEntry, |
IN UCHAR | PartitionType | ||
) |
Definition at line 3897 of file partlist.c.
Referenced by FormatPartition().
BOOLEAN SetMountedDeviceValue | ( | IN WCHAR | Letter, |
IN ULONG | Signature, | ||
IN LARGE_INTEGER | StartingOffset | ||
) |
Definition at line 3760 of file partlist.c.
Referenced by SetMountedDeviceValues().
Definition at line 3821 of file partlist.c.
Referenced by UpdateRegistry().
|
static |
Definition at line 290 of file partlist.c.
Referenced by EnumerateBiosDiskEntries().
|
static |
Definition at line 2523 of file partlist.c.
Referenced by active_main(), CreateExtendedPartition(), CreateLogicalPartition(), CreatePartition(), CreatePrimaryPartition(), DeletePartition(), inactive_main(), setid_main(), and UniqueIdDisk().
Definition at line 1291 of file partlist.c.
Referenced by CreatePartitionList().
Definition at line 1321 of file partlist.c.
Referenced by CreatePartitionList().
NTSTATUS WritePartitions | ( | IN PDISKENTRY | DiskEntry | ) |
Definition at line 3579 of file partlist.c.
Referenced by active_main(), CreateExtendedPartition(), CreateLogicalPartition(), CreatePrimaryPartition(), DeletePartition(), FormatPartition(), inactive_main(), setid_main(), UniqueIdDisk(), and WritePartitionsToDisk().
Definition at line 3723 of file partlist.c.
Referenced by FsVolCommitOpsQueue().