This call obtains information about partitionable disks.
DosPhysicalDisk
Function (USHORT) - input
Value
FUNCTION DATALEN RETURNED INFORMATION 1 2 Total number of partitionable disks in the system, 1-based. 2 2 Handle for the specified partitionable disk for the category 9 IOCTLs. 3 0 None. Pointer must be zero.
FUNCTION PARMLEN INPUT PARAMETERS 1 0 None. Must be set to zero. 2 String length ASCIIZ string that specifies the partitionable disk. 3 2 Handle obtained from function 2.
Note: All lengths are in bytes.
rc (USHORT) - return
The ASCIIZ string used to specify the partitionable disk must be of the following format:
number : <null byte>
Where:
number
The handle returned for the specified partitionable disk can only be used with the DosDevIOCtl call for the Category 9 Generic IOCTL. Use of the handle for a physical partitionable disk is not permitted for handle-based file system function calls, such as DosRead or DosClose.