EVT_POS_CX_DEVICE_OWNERSHIP_CHANGE callback function (poscx.h)
The EVT_POS_CX_DEVICE_OWNERSHIP_CHANGE callback is called during the API claim ownership transition. The driver is expected to set the device back to a default state in this routine.
Syntax
EVT_POS_CX_DEVICE_OWNERSHIP_CHANGE EvtPosCxDeviceOwnershipChange;
void EvtPosCxDeviceOwnershipChange(
[in] WDFDEVICE device,
[in, optional] WDFFILEOBJECT oldOwnerFileObj,
[in, optional] WDFFILEOBJECT newOwnerFileObj
)
{...}
Parameters
[in] device
A handle to a framework device object that represents the device.
[in, optional] oldOwnerFileObj
The file object of the previous claim owner. This may be NULL if no previous owner.
[in, optional] newOwnerFileObj
The file object of the new claim owner. This may be NULL if the device was released without a pending claim request.
Return value
None
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | poscx.h (include Poscx.h) |