17#define WIN32_NO_STATUS
77#define MAX_STRING_SIZE 1024
78#define MAX_ARGS_COUNT 256
BOOL HelpCommand(PCOMMAND pCommand)
BOOL retain_main(INT argc, LPWSTR *argv)
VOID RemoveVolume(_In_ PVOLENTRY VolumeEntry)
BOOL ListPartition(INT argc, PWSTR *argv)
BOOL DumpPartition(_In_ INT argc, _In_ LPWSTR *argv)
LIST_ENTRY VolumeListHead
ULONGLONG AlignDown(_In_ ULONGLONG Value, _In_ ULONG Alignment)
BOOL HasPrefix(_In_ PWSTR pszString, _In_ PWSTR pszPrefix, _Out_opt_ PWSTR *pszSuffix)
BOOL filesystems_main(INT argc, LPWSTR *argv)
BOOL SelectDisk(INT argc, PWSTR *argv)
BOOL online_main(INT argc, LPWSTR *argv)
BOOL attributes_main(INT argc, LPWSTR *argv)
BOOL extend_main(INT argc, LPWSTR *argv)
BOOL expand_main(INT argc, LPWSTR *argv)
LIST_ENTRY BiosDiskListHead
BOOL InterpretScript(LPWSTR line)
PPARTENTRY GetPrevUnpartitionedEntry(_In_ PPARTENTRY PartEntry)
BOOL rescan_main(INT argc, LPWSTR *argv)
struct _VOLENTRY VOLENTRY
BOOL SelectPartition(INT argc, PWSTR *argv)
enum _FORMATSTATE FORMATSTATE
BOOL detach_main(INT argc, LPWSTR *argv)
BOOL merge_main(INT argc, LPWSTR *argv)
enum _FORMATSTATE * PFORMATSTATE
BOOL UniqueIdDisk(_In_ INT argc, _In_ PWSTR *argv)
BOOL InterpretCmd(INT argc, LPWSTR *argv)
BOOL offline_main(INT argc, LPWSTR *argv)
VOID DestroyVolumeList(VOID)
BOOL assign_main(INT argc, LPWSTR *argv)
BOOL inactive_main(INT argc, LPWSTR *argv)
NTSTATUS DismountVolume(_In_ PPARTENTRY PartEntry)
NTSTATUS WritePartitions(_In_ PDISKENTRY DiskEntry)
struct _COMMAND * PCOMMAND
BOOL ListVolume(INT argc, PWSTR *argv)
BOOL CreateLogicalPartition(_In_ INT argc, _In_ PWSTR *argv)
NTSTATUS CreateVolumeList(VOID)
struct _VOLENTRY * PVOLENTRY
VOID DestroyPartitionList(VOID)
BOOL shrink_main(INT argc, LPWSTR *argv)
BOOL convert_main(INT argc, LPWSTR *argv)
struct _PARTENTRY * PPARTENTRY
struct _BIOSDISKENTRY * PBIOSDISKENTRY
BOOL CreateExtendedPartition(_In_ INT argc, _In_ PWSTR *argv)
BOOL add_main(INT argc, LPWSTR *argv)
BOOL DumpDisk(_In_ INT argc, _In_ LPWSTR *argv)
BOOL SelectVolume(INT argc, PWSTR *argv)
BOOL automount_main(INT argc, LPWSTR *argv)
BOOL clean_main(INT argc, LPWSTR *argv)
BOOL import_main(INT argc, LPWSTR *argv)
BOOL repair_main(INT argc, LPWSTR *argv)
BOOL DetailVolume(INT argc, PWSTR *argv)
BOOL format_main(INT argc, LPWSTR *argv)
NTSTATUS CreatePartitionList(VOID)
BOOL ListVirtualDisk(INT argc, PWSTR *argv)
struct _DISKENTRY DISKENTRY
enum _VOLUME_TYPE VOLUME_TYPE
BOOL help_main(INT argc, LPWSTR *argv)
BOOL IsDecString(_In_ PWSTR pszDecString)
PPARTENTRY CurrentPartition
PVOLENTRY GetVolumeFromPartition(_In_ PPARTENTRY PartEntry)
BOOL IsHexString(_In_ PWSTR pszHexString)
VOID PrintDisk(_In_ PDISKENTRY DiskEntry)
BOOL attach_main(INT argc, LPWSTR *argv)
VOID HelpCommandList(VOID)
BOOL setid_main(INT argc, LPWSTR *argv)
BOOL DeleteVolume(_In_ INT argc, _In_ PWSTR *argv)
BOOL remove_main(INT argc, LPWSTR *argv)
VOID UpdateDiskLayout(_In_ PDISKENTRY DiskEntry)
enum _VOLUME_TYPE * PVOLUME_TYPE
BOOL break_main(INT argc, LPWSTR *argv)
BOOL CreatePrimaryPartition(_In_ INT argc, _In_ PWSTR *argv)
PPARTENTRY GetNextUnpartitionedEntry(_In_ PPARTENTRY PartEntry)
BOOL compact_main(INT argc, LPWSTR *argv)
BOOL DeletePartition(_In_ INT argc, _In_ PWSTR *argv)
BOOL san_main(INT argc, LPWSTR *argv)
BOOL gpt_main(INT argc, LPWSTR *argv)
BOOL DeleteDisk(_In_ INT argc, _In_ PWSTR *argv)
ULONGLONG RoundingDivide(_In_ ULONGLONG Dividend, _In_ ULONGLONG Divisor)
PWSTR DuplicateQuotedString(_In_ PWSTR pszInString)
BOOL ListDisk(INT argc, PWSTR *argv)
struct _BIOSDISKENTRY BIOSDISKENTRY
VOID PrintVolume(_In_ PVOLENTRY VolumeEntry)
struct _DISKENTRY * PDISKENTRY
BOOL active_main(INT argc, LPWSTR *argv)
struct _PARTENTRY PARTENTRY
BOOL DetailPartition(INT argc, PWSTR *argv)
BOOL DetailDisk(INT argc, PWSTR *argv)
BOOL recover_main(INT argc, LPWSTR *argv)
#define GetPrimaryPartitionCount(DiskEntry)
#define DuplicateString(x)
CM_DISK_GEOMETRY_DEVICE_DATA DiskGeometry
CM_INT13_DRIVE_PARAMETER Int13DiskData
ULARGE_INTEGER SectorCount
UNICODE_STRING DriverName
PPARTENTRY ExtendedPartition
LIST_ENTRY LogicalPartListHead
LIST_ENTRY PrimaryPartListHead
PDRIVE_LAYOUT_INFORMATION LayoutBuffer
ULARGE_INTEGER SectorCount
struct _DISKENTRY * DiskEntry
struct _FILE_SYSTEM_ITEM * FileSystem
ULONG OnDiskPartitionNumber
ULARGE_INTEGER StartSector
PVOLUME_DISK_EXTENTS pExtents
WCHAR VolumeName[MAX_PATH]
LIST_ENTRY ListEntry
Entry in VolumesList.
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
_In_ DWORD _In_ DWORD _Out_writes_to_opt_ pcchString LPSTR pszString
_In_ LARGE_INTEGER Divisor