// wdfchildlist.h
EVT_WDF_CHILD_LIST_DEVICE_REENUMERATED EvtWdfChildListDeviceReenumerated;
BOOLEAN EvtWdfChildListDeviceReenumerated(
[in] WDFCHILDLIST ChildList,
[in] WDFDEVICE OldDevice,
[in] PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER OldAddressDescription,
[out] PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER NewAddressDescription
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF only]
A driver's EvtChildListDeviceReenumerated event callback function enables the driver to approve or cancel a reenumeration of a specified device.
ChildList [in]A handle to a framework child list object.
OldDevice [in]A handle to a framework device object.
OldAddressDescription [in]Optional pointer to a WDF_CHILD_ADDRESS_DESCRIPTION_HEADER structure that identifies a child address description, or NULL. If provided, this structure contains address information that was relevant before the device was reenumerated.
NewAddressDescription [out]Optional pointer to a WDF_CHILD_ADDRESS_DESCRIPTION_HEADER structure that identifies a child address description, or NULL. If provided, the callback function fills in this structure with new address information about the device.
The EvtChildListDeviceReenumerated callback function returns TRUE to approve the reenumeration or FALSE to cancel it.
If a bus driver is using dynamic enumeration, it can register an EvtChildListDeviceReenumerated callback function by calling WdfFdoInitSetDefaultChildListConfig or WdfChildListCreate.
Framework-based bus drivers can receive a request from a function driver to reenumerate a particular child device. For more information about these requests, see Handling Enumeration Requests.
The bus driver's EvtChildListDeviceReenumerated callback function enables the driver to approve or cancel the reenumeration. The OldDevice parameter identifies the device, and the ChildList parameter identifies the child list that the device is a member of. If the callback function returns TRUE to approve the reenumeration, or if the callback function does not exist, the framework does the following:
If the bus driver uses address descriptions, the EvtChildListDeviceReenumerated callback function receives pointers to two address descriptions. One points to the address description that is associated with the old device object. The other points to an address description that the callback function must fill in with information that describes the device's current location.
For more information about dynamic enumeration, see Enumerating the Devices on a Bus.
WDF_CHILD_ADDRESS_DESCRIPTION_HEADER
WdfFdoInitSetDefaultChildListConfig