Home |
Function RTFCheckDiskBufferSize Function RTFCreateMasterBootRecord Function RTFCreateGPTPartition Function RTFGetDeviceIndex |
Function RTFGetDeviceIndexRTFGetDeviceIndex determines the device list index of the device hosting a given disk, drive, or file: int RTFGetDeviceIndex(const char * DriveName); ParametersDriveNamePointer to a valid disk, drive, or file name (e.g., a root directory such as "C:\"). Only the name's drive information is evaluated. return valueIf the function succeeds, it returns the device list index of the device hosting the given disk, drive, or file. If it fails, the return value is a negative error code. Unlike RTFGetPartitionInfo, RTFGetDeviceIndex does not access any physical disk. It will succeed even if disk I/O is currently not possible, for example, because no media is inserted.
|