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 0ch ioctl write b c</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Device driver function 0Ch      IOCTL Write             b   c

    IOCTL Write transfers data from a buffer to a device driver.

    This function can be used for both block and character device
    drivers.

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

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

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

    irwrUnit
    Specifies the device to which data is to be written. This field is
    used for block device drivers only.


    irwrStatus
    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.


    irwrBuffer
    Contains the 32-bit address of the buffer containing data to write
    to the device.


    irwrBytes
    Contains the number of bytes to write and receives the number of
    bytes written.

        input   Specifies the number of bytes to write. This number
                must not exceed the amount of data in the specified
                buffer.

        output  Specifies the number of bytes written. This number
                cannot exceed the requested number of bytes.

See Also: IOCTLRWRequest Dev03h 4403h 4405h DeviceHeader Dev*

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