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>function 440dh /68h sense media type dos 5.0+</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 440Dh /68h     Sense Media Type                             DOS 5.0+

    Returns the media type for the specified block device.

        Entry   AX    = 440Dh
                BX    = Drive number (0 = default, 1 = A, etc.)
                CH    = 08h (device category, must be 8)
                CL    = 68h
                DS:DX = Pointer to 2-byte input buffer

        Return  Input buffer filled
                or
                AX = Error code, if CF is set
                     | 01h Invalid function
                     | 05h Access denied
                     | ??  Device-dependent error

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

    Format of input buffer:

                Offset  Description
                00h     1 = media type is the default value
                        0 = other type
                01h     02h = 720K disk
                        07h = 1.44 MB disk
                        09h = 2.88 MB disk

    This function returns an error value of 5 (access denied) if the
    media type for the specified drive cannot be determined or the
    given drive is not ready.

See Also: 59h

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