Home |
Function GetDiskGeometry |
Function GetDiskGeometryDriver function GetDiskGeometry is called by RTFiles-32 to inquire the size and other characteristics of a disk: int RTFAPI GetDiskGeometry(void * DriveData, RTFPartitionRecord * DiskGeometry, BYTE * MediaDescriptor); ParametersDriveDataPointer to the DeviceData found in the device list for the device. DiskGeometryPointer to an RTFPartitionRecord record to be returned. For disks with more than 4G sectors, a record of type RTFPartitionRecord64 should be returned. MediaDescriptorPointer to a media descriptor to be returned. return valueIf the function succeeds, it returns RTF_NO_ERROR. If it fails, the return value is a negative error code.
|