ReactOS 0.4.16-dev-297-gc569aee
|
Go to the source code of this file.
Classes | |
struct | _VOLENTRY |
struct | _PARTENTRY |
struct | _DISKENTRY |
struct | _BIOSDISKENTRY |
struct | _PARTLIST |
struct | _PARTITION |
struct | _PARTITION_SECTOR |
struct | BIOS_DISK |
Macros | |
#define | PARTITION_EISA 0x12 |
#define | PARTITION_HIBERNATION 0x84 |
#define | PARTITION_DIAGNOSTIC 0xA0 |
#define | PARTITION_DELL 0xDE |
#define | PARTITION_IBM 0xFE |
#define | IsOEMPartition(PartitionType) |
#define | PARTITION_TBL_SIZE 4 |
#define | PARTITION_MAGIC 0xAA55 |
#define | EFI_PMBR_OSTYPE_EFI 0xEE |
#define | GetPartEntryOffsetInBytes(PartEntry) ((PartEntry)->StartSector.QuadPart * (PartEntry)->DiskEntry->BytesPerSector) |
#define | GetPartEntrySizeInBytes(PartEntry) ((PartEntry)->SectorCount.QuadPart * (PartEntry)->DiskEntry->BytesPerSector) |
#define | GetDiskSizeInBytes(DiskEntry) ((DiskEntry)->SectorCount.QuadPart * (DiskEntry)->BytesPerSector) |
Typedefs | |
typedef enum _FORMATSTATE | FORMATSTATE |
typedef enum _FORMATSTATE * | PFORMATSTATE |
typedef struct _PARTENTRY | PARTENTRY |
typedef struct _PARTENTRY * | PPARTENTRY |
typedef struct _VOLENTRY | VOLENTRY |
typedef struct _VOLENTRY * | PVOLENTRY |
typedef struct _DISKENTRY | DISKENTRY |
typedef struct _DISKENTRY * | PDISKENTRY |
typedef struct _BIOSDISKENTRY | BIOSDISKENTRY |
typedef struct _BIOSDISKENTRY * | PBIOSDISKENTRY |
typedef struct _PARTLIST | PARTLIST |
typedef struct _PARTLIST * | PPARTLIST |
typedef struct _PARTITION | PARTITION |
typedef struct _PARTITION * | PPARTITION |
typedef struct _PARTITION_SECTOR | PARTITION_SECTOR |
typedef struct _PARTITION_SECTOR * | PPARTITION_SECTOR |
typedef struct BIOS_DISK * | PBIOS_DISK |
Enumerations | |
enum | _FORMATSTATE { Unformatted , UnformattedOrDamaged , UnknownFormat , Formatted , Unformatted , UnformattedOrDamaged , UnknownFormat , Preformatted , Formatted } |
#define EFI_PMBR_OSTYPE_EFI 0xEE |
Definition at line 196 of file partlist.h.
#define GetDiskSizeInBytes | ( | DiskEntry | ) | ((DiskEntry)->SectorCount.QuadPart * (DiskEntry)->BytesPerSector) |
Definition at line 257 of file partlist.h.
#define GetPartEntryOffsetInBytes | ( | PartEntry | ) | ((PartEntry)->StartSector.QuadPart * (PartEntry)->DiskEntry->BytesPerSector) |
Definition at line 251 of file partlist.h.
#define GetPartEntrySizeInBytes | ( | PartEntry | ) | ((PartEntry)->SectorCount.QuadPart * (PartEntry)->DiskEntry->BytesPerSector) |
Definition at line 254 of file partlist.h.
#define IsOEMPartition | ( | PartitionType | ) |
Definition at line 22 of file partlist.h.
#define PARTITION_DELL 0xDE |
Definition at line 19 of file partlist.h.
#define PARTITION_DIAGNOSTIC 0xA0 |
Definition at line 18 of file partlist.h.
#define PARTITION_EISA 0x12 |
Definition at line 16 of file partlist.h.
#define PARTITION_HIBERNATION 0x84 |
Definition at line 17 of file partlist.h.
#define PARTITION_IBM 0xFE |
Definition at line 20 of file partlist.h.
#define PARTITION_MAGIC 0xAA55 |
Definition at line 193 of file partlist.h.
#define PARTITION_TBL_SIZE 4 |
Definition at line 191 of file partlist.h.
typedef struct _BIOSDISKENTRY BIOSDISKENTRY |
typedef struct _DISKENTRY DISKENTRY |
typedef enum _FORMATSTATE FORMATSTATE |
typedef struct _PARTENTRY PARTENTRY |
Definition at line 42 of file partlist.h.
typedef struct _PARTITION PARTITION |
typedef struct _PARTITION_SECTOR PARTITION_SECTOR |
typedef struct BIOS_DISK * PBIOS_DISK |
typedef struct _BIOSDISKENTRY * PBIOSDISKENTRY |
typedef struct _DISKENTRY * PDISKENTRY |
typedef enum _FORMATSTATE * PFORMATSTATE |
typedef struct _PARTENTRY * PPARTENTRY |
Definition at line 42 of file partlist.h.
typedef struct _PARTITION * PPARTITION |
typedef struct _PARTITION_SECTOR * PPARTITION_SECTOR |
Enumerator | |
---|---|
Unformatted | |
UnformattedOrDamaged | |
UnknownFormat | |
Formatted | |
Unformatted | |
UnformattedOrDamaged | |
UnknownFormat | |
Preformatted | |
Formatted |
Definition at line 32 of file partlist.h.
Definition at line 67 of file partlist.c.
Referenced by InitializePartitionEntry(), and ScanForUnpartitionedDiskSpace().
Definition at line 79 of file partlist.c.
Referenced by PeFmtCreateSection().
BOOLEAN CreatePartition | ( | _In_ PPARTLIST | List, |
_Inout_ PPARTENTRY | PartEntry, | ||
_In_opt_ ULONGLONG | SizeBytes, | ||
_In_opt_ ULONG_PTR | PartitionInfo | ||
) |
Definition at line 2903 of file partlist.c.
Referenced by CreatePartitionPage(), DoCreatePartition(), InitSystemPartition(), and SelectPartitionPage().
Definition at line 1987 of file partlist.c.
BOOLEAN DeletePartition | ( | _In_ PPARTLIST | List, |
_In_ PPARTENTRY | PartEntry, | ||
_Out_opt_ PPARTENTRY * | FreeRegion | ||
) |
Definition at line 2993 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().
PPARTENTRY FindSupportedSystemPartition | ( | IN PPARTLIST | List, |
IN BOOLEAN | ForceSelect, | ||
IN PDISKENTRY AlternativeDisk | OPTIONAL, | ||
IN PPARTENTRY AlternativePart | OPTIONAL | ||
) |
Definition at line 3218 of file partlist.c.
Referenced by InitSystemPartition().
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().
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().
PPARTENTRY GetPrevPartition | ( | IN PPARTLIST | List, |
IN PPARTENTRY CurrentPart | OPTIONAL | ||
) |
Definition at line 2383 of file partlist.c.
Referenced by ScrollUpDownPartitionList().
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.
BOOLEAN IsPartitionActive | ( | IN PPARTENTRY | PartEntry | ) |
Definition at line 1907 of file partlist.c.
Referenced by GetActiveDiskPartition(), SelectPartitionPage(), and SetActivePartition().
BOOLEAN IsSuperFloppy | ( | _In_ PDISKENTRY | DiskEntry | ) |
Definition at line 600 of file partlist.c.
Referenced by AddDiskToList(), InstallBootManagerAndBootEntries(), InstallBootManagerAndBootEntriesWorker(), MBRPartitionCreateChecks(), and xHalIoWritePartitionTable().
ERROR_NUMBER PartitionCreateChecks | ( | _In_ PPARTENTRY | PartEntry, |
_In_opt_ ULONGLONG | SizeBytes, | ||
_In_opt_ ULONG_PTR | PartitionInfo | ||
) |
Definition at line 2875 of file partlist.c.
Referenced by CreatePartition(), DriveDlgProc(), and SelectPartitionPage().
Definition at line 95 of file partlist.c.
Referenced by CreatePartitionPage(), DriveDlgProc(), IsMediumLargeEnough(), ListPartition(), PrettifySize1(), PrettifySize2(), PrintDisk(), and PrintVolume().
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 3518 of file partlist.c.
Referenced by InitSystemPartition().
VOID SetMBRPartitionType | ( | IN PPARTENTRY | PartEntry, |
IN UCHAR | PartitionType | ||
) |
Definition at line 3891 of file partlist.c.
Referenced by FormatPartition().
Definition at line 3867 of file partlist.c.
Referenced by UpdateRegistry().
NTSTATUS WritePartitions | ( | IN PDISKENTRY | DiskEntry | ) |
Definition at line 3582 of file partlist.c.
Referenced by active_main(), CreateExtendedPartition(), CreateLogicalPartition(), CreatePrimaryPartition(), DeletePartition(), FormatPartition(), inactive_main(), setid_main(), UniqueIdDisk(), and WritePartitionsToDisk().
Definition at line 3745 of file partlist.c.
Referenced by FsVolCommitOpsQueue().