Device Function

Open

dev_Open()

Open all layers in a device.

Syntax
#include "device.h"

LResult  dev_Open
    (
         LDevice  device
    );
devicedevice to open
Description

dev_Open() opens and stacks the protocol services listed in the device definition.

Return Values

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

See Also

dev_Close()
dev_Reopen()

Example
if ((result = dev_Open(device)) < 0)
{
    LOG("Open failure", dev_ErrorMessage(result));
    dev_Dispose(device);
}