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 18h set logical device b</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Device driver function 18h      Set Logical Device      b

    Set Logical Device sets the active drive number to the drive
    specified by the ldrUnit field.

    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
    Specifies the device to make active. This field contains a zero-
    based drive number.


    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 Dev17h 440Fh DeviceHeader Dev*

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