[Windows 95 only.]
Retrieves information about the specified drive. This call only works under Windows 95. It will fail if called from exclusive MS-DOS mode.
mov ax, 440Dh ; Generic IOCTL
mov bx, DriveNum ; See below
mov ch, DeviceCat ; See below
mov cl, 6Fh ; Get drive map info
mov dx, seg DriveMapInfo ; See below
mov ds, dx
mov dx, offset DriveMapInfo
int 21h
jc error_handler ; Carry set means error
08h | FAT32, FAT16, or FAT12 drive. |
48h | FAT32, FAT16, or FAT12 drive. This value is supported on Windows 95 OEM Service Release 2 and later. |
Note: Because this call may be implemented in the device driver, the 48h form of this call may fail on FAT16 or FAT12 media. Therefore, applications making the 48h form of this call must fall back on the 08h form if the 48h call fails.
DRIVE_MAP_INFO struc
dmiAllocationLength db ?
dmiInfoLength db ?
dmiFlags db ?
dmiInt13Unit db ?
dmiAssociatedDriveMap dd ?
dmiPartitionStartRBA dq ?
DRIVE_MAP_INFO ends