Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- DOS 5.0 Ref. - <b>device driver function 17h get logical device b</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Device driver function 17h      Get Logical Device      b

    Get Logical Device returns the active drive number for the
    specified drive.

    This function is used for block device drivers only.

    ------------------------------------------------------------------

    DOS calls this function only if bit 6 is set in the dhAttributes
    field of the DeviceHeader structure for the driver.

    ------------------------------------------------------------------

    ldrUnit
    Contains the device number to check and receives the active drive
    number.

        input   Specifies the drive number to check. The driver must
                determine whether the unit associated with this drive
                number has any other logical-device numbers.

        output  Specifies the active drive number (1 = A, 2 = B, 3 = C
                etc.). The driver must set this field to the drive
                number set by the most recent call to Set Logical
                Device (device driver function 18h) or to zero if the
                specified drive has no other logical-drive numbers.


    ldrStatus
    Specifies the status of the completed function. If the function
    was successful, the driver must set the done bit (bit 8).
    Otherwise, the driver must set both the error and done bits (bits
    15 and 8) and copy an error value to the low-order byte.

See Also: LogDeviceRequest Dev18h 440Eh DeviceHeader Dev*

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson