Docs » Autodocs » narrator.device » CloseDevice
CloseDevice - terminates access to the narrator device
CloseDevice(IORequest) A1
Close invalidates the IO_UNIT and IO_DEVICE fields in the IORequest block, preventing subsequent IO until another OpenDevice. CloseDevice also reduces the open count. If the count goes to 0 and the expunge bit is set, the device is expunged. If the open count goes to zero and the delayed expunge bit is not set, CloseDevice sets the expunge bit.
A valid IORequest block with its io_Message structure, and io_Device and io_Unit fields properly initialized. These fields are initialized by OpenDevice.
CloseDevice invalidates the unit and device pointers in the IORequest block.
|