en:docs:fapi:dosqcurdisk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
en:docs:fapi:dosqcurdisk [2018/08/28 09:00] – created prokusheven:docs:fapi:dosqcurdisk [2021/09/12 01:49] prokushev
Line 1: Line 1:
 +{{page>en:templates:fapiint}}
 +
 +====== 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, LogicalDriveMap)+ 
 +<code c> 
 +DosQCurDisk (DriveNumber, LogicalDriveMap) 
 +</code>
  
 ==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:
  '''Value  Definition'''  '''Value  Definition'''
       A       A
       B       B
       .       .
-;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:
  '''Value  Definition'''  '''Value  Definition'''
        The logical drive does not exist.        The logical drive does not exist.
Line 18: Line 26:
 rc (USHORT) - return rc (USHORT) - return
 Return code description is: Return code description is:
-* 0 NO_ERROR+ 
 +  * 0 NO_ERROR
  
 ==Bindings== ==Bindings==
 ===C Binding=== ===C Binding===
-<PRE>+<code c>
 #define INCL_DOSFILEMGR #define INCL_DOSFILEMGR
  
Line 30: Line 39:
  
 USHORT  rc;              /* return code */ USHORT  rc;              /* return code */
-</PRE>+</code>
  
 ===MASM Binding=== ===MASM Binding===
-<PRE>+<code asm>
 EXTRN  DosQCurDisk:FAR EXTRN  DosQCurDisk:FAR
 INCL_DOSFILEMGR     EQU 1 INCL_DOSFILEMGR     EQU 1
Line 42: Line 51:
  
 Returns WORD Returns WORD
 +</code>
  
 === Note === === Note ===