Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:docs:fapi:dosselectdisk [2018/08/29 13:27] – created prokushev | en:docs:fapi:dosselectdisk [2021/09/17 08:19] (current) – prokushev | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{page> | ||
| + | |||
| + | ====== DosSelectDisk ====== | ||
| 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== | + | <code c> |
| - | ; | + | DosSelectDisk |
| + | </ | ||
| - | ==Return Code== | + | ===== Parameters ===== |
| - | rc (USHORT) - return | + | |
| + | *DriveNumber ([[USHORT]]) - input : New default drive number, where 1 = A and 2 = B and so on. | ||
| + | |||
| + | ===== Return Code ===== | ||
| + | |||
| + | rc ([[USHORT]]) - return | ||
| + | | ||
| Return code descriptions are: | Return code descriptions are: | ||
| - | * 0 | ||
| - | * 15 ERROR_INVALID_DRIVE | ||
| - | ==Example Code== | + | * 0 |
| - | ===C Binding=== | + | * 15 ERROR_INVALID_DRIVE |
| - | < | + | |
| - | #define INCL_DOSFILEMGR | + | |
| - | USHORT | + | ===== Example Code ===== |
| - | USHORT | + | |
| - | USHORT | + | |
| - | </ | + | |
| - | ===MASM Binding=== | + | ==== C Binding ==== |
| - | < | + | |
| - | EXTRN DosSelectDisk: | + | |
| - | INCL_DOSFILEMGR | + | |
| - | PUSH | + | <code c> |
| - | CALL | + | #define INCL_DOSFILEMGR |
| + | |||
| + | USHORT | ||
| + | USHORT | ||
| + | | ||
| + | </ | ||
| - | Returns WORD | + | ==== MASM Binding ==== |
| - | </ | + | |
| + | <code asm> | ||
| + | EXTRN DosSelectDisk: | ||
| + | INCL_DOSFILEMGR | ||
| + | | ||
| + | PUSH | ||
| + | CALL | ||
| + | </ | ||
| + | Returns WORD | ||
| - | ====== Note ====== | + | ===== Note ===== |
| Text based on http:// | Text based on http:// | ||




