PosCxInit function (poscx.h)

PosCxInit is called to initialize the PosCx library's internal resources. The resources are tied to the device, and are released when the device goes away.

It is recommended to call this method while handling EvtDeviceAdd.

Syntax

NTSTATUS PosCxInit(
  [in] WDFDEVICE         device,
  [in] POS_CX_ATTRIBUTES *posCxAttrPtr
);

Parameters

[in] device

A handle to a framework device object that represents the device.

[in] posCxAttrPtr

A pointer to a caller-allocated and initialized POS_CX_ATTRIBUTES structure. The structure should be initialized with POS_CX_ATTRIBUTES_INIT.

Return value

An appropriate NTSTATUS error code that indicates success or failure of the initialization.

Requirements

Requirement Value
Target Platform Windows
Header poscx.h (include Poscx.h)

See also

POS_CX_ATTRIBUTES

POS_CX_ATTRIBUTES_INIT