Differences
This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
en:docs:fapi:dosselectdisk [2018/08/29 13:27] – created prokushev | en:docs:fapi:dosselectdisk [2018/09/02 05:22] – prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{logos: | ||
+ | |||
+ | ====== FDosSelectDisk ====== | ||
This call selects the drive specified as the default drive for the calling process. | This call selects the drive specified as the default drive for the calling process. | ||
==Syntax== | ==Syntax== | ||
+ | |||
| | ||
==Parameters== | ==Parameters== | ||
- | ;DriveNumber (USHORT) - input : New default drive number, where 1 = A and 2 = B and so on. | + | |
+ | *DriveNumber (USHORT) - input : New default drive number, where 1 = A and 2 = B and so on. | ||
==Return Code== | ==Return Code== | ||
- | rc (USHORT) - return | + | |
+ | rc (USHORT) - return | ||
+ | | ||
Return code descriptions are: | Return code descriptions are: | ||
- | * 0 | + | |
- | * 15 ERROR_INVALID_DRIVE | + | |
+ | * 15 ERROR_INVALID_DRIVE | ||
==Example Code== | ==Example Code== | ||
===C Binding=== | ===C Binding=== | ||
- | <PRE> | ||
- | #define INCL_DOSFILEMGR | ||
- | USHORT | + | #define INCL_DOSFILEMGR |
- | USHORT | + | |
- | USHORT | + | |
- | </ | + | USHORT |
+ | USHORT | ||
===MASM Binding=== | ===MASM Binding=== | ||
- | <PRE> | ||
- | EXTRN DosSelectDisk: | ||
- | INCL_DOSFILEMGR | ||
- | PUSH | + | EXTRN DosSelectDisk: |
- | CALL | + | INCL_DOSFILEMGR |
+ | |||
+ | | ||
+ | CALL | ||
Returns WORD | Returns WORD | ||
- | </ | ||
- | |||
====== Note ====== | ====== Note ====== |