// poscx.h
BOOLEAN PosCxIsDeviceOwner(
[in] WDFDEVICE device,
[in] WDFFILEOBJECT fileObject
);
View the official Windows Driver Kit DDI referenceNo description available.
PosCxIsDeviceOwner checks if the caller currently owns the claim on the device.
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, usually acquired with WdfRequestGetFileObject. If this parameter is NULL, PosCxIsDeviceOwner returns TRUE if the device is not currently owned.
Returns TRUE if the caller is the device owner, or if fileObject is NULL and the device is not currently owned.
Otherwise, returns FALSE.