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 0eh close device b c</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Device driver function 0Eh      Close Device            b   c

    Close Device informs the driver that a file device or character
    device is being closed.

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

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

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

    DOS calls this function whenever an application closes a file or
    device. This function can be used in conjunction with Open Device
    (device driver function 0Dh) to manage internal buffers and device
    initialization.

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

    ocrUnit
    Specifies the device on which the file is being closed. This field
    is used with block device drivers only.

    
    ocrStatus
    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: OpenCloseRequest Dev0Dh 3Eh DeviceHeader Dev*

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