CloseNamedDevice

Closes a device previously opened with OpenNamedDevice().

Synopsis

Err CloseNamedDevice(Item devItem);

Description

This macro closes a device that was previously opened via a call to OpenNamedDevice().

Arguments

devItem
The device's item, as returned by OpenNamedDevice().

Return Value

The procedure returns 0 if the item was closed successfully or an error code (a negative value) if an error occurs. Possible error codes include:

BADITEM
The devItem argument is not an item.
ER_Kr_ItemNotOpen
The devItem argument is not an opened item.

Implementation

Macro implemented in device.h V22.

Associated Files

device.h
ANSI C Macro

See Also

OpenItem(), CloseItem(), FindItem()