|
ReactOS 0.4.16-dev-1990-gfa5cf28
|
#include <stdio.h>#include <stdlib.h>#include <windef.h>#include <winbase.h>#include <winreg.h>#include <wincon.h>#include <winioctl.h>#include <ntsecapi.h>#include <errno.h>#include <strsafe.h>#include <conutils.h>#include <ndk/cmfuncs.h>#include <ndk/exfuncs.h>#include <ndk/iofuncs.h>#include <ndk/kefuncs.h>#include <ndk/mmfuncs.h>#include <ndk/obfuncs.h>#include <ndk/psfuncs.h>#include <ndk/rtlfuncs.h>#include <ndk/setypes.h>#include <ndk/umfuncs.h>#include <fmifs/fmifs.h>#include <guiddef.h>#include "guid.h"#include "resource.h"

Go to the source code of this file.
Classes | |
| struct | _COMMAND |
| struct | _MBR_PARTITION_DATA |
| struct | _GPT_PARTITION_DATA |
| struct | _PARTENTRY |
| struct | _BIOSDISKENTRY |
| struct | _DISKENTRY |
| struct | _VOLENTRY |
Macros | |
| #define | WIN32_NO_STATUS |
| #define | NTOS_MODE_USER |
| #define | MAX_STRING_SIZE 1024 |
| #define | MAX_ARGS_COUNT 256 |
Typedefs | |
| typedef struct _COMMAND | COMMAND |
| typedef struct _COMMAND * | PCOMMAND |
| typedef enum _FORMATSTATE | FORMATSTATE |
| typedef enum _FORMATSTATE * | PFORMATSTATE |
| typedef enum _VOLUME_TYPE | VOLUME_TYPE |
| typedef enum _VOLUME_TYPE * | PVOLUME_TYPE |
| typedef struct _MBR_PARTITION_DATA | MBR_PARTITION_DATA |
| typedef struct _MBR_PARTITION_DATA * | PMBR_PARTITION_DATA |
| typedef struct _GPT_PARTITION_DATA | GPT_PARTITION_DATA |
| typedef struct _GPT_PARTITION_DATA * | PGPT_PARTITION_DATA |
| typedef struct _PARTENTRY | PARTENTRY |
| typedef struct _PARTENTRY * | PPARTENTRY |
| typedef struct _BIOSDISKENTRY | BIOSDISKENTRY |
| typedef struct _BIOSDISKENTRY * | PBIOSDISKENTRY |
| typedef struct _DISKENTRY | DISKENTRY |
| typedef struct _DISKENTRY * | PDISKENTRY |
| typedef struct _VOLENTRY | VOLENTRY |
| typedef struct _VOLENTRY * | PVOLENTRY |
Enumerations | |
| enum | _FORMATSTATE { Unformatted , UnformattedOrDamaged , UnknownFormat , Formatted , Unformatted , UnformattedOrDamaged , UnknownFormat , Preformatted , Formatted } |
| enum | _VOLUME_TYPE { VOLUME_TYPE_CDROM , VOLUME_TYPE_PARTITION , VOLUME_TYPE_REMOVABLE , VOLUME_TYPE_UNKNOWN } |
Variables | |
| COMMAND | cmds [] |
| LIST_ENTRY | DiskListHead |
| LIST_ENTRY | BiosDiskListHead |
| LIST_ENTRY | VolumeListHead |
| PDISKENTRY | CurrentDisk |
| PPARTENTRY | CurrentPartition |
| PVOLENTRY | CurrentVolume |
| #define MAX_ARGS_COUNT 256 |
Definition at line 84 of file diskpart.h.
| #define MAX_STRING_SIZE 1024 |
Definition at line 83 of file diskpart.h.
| #define NTOS_MODE_USER |
Definition at line 40 of file diskpart.h.
| #define WIN32_NO_STATUS |
Definition at line 17 of file diskpart.h.
| typedef struct _BIOSDISKENTRY BIOSDISKENTRY |
| typedef struct _DISKENTRY DISKENTRY |
| typedef enum _FORMATSTATE FORMATSTATE |
| typedef struct _PARTENTRY PARTENTRY |
| typedef struct _BIOSDISKENTRY * PBIOSDISKENTRY |
| typedef struct _DISKENTRY * PDISKENTRY |
| typedef enum _FORMATSTATE * PFORMATSTATE |
| typedef struct _GPT_PARTITION_DATA * PGPT_PARTITION_DATA |
| typedef struct _MBR_PARTITION_DATA * PMBR_PARTITION_DATA |
| typedef struct _PARTENTRY * PPARTENTRY |
| typedef enum _VOLUME_TYPE * PVOLUME_TYPE |
| typedef enum _VOLUME_TYPE VOLUME_TYPE |
| Enumerator | |
|---|---|
| Unformatted | |
| UnformattedOrDamaged | |
| UnknownFormat | |
| Formatted | |
| Unformatted | |
| UnformattedOrDamaged | |
| UnknownFormat | |
| Preformatted | |
| Formatted | |
Definition at line 87 of file diskpart.h.
| Enumerator | |
|---|---|
| VOLUME_TYPE_CDROM | |
| VOLUME_TYPE_PARTITION | |
| VOLUME_TYPE_REMOVABLE | |
| VOLUME_TYPE_UNKNOWN | |
Definition at line 96 of file diskpart.h.
Definition at line 191 of file partlist.c.
Definition at line 11 of file attributes.c.
Definition at line 88 of file convert.c.
Definition at line 148 of file convert.c.
Definition at line 15 of file convert.c.
Referenced by ConvertGPT(), ConvertMBR(), CreateExtendedPartition(), and CreatePrimaryPartition().
Definition at line 16 of file create.c.
Definition at line 152 of file misc.c.
Referenced by ConvertGPT(), and CreatePrimaryGptPartition().
Definition at line 221 of file create.c.
Definition at line 1988 of file partlist.c.
Referenced by LoadSetupData(), rescan_main(), SelectPartitionPage(), UpgradeRepairPage(), and wmain().
Definition at line 682 of file create.c.
Definition at line 168 of file misc.c.
Referenced by ConvertMBR(), CreateExtendedPartition(), and CreatePrimaryPartition().
Definition at line 1772 of file partlist.c.
Referenced by rescan_main(), and wmain().
Definition at line 273 of file delete.c.
Definition at line 1491 of file partlist.c.
Definition at line 1810 of file partlist.c.
Referenced by rescan_main(), and wmain().
| NTSTATUS DismountVolume | ( | _In_ PPARTENTRY | PartEntry | ) |
Definition at line 2490 of file partlist.c.
Definition at line 48 of file dump.c.
Definition at line 146 of file dump.c.
Definition at line 84 of file misc.c.
Definition at line 129 of file misc.c.
| PPARTENTRY GetNextUnpartitionedEntry | ( | _In_ PPARTENTRY | PartEntry | ) |
Definition at line 2461 of file partlist.c.
Referenced by DeleteGptPartition(), and DeleteMbrPartition().
| PPARTENTRY GetPrevUnpartitionedEntry | ( | _In_ PPARTENTRY | PartEntry | ) |
Definition at line 2432 of file partlist.c.
Referenced by DeleteGptPartition(), and DeleteMbrPartition().
| ULONG GetPrimaryPartitionCount | ( | _In_ PDISKENTRY | DiskEntry | ) |
Definition at line 2071 of file partlist.c.
| PVOLENTRY GetVolumeFromPartition | ( | _In_ PPARTENTRY | PartEntry | ) |
Definition at line 2598 of file partlist.c.
Referenced by clean_main().
Definition at line 58 of file misc.c.
Referenced by AcpiExGetNameString(), CreateExtendedPartition(), CreateLogicalPartition(), CreatePrimaryPartition(), setid_main(), and UniqueIdDisk().
Definition at line 120 of file help.c.
Definition at line 46 of file help.c.
Referenced by help_main(), InterpretCmd(), and main().
Definition at line 16 of file help.c.
Referenced by help_main(), and InterpretCmd().
Definition at line 234 of file interpreter.c.
Referenced by wmain().
Definition at line 186 of file interpreter.c.
Referenced by RunScript().
Definition at line 14 of file misc.c.
Referenced by SelectDisk(), SelectPartition(), and SelectVolume().
Definition at line 36 of file misc.c.
Referenced by UniqueIdDisk().
Definition at line 59 of file list.c.
Definition at line 88 of file list.c.
Definition at line 366 of file list.c.
| VOID PrintDisk | ( | _In_ PDISKENTRY | DiskEntry | ) |
Definition at line 17 of file list.c.
Referenced by DetailVolume(), and ListDisk().
Definition at line 187 of file misc.c.
Referenced by DetailDisk(), DetailPartition(), and UniqueIdDisk().
Definition at line 314 of file list.c.
Referenced by DetailDisk(), DetailPartition(), and ListVolume().
| VOID ReadLayoutBuffer | ( | _In_ HANDLE | FileHandle, |
| _In_ PDISKENTRY | DiskEntry | ||
| ) |
Definition at line 1067 of file partlist.c.
Referenced by AddDiskToList(), and CreateDisk().
Definition at line 2635 of file partlist.c.
Referenced by clean_main().
Definition at line 11 of file rescan.c.
| VOID ScanForUnpartitionedGptDiskSpace | ( | PDISKENTRY | DiskEntry | ) |
Definition at line 923 of file partlist.c.
Referenced by AddDiskToList(), and ConvertGPT().
| VOID ScanForUnpartitionedMbrDiskSpace | ( | PDISKENTRY | DiskEntry | ) |
Definition at line 662 of file partlist.c.
Referenced by AddDiskToList(), ConvertMBR(), CreateExtendedPartition(), and CreatePrimaryPartition().
Definition at line 17 of file select.c.
Definition at line 119 of file select.c.
Definition at line 234 of file select.c.
Definition at line 227 of file misc.c.
Referenced by CreatePrimaryGptPartition(), setid_main(), and UniqueIdDisk().
Definition at line 17 of file uniqueid.c.
| VOID UpdateGptDiskLayout | ( | _In_ PDISKENTRY | DiskEntry, |
| _In_ BOOL | DeleteEntry | ||
| ) |
Definition at line 2344 of file partlist.c.
Referenced by CreatePrimaryGptPartition(), DeleteGptPartition(), setid_main(), and UniqueIdDisk().
| VOID UpdateMbrDiskLayout | ( | _In_ PDISKENTRY | DiskEntry | ) |
Definition at line 2167 of file partlist.c.
Referenced by active_main(), CreateExtendedPartition(), CreateLogicalPartition(), CreatePrimaryMbrPartition(), DeleteMbrPartition(), inactive_main(), setid_main(), and UniqueIdDisk().
| NTSTATUS WriteGptPartitions | ( | _In_ PDISKENTRY | DiskEntry | ) |
Definition at line 1963 of file partlist.c.
Referenced by CreatePrimaryGptPartition(), DeleteGptPartition(), setid_main(), and UniqueIdDisk().
| NTSTATUS WriteMbrPartitions | ( | _In_ PDISKENTRY | DiskEntry | ) |
Definition at line 1839 of file partlist.c.
Referenced by active_main(), CreateExtendedPartition(), CreateLogicalPartition(), CreatePrimaryMbrPartition(), DeleteMbrPartition(), inactive_main(), setid_main(), and UniqueIdDisk().
|
extern |
Definition at line 74 of file partlist.c.
Referenced by AddDiskToList(), CreatePartitionList(), DestroyPartitionList(), and EnumerateBiosDiskEntries().
|
extern |
Definition at line 21 of file main.c.
Referenced by DoCommand(), handle_arrow_key(), handle_edit_event(), help_main(), HelpCommand(), HelpCommandList(), InterpretCmd(), PrintCommandList(), TEST_IsQSForward(), TEST_MayQSForwardMockup(), test_OleCommandTarget(), and wmain().
|
extern |
Definition at line 77 of file partlist.c.
Referenced by active_main(), clean_main(), ConvertGPT(), ConvertMBR(), CreateDisk(), CreateExtendedPartition(), CreateLogicalPartition(), CreatePartitionList(), CreatePrimaryGptPartition(), CreatePrimaryMbrPartition(), CreatePrimaryPartition(), DeleteGptPartition(), DeleteMbrPartition(), DeletePartition(), DestroyPartitionList(), DetailDisk(), DetailPartition(), DumpDisk(), DumpPartition(), GetNextPartition(), GetPrevPartition(), inactive_main(), ListPartition(), PrintDisk(), SelectDisk(), SelectPartition(), SelectVolume(), setid_main(), and UniqueIdDisk().
|
extern |
Definition at line 78 of file partlist.c.
Referenced by CreatePartitionList(), and DestroyPartitionList().
|
extern |
Definition at line 79 of file partlist.c.
Referenced by CreateVolumeList(), DestroyVolumeList(), DetailVolume(), filesystems_main(), PrintVolume(), RemoveVolume(), and SelectVolume().
|
extern |
Definition at line 73 of file partlist.c.
Referenced by AddDiskToList(), CreatePartitionList(), DestroyPartitionList(), DetailVolume(), ListDisk(), and SelectDisk().
|
extern |
Definition at line 75 of file partlist.c.
Referenced by AddVolumeToList(), CreateVolumeList(), DestroyVolumeList(), DetailDisk(), DetailPartition(), GetVolumeFromPartition(), ListVolume(), and SelectVolume().