25 DiskSize = DiskEntry->SectorCount.QuadPart *
28 if (DiskSize >= 10737418240)
47 DiskEntry->DiskNumber,
120 if (PartSize >= 10737418240)
125 else if (PartSize >= 10485760)
138 if (PartOffset >= 10737418240)
141 lpOffsetUnit =
L"GB";
143 else if (PartOffset >= 10485760)
146 lpOffsetUnit =
L"MB";
151 lpOffsetUnit =
L"KB";
176 if (PartSize >= 10737418240)
181 else if (PartSize >= 10485760)
194 if (PartOffset >= 10737418240)
197 lpOffsetUnit =
L"GB";
199 else if (PartOffset >= 10485760)
202 lpOffsetUnit =
L"MB";
207 lpOffsetUnit =
L"KB";
237 VolumeSize = VolumeEntry->Size.QuadPart;
238 if (VolumeSize >= 10737418240)
243 else if (VolumeSize >= 10485760)
253 switch (VolumeEntry->VolumeType)
256 pszVolumeType =
L"DVD";
259 pszVolumeType =
L"Partition";
262 pszVolumeType =
L"Removable";
266 pszVolumeType =
L"Unknown";
272 VolumeEntry->VolumeNumber,
273 VolumeEntry->DriveLetter,
274 (VolumeEntry->pszLabel) ? VolumeEntry->pszLabel :
L"",
275 (VolumeEntry->pszFilesystem) ? VolumeEntry->pszFilesystem :
L"",
277 VolumeSize, pszSizeUnit);
void ConPuts(FILE *fp, LPCWSTR psz)
void ConResPrintf(FILE *fp, UINT nID,...)
void ConResPuts(FILE *fp, UINT nID)
BOOL ListPartition(INT argc, PWSTR *argv)
BOOL ListVolume(INT argc, PWSTR *argv)
BOOL ListVirtualDisk(INT argc, PWSTR *argv)
VOID PrintDisk(_In_ PDISKENTRY DiskEntry)
BOOL ListDisk(INT argc, PWSTR *argv)
VOID PrintVolume(_In_ PVOLENTRY VolumeEntry)
#define IDS_LIST_DISK_LINE
#define IDS_LIST_PARTITION_NO_DISK
#define IDS_LIST_DISK_HEAD
#define IDS_LIST_VOLUME_LINE
#define IDS_LIST_VOLUME_HEAD
#define IDS_LIST_DISK_FORMAT
#define IDS_LIST_PARTITION_HEAD
#define IDS_LIST_PARTITION_LINE
#define IDS_LIST_VOLUME_FORMAT
#define IDS_LIST_PARTITION_FORMAT
LIST_ENTRY VolumeListHead
#define IsContainerPartition(PartitionType)
ULONGLONG RoundingDivide(IN ULONGLONG Dividend, IN ULONGLONG Divisor)
base of all file and directory entries
LIST_ENTRY LogicalPartListHead
LIST_ENTRY PrimaryPartListHead
struct _LIST_ENTRY * Flink
ULARGE_INTEGER SectorCount
ULARGE_INTEGER StartSector
#define CONTAINING_RECORD(address, type, field)
static PPARTENTRY CurrentPartition