|
ReactOS 0.4.16-dev-2104-gb84fa49
|
#include <stdio.h>#include <stdlib.h>#include <windef.h>#include <winbase.h>#include <winnls.h>#include <winreg.h>#include <wincon.h>#include <winioctl.h>#include <winuser.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 <ntddscsi.h>#include <ntddstor.h>#include <mountmgr.h>#include <fmifs/fmifs.h>#include <guiddef.h>#include <diskguid.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 |
| #define | SIZE_1KB (1024ULL) |
| #define | SIZE_10KB (10ULL * 1024ULL) |
| #define | SIZE_1MB (1024ULL * 1024ULL) |
| #define | SIZE_10MB (10ULL * 1024ULL * 1024ULL) |
| #define | SIZE_1GB (1024ULL * 1024ULL * 1024ULL) |
| #define | SIZE_10GB (10ULL * 1024ULL * 1024ULL * 1024ULL) |
| #define | SIZE_1TB (1024ULL * 1024ULL * 1024ULL * 1024ULL) |
| #define | SIZE_10TB (10ULL * 1024ULL * 1024ULL * 1024ULL * 1024ULL) |
Typedefs | |
| typedef enum _EXIT_CODE | EXIT_CODE |
| 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 | _EXIT_CODE { EXIT_SUCCESS = 0 , EXIT_FATAL , EXIT_CMD_ARG , EXIT_FILE , EXIT_SERVICE , EXIT_SYNTAX , EXIT_EXIT } |
| 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 97 of file diskpart.h.
| #define MAX_STRING_SIZE 1024 |
Definition at line 96 of file diskpart.h.
| #define NTOS_MODE_USER |
Definition at line 42 of file diskpart.h.
Definition at line 258 of file diskpart.h.
Definition at line 260 of file diskpart.h.
Definition at line 264 of file diskpart.h.
Definition at line 257 of file diskpart.h.
Definition at line 259 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 _EXIT_CODE EXIT_CODE |
| 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 | |
|---|---|
| EXIT_SUCCESS | |
| EXIT_FATAL | |
| EXIT_CMD_ARG | |
| EXIT_FILE | |
| EXIT_SERVICE | |
| EXIT_SYNTAX | |
| EXIT_EXIT | |
Definition at line 73 of file diskpart.h.
| Enumerator | |
|---|---|
| Unformatted | |
| UnformattedOrDamaged | |
| UnknownFormat | |
| Formatted | |
| Unformatted | |
| UnformattedOrDamaged | |
| UnknownFormat | |
| Preformatted | |
| Formatted | |
Definition at line 100 of file diskpart.h.
| Enumerator | |
|---|---|
| VOLUME_TYPE_CDROM | |
| VOLUME_TYPE_PARTITION | |
| VOLUME_TYPE_REMOVABLE | |
| VOLUME_TYPE_UNKNOWN | |
Definition at line 109 of file diskpart.h.
Definition at line 189 of file partlist.c.
Definition at line 181 of file mountmgr.c.
Referenced by assign_main().
Definition at line 261 of file mountmgr.c.
Referenced by assign_main().
Definition at line 12 of file attributes.c.
Definition at line 16 of file automount.c.
Definition at line 16 of file clean.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 214 of file create.c.
Definition at line 152 of file misc.c.
Referenced by ConvertGPT(), CreateEfiPartition(), CreateMsrPartition(), and CreatePrimaryGptPartition().
Definition at line 427 of file create.c.
Definition at line 635 of file create.c.
Definition at line 1988 of file partlist.c.
Referenced by LoadSetupData(), rescan_main(), SelectPartitionPage(), UpgradeRepairPage(), and wmain().
Definition at line 1094 of file create.c.
Definition at line 168 of file misc.c.
Referenced by ConvertMBR(), CreateExtendedPartition(), and CreatePrimaryPartition().
Definition at line 1967 of file partlist.c.
Referenced by rescan_main(), and wmain().
Definition at line 338 of file mountmgr.c.
Referenced by assign_main(), and remove_main().
Definition at line 274 of file delete.c.
Definition at line 1611 of file partlist.c.
Definition at line 2005 of file partlist.c.
Referenced by rescan_main(), and wmain().
| NTSTATUS DismountVolume | ( | _In_ PPARTENTRY | PartEntry | ) |
Definition at line 2687 of file partlist.c.
Definition at line 84 of file misc.c.
Definition at line 129 of file misc.c.
Definition at line 88 of file filesystems.c.
Definition at line 95 of file format.c.
Definition at line 46 of file mountmgr.c.
Referenced by automount_main().
| PPARTENTRY GetNextUnpartitionedEntry | ( | _In_ PPARTENTRY | PartEntry | ) |
Definition at line 2658 of file partlist.c.
Referenced by DeleteGptPartition(), and DeleteMbrPartition().
| PPARTENTRY GetPrevUnpartitionedEntry | ( | _In_ PPARTENTRY | PartEntry | ) |
Definition at line 2629 of file partlist.c.
Referenced by DeleteGptPartition(), and DeleteMbrPartition().
| ULONG GetPrimaryPartitionCount | ( | _In_ PDISKENTRY | DiskEntry | ) |
Definition at line 2266 of file partlist.c.
| PVOLENTRY GetVolumeFromPartition | ( | _In_ PPARTENTRY | PartEntry | ) |
Definition at line 2795 of file partlist.c.
Referenced by clean_main().
Definition at line 58 of file misc.c.
Referenced by AcpiExGetNameString(), assign_main(), CreateEfiPartition(), CreateExtendedPartition(), CreateLogicalPartition(), CreateMsrPartition(), CreatePrimaryPartition(), format_main(), gpt_main(), remove_main(), setid_main(), and UniqueIdDisk().
Definition at line 121 of file help.c.
Referenced by InterpretCmd(), and main().
Definition at line 16 of file help.c.
Referenced by help_main(), and InterpretCmd().
Definition at line 16 of file inactive.c.
Definition at line 232 of file interpreter.c.
Referenced by wmain().
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 295 of file misc.c.
Referenced by DetailDisk().
| VOID PrintDisk | ( | _In_ PDISKENTRY | DiskEntry | ) |
Definition at line 83 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 471 of file list.c.
Referenced by DetailDisk(), DetailPartition(), and ListVolume().
| VOID ReadLayoutBuffer | ( | _In_ HANDLE | FileHandle, |
| _In_ PDISKENTRY | DiskEntry | ||
| ) |
Definition at line 1065 of file partlist.c.
Referenced by AddDiskToList(), and CreateDisk().
Definition at line 15 of file remove.c.
Definition at line 2832 of file partlist.c.
Referenced by clean_main().
Definition at line 12 of file rescan.c.
| VOID ScanForUnpartitionedGptDiskSpace | ( | PDISKENTRY | DiskEntry | ) |
Definition at line 921 of file partlist.c.
Referenced by AddDiskToList(), and ConvertGPT().
| VOID ScanForUnpartitionedMbrDiskSpace | ( | PDISKENTRY | DiskEntry | ) |
Definition at line 660 of file partlist.c.
Referenced by AddDiskToList(), ConvertMBR(), CreateExtendedPartition(), and CreatePrimaryPartition().
Definition at line 90 of file mountmgr.c.
Referenced by automount_main().
Definition at line 16 of file setid.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 2539 of file partlist.c.
Referenced by CreateEfiPartition(), CreateMsrPartition(), CreatePrimaryGptPartition(), DeleteGptPartition(), gpt_main(), setid_main(), and UniqueIdDisk().
| VOID UpdateMbrDiskLayout | ( | _In_ PDISKENTRY | DiskEntry | ) |
Definition at line 2362 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 2158 of file partlist.c.
Referenced by CreateEfiPartition(), CreateMsrPartition(), CreatePrimaryGptPartition(), DeleteGptPartition(), gpt_main(), setid_main(), and UniqueIdDisk().
| NTSTATUS WriteMbrPartitions | ( | _In_ PDISKENTRY | DiskEntry | ) |
Definition at line 2034 of file partlist.c.
Referenced by active_main(), CreateExtendedPartition(), CreateLogicalPartition(), CreatePrimaryMbrPartition(), DeleteMbrPartition(), inactive_main(), setid_main(), and UniqueIdDisk().
|
extern |
Definition at line 72 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 75 of file partlist.c.
Referenced by active_main(), clean_main(), ConvertGPT(), ConvertMBR(), CreateDisk(), CreateEfiPartition(), CreateExtendedPartition(), CreateLogicalPartition(), CreateMsrPartition(), CreatePartitionList(), CreatePrimaryGptPartition(), CreatePrimaryMbrPartition(), CreatePrimaryPartition(), DeleteGptPartition(), DeleteMbrPartition(), DeletePartition(), DestroyPartitionList(), DetailDisk(), DetailPartition(), DumpDisk(), DumpPartition(), GetNextPartition(), GetPrevPartition(), gpt_main(), inactive_main(), ListPartition(), PrintDisk(), SelectDisk(), SelectPartition(), SelectVolume(), setid_main(), and UniqueIdDisk().
|
extern |
Definition at line 76 of file partlist.c.
Referenced by CreatePartitionList(), and DestroyPartitionList().
|
extern |
Definition at line 77 of file partlist.c.
Referenced by assign_main(), CreateVolumeList(), DestroyVolumeList(), DetailVolume(), filesystems_main(), format_main(), PrintVolume(), remove_main(), RemoveVolume(), and SelectVolume().
|
extern |
Definition at line 71 of file partlist.c.
Referenced by AddDiskToList(), CreatePartitionList(), DestroyPartitionList(), DetailVolume(), ListDisk(), and SelectDisk().
|
extern |
Definition at line 73 of file partlist.c.
Referenced by AddVolumeToList(), CreateVolumeList(), DestroyVolumeList(), DetailDisk(), DetailPartition(), GetVolumeFromPartition(), ListVolume(), and SelectVolume().