Expand Minimize

WDF_FDO_EVENT_CALLBACKS structure

[Applies to KMDF only]

The WDF_FDO_EVENT_CALLBACKS structure contains pointers to a function driver's PnP event callback functions.

Syntax


typedef struct _WDF_FDO_EVENT_CALLBACKS {
  ULONG                                       Size;
  PFN_WDF_DEVICE_FILTER_RESOURCE_REQUIREMENTS EvtDeviceFilterAddResourceRequirements;
  PFN_WDF_DEVICE_FILTER_RESOURCE_REQUIREMENTS EvtDeviceFilterRemoveResourceRequirements;
  PFN_WDF_DEVICE_REMOVE_ADDED_RESOURCES       EvtDeviceRemoveAddedResources;
} WDF_FDO_EVENT_CALLBACKS, *PWDF_FDO_EVENT_CALLBACKS;

Members

Size

The size, in bytes, of this structure.

EvtDeviceFilterAddResourceRequirements

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

EvtDeviceFilterRemoveResourceRequirements

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

EvtDeviceRemoveAddedResources

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

Remarks

The WDF_FDO_EVENT_CALLBACKS structure is used as input to the WdfFdoInitSetEventCallbacks method.

Drivers must call WDF_FDO_EVENT_CALLBACKS_INIT to initialize the structure.

A driver that specifies an EvtDeviceFilterAddResourceRequirements event callback function must also specify an EvtDeviceRemoveAddedResources event callback function.

Requirements

Minimum KMDF version

1.0

Header

Wdffdo.h (include Wdf.h)

See also

WDF_FDO_EVENT_CALLBACKS_INIT
WdfFdoInitSetEventCallbacks
WDF_PDO_EVENT_CALLBACKS
WdfPdoInitSetEventCallbacks

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft