Bindings: C, MASM
This call selects the drive specified as the default drive for the calling process.
DosSelectDisk (DriveNumber)
DriveNumber (USHORT) - input New default drive number, where 1 = A and 2 = B and so on.
rc (USHORT) - return Return code descriptions are:
0 NO_ERROR 15 ERROR_INVALID_DRIVE