Device Function

Reopen

dev_Reopen()

Reopen all layers in a device.

Syntax
#include "device.h"

LResult  dev_Reopen
    (
         LDevice  device
    );
devicedevice to reopen
Description

dev_Reopen() returns all layers in the device to the open state.

Return Values

If successful, dev_Reopen() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:

See Also

dev_Open()
dev_Close()

Example
if ((result = dev_Disconnect(device)) < 0)
{
    LOG("Disconnect failure", dev_ErrorMessage(result));

    if ((result = dev_Reopen(device)) < 0)
    {
        LOG("Reopen failure", dev_ErrorMessage(result));
    }
}