Bewerken

Delen via


WDF_PDO_EVENT_CALLBACKS structure (wdfpdo.h)

[Applies to KMDF only]

The WDF_PDO_EVENT_CALLBACKS structure is the dispatch table for a bus driver's event callback functions.

Syntax

typedef struct _WDF_PDO_EVENT_CALLBACKS {
  ULONG                                      Size;
  PFN_WDF_DEVICE_RESOURCES_QUERY             EvtDeviceResourcesQuery;
  PFN_WDF_DEVICE_RESOURCE_REQUIREMENTS_QUERY EvtDeviceResourceRequirementsQuery;
  PFN_WDF_DEVICE_EJECT                       EvtDeviceEject;
  PFN_WDF_DEVICE_SET_LOCK                    EvtDeviceSetLock;
  PFN_WDF_DEVICE_ENABLE_WAKE_AT_BUS          EvtDeviceEnableWakeAtBus;
  PFN_WDF_DEVICE_DISABLE_WAKE_AT_BUS         EvtDeviceDisableWakeAtBus;
  PFN_WDF_DEVICE_REPORTED_MISSING            EvtDeviceReportedMissing;
} WDF_PDO_EVENT_CALLBACKS, *PWDF_PDO_EVENT_CALLBACKS;

Members

Size

The size, in bytes, of this structure.

EvtDeviceResourcesQuery

A pointer to the driver's EvtDeviceResourcesQuery event callback function, or NULL.

EvtDeviceResourceRequirementsQuery

A pointer to the driver's EvtDeviceResourceRequirementsQuery event callback function, or NULL.

EvtDeviceEject

A pointer to the driver's EvtDeviceEject event callback function, or NULL.

EvtDeviceSetLock

A pointer to the driver's EvtDeviceSetLock event callback function, or NULL.

EvtDeviceEnableWakeAtBus

A pointer to the driver's EvtDeviceEnableWakeAtBus event callback function, or NULL.

EvtDeviceDisableWakeAtBus

A pointer to the driver's EvtDeviceDisableWakeAtBus event callback function, or NULL.

EvtDeviceReportedMissing

A pointer to the driver's EvtDeviceReportedMissing event callback function, or NULL. The EvtDeviceReportedMissing member is available in version 1.11 and later versions of KMDF.

Remarks

The WDF_PDO_EVENT_CALLBACKS structure is used as input to WdfPdoInitSetEventCallbacks.

Drivers must call WDF_PDO_EVENT_CALLBACKS_INIT to initialize this structure.

Requirements

Requirement Value
Minimum KMDF version 1.0
Header wdfpdo.h (include Wdf.h)

See also

WDF_FDO_EVENT_CALLBACKS

WDF_PDO_EVENT_CALLBACKS_INIT

WdfFdoInitSetEventCallbacks

WdfPdoInitSetEventCallbacks