Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
en:docs:fapi:dosqcurdisk [2018/08/28 09:00] – created prokushev | en:docs:fapi:dosqcurdisk [2021/09/12 01:49] – prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{page> | ||
+ | |||
+ | ====== DosQCurDisk ====== | ||
+ | |||
This call determines the current default drive for the requesting process. | This call determines the current default drive for the requesting process. | ||
==Syntax== | ==Syntax== | ||
- | DosQCurDisk (DriveNumber, | + | |
+ | <code c> | ||
+ | DosQCurDisk (DriveNumber, | ||
+ | </ | ||
==Parameters== | ==Parameters== | ||
- | ;DriveNumber (PUSHORT) - output : Address of the number of the default drive, for example: | + | |
+ | * DriveNumber (PUSHORT) - output : Address of the number of the default drive, for example: | ||
''' | ''' | ||
| | ||
| | ||
| | ||
- | ;LogicalDriveMap (PULONG) - output : Address of the bit map (stored in the low-order portion of the 32-bit, doubleword area) where the system returns the mapping of the logical drives. Logical Drives A to Z have a one-to-one mapping with the bit positions 0 to 25 of the map; for example, bit 0 is drive A, bit 1 is drive B, and so forth. The settings of these bits indicate which drives exist: | + | * LogicalDriveMap (PULONG) - output : Address of the bit map (stored in the low-order portion of the 32-bit, doubleword area) where the system returns the mapping of the logical drives. Logical Drives A to Z have a one-to-one mapping with the bit positions 0 to 25 of the map; for example, bit 0 is drive A, bit 1 is drive B, and so forth. The settings of these bits indicate which drives exist: |
''' | ''' | ||
| | ||
Line 18: | Line 26: | ||
rc (USHORT) - return | rc (USHORT) - return | ||
Return code description is: | Return code description is: | ||
- | * 0 NO_ERROR | + | |
+ | | ||
==Bindings== | ==Bindings== | ||
===C Binding=== | ===C Binding=== | ||
- | <PRE> | + | <code c> |
#define INCL_DOSFILEMGR | #define INCL_DOSFILEMGR | ||
Line 30: | Line 39: | ||
USHORT | USHORT | ||
- | </PRE> | + | </code> |
===MASM Binding=== | ===MASM Binding=== | ||
- | <PRE> | + | <code asm> |
EXTRN DosQCurDisk: | EXTRN DosQCurDisk: | ||
INCL_DOSFILEMGR | INCL_DOSFILEMGR | ||
Line 42: | Line 51: | ||
Returns WORD | Returns WORD | ||
+ | </ | ||
=== Note === | === Note === |