pdisknum (PULONG) - output

      Address of the number of the default drive.

      The value 1 means drive A, 2 means drive B, 3 means drive C, and so on. The maximum possible value is 26, which corresponds to drive Z.

    plogical (PULONG) - output

      Address of the bit map where the system returns the mapping of the logical drives.

      This bit map is stored in the low-order portion of the 32-bit area.

      Logical drives A to Z have one-to-one mapping with bit positions 0 to 25 of the map; for example, bit 0 represents drive A, bit 1 represents drive B, and so on. The settings of these bits indicate which drives exist, as follows:

    • The logical drive does not exist. 1
        The logical drive exists.

      ulrc (APIRET) - returns

        Return Code.

        DosQueryCurrentDisk returns the following value:

      • NO_ERROR

        For a full list of error codes, see Errors.


      [Back] [Next]