Device Function
dev_Close()
Close all layers in the device.
#include "device.h"
LResult dev_Close
(
LDevice device
);
| device | device to |
dev_Close() closes all open layer services in the device. If not all layers are in the open state, dev_Close() will attach and/or reopen them. dev_Close() does not dispose of the device.
If successful, dev_Close() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:
if (!dev_IsConnected(device))
{
dev_Close(device);
dev_Dispose(device);
}