function (ULONG) - input
Possible values are shown in the following list:
pBuf (PVOID) - input
The output data for each function is shown in the following list (all lengths are in bytes):
┌──────────┬──────────┬────────────────────────────────────────┐│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 09h Physical Disk │ │ │ │Control IOCtl Commands. │ ├──────────┼──────────┼────────────────────────────────────────┤ │ 3 │ 0 │None - pointer must be zero. │ └──────────┴──────────┴────────────────────────────────────────┘
cbBuf (ULONG) - input
pParams (PVOID) - input
The input parameters required for each function are as follows (all lengths are in bytes):
┌──────────┬─────────────┬─────────────────────────────────────┐│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. │ └──────────┴─────────────┴─────────────────────────────────────┘
The ASCIIZ string used to specify the partitionable disk must be of the following format:
number : <null byte>Where:
number
cbParams (ULONG) - input
ulrc (APIRET) - returns
DosPhysicalDisk returns one of the following values: