// poscx.h
NTSTATUS PosCxReleaseDevice(
[in] WDFDEVICE device,
[in] WDFFILEOBJECT fileObject
);
View the official Windows Driver Kit DDI referenceNo description available.
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.
device [in]A handle to a framework device object that represents the device.
fileObject [in]A handle to a framework file object that identifies the caller.
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. |