WDF_FDO_EVENT_CALLBACKS structure (wdffdo.h)
[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 EVT_WDF_DEVICE_FILTER_RESOURCE_REQUIREMENTS event callback function, or NULL.
EvtDeviceFilterRemoveResourceRequirements
A pointer to the driver's EVT_WDF_DEVICE_FILTER_RESOURCE_REQUIREMENTS 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
Requirement | Value |
---|---|
Minimum KMDF version | 1.0 |
Header | wdffdo.h (include Wdf.h) |