MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / Ext2QueryDisk

Function Ext2QueryDisk

Ext2Mgr/enumDisk.cpp:893–916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

891 */
892
893NT::NTSTATUS
894Ext2QueryDisk(
895 HANDLE Handle,
896 PDISK_GEOMETRY DiskGeometry
897 )
898{
899 NT::NTSTATUS status;
900 NT::IO_STATUS_BLOCK ioSb;
901
902 status = NT::ZwDeviceIoControlFile(
903 Handle, NULL, NULL, NULL, &ioSb,
904 IOCTL_DISK_GET_DRIVE_GEOMETRY,
905 DiskGeometry, sizeof(DISK_GEOMETRY),
906 DiskGeometry, sizeof(DISK_GEOMETRY));
907
908
909 if (!NT_SUCCESS(status)) {
910 goto errorout;
911 }
912
913errorout:
914
915 return status;
916}
917
918PVOLUME_DISK_EXTENTS
919Ext2QueryVolumeExtents(HANDLE hVolume)

Callers 2

Ext2LoadDisksFunction · 0.85
Ext2LoadCdromsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected