SetDrive

int SetDrive (int driveNumber);

Purpose

Sets the current default drive.

Parameters

Input
Name Type Description
driveNumber integer The drive number of the new default drive.

The mapping between the drive number and the logical drive letter is 0 = A, 1 = B, and so on.

Values: 0—25.

Return Value

Name Type Description
result integer The result of the call.

Code Description
0 Success.
-1 Invalid drive number.