Device Function

Attach

dev_Attach()

Attach all layers in the device.

Syntax
#include "device.h"

LResult dev_Attach
    (
        LDevice    device
    );
devicedevice to attach
Description

dev_Attach() attempts to attach all layers in the device. If it fails, some layers may be attached and others may be detached.

Return Values

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

See Also

dev_Detach()

Example
if ((result = dev_Attach(device)) < 0)
{
    LOG("Attach failure", dev_ErrorMessage(result));
}