EVT_POS_CX_DEVICE_OWNERSHIP_CHANGE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// poscx.h

EVT_POS_CX_DEVICE_OWNERSHIP_CHANGE EvtPosCxDeviceOwnershipChange;

VOID EvtPosCxDeviceOwnershipChange(
  [in]           WDFDEVICE device,
  [in, optional] WDFFILEOBJECT oldOwnerFileObj,
  [in, optional] WDFFILEOBJECT newOwnerFileObj
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-poscx-evt_pos_cx_device_ownership_change)

EVT_POS_CX_DEVICE_OWNERSHIP_CHANGE callback function

Description

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.

Parameters

device [in]

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

oldOwnerFileObj [in, optional]

The file object of the previous claim owner. This may be NULL if no previous owner.

newOwnerFileObj [in, optional]

The file object of the new claim owner. This may be NULL if the device was released without a pending claim request.