Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:docs:fapi:dosselectdisk [2021/08/20 04:22] – prokushev | en:docs:fapi:dosselectdisk [2021/09/17 08:19] (current) – prokushev | ||
---|---|---|---|
Line 5: | Line 5: | ||
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 |
- | DosSelectDisk (DriveNumber) | + | <code c> |
+ | DosSelectDisk (DriveNumber) | ||
+ | </ | ||
- | ==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 |
| | ||
Return code descriptions are: | Return code descriptions are: | ||
Line 22: | Line 24: | ||
* 15 ERROR_INVALID_DRIVE | * 15 ERROR_INVALID_DRIVE | ||
- | ==Example Code== | + | ===== Example Code ===== |
- | ===C Binding=== | + | |
+ | ==== C Binding ==== | ||
+ | |||
+ | <code c> | ||
#define INCL_DOSFILEMGR | #define INCL_DOSFILEMGR | ||
| | ||
Line 30: | Line 34: | ||
USHORT | USHORT | ||
USHORT | USHORT | ||
+ | </ | ||
+ | ==== MASM Binding ==== | ||
- | ===MASM Binding=== | + | <code asm> |
EXTRN DosSelectDisk: | EXTRN DosSelectDisk: | ||
INCL_DOSFILEMGR | INCL_DOSFILEMGR | ||
Line 39: | Line 44: | ||
PUSH | PUSH | ||
CALL | CALL | ||
+ | </ | ||
Returns WORD | Returns WORD | ||
- | ====== Note ====== | + | ===== Note ===== |
Text based on http:// | Text based on http:// |