disknum (ULONG) - input

      New default-drive number.

      The value 1 means drive A, 2 means drive B, 3 means drive C, and so on. The maximum possible value is 26, which corresponds to drive Z. Values outside this range will cause an error.

    ulrc (APIRET) - returns

      Return Code.

      DosSetDefaultDisk returns one of the following values:

    • NO_ERROR 15
        ERROR_INVALID_DRIVE
      For a full list of error codes, see Errors.


    [Back] [Next]