PosCxReleaseDevice function (poscx.h)

PosCxReleaseDevice is called to release a device that was previously claimed with PosCxClaimDevice. Once the device is released, the next pending claim requester is promoted.

Syntax

NTSTATUS PosCxReleaseDevice(
  [in] WDFDEVICE     device,
  [in] WDFFILEOBJECT fileObject
);

Parameters

[in] device

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

[in] fileObject

A handle to a framework file object that identifies the caller.

Return value

Possible return values are:

Value Description
STATUS_SUCCESS The device was successfully released.
STATUS_ACCESS_DENIED The calling thread is not the owner of the device.
STATUS_DEVICE_NOT_READY The PosCx library was not successfully initialized.
STATUS_INVALID_PARAMETER The specified fileObject is invalid.

Requirements

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

See also

PosCxClaimDevice