// wdfdevice.h
VOID WdfDeviceSetBusInformationForChildren(
[in] WDFDEVICE Device,
[in] PPNP_BUS_INFORMATION BusInformation
);
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF only]
The WdfDeviceSetBusInformationForChildren method sets information about a bus that a bus driver supports. This information is available to the bus's child devices.
Device [in]A handle to a framework device object.
BusInformation [in]A pointer to a caller-allocated PNP_BUS_INFORMATION structure that describes the bus.
A bug check occurs if the driver supplies an invalid object handle.
Child devices can obtain the information that WdfDeviceSetBusInformationForChildren supplies by calling WdfFdoInitQueryProperty or WdfDeviceQueryProperty.
The following code example initializes a PNP_BUS_INFORMATION structure and then calls WdfDeviceSetBusInformationForChildren.
PNP_BUS_INFORMATION busInfo;
busInfo.BusTypeGuid = GUID_DEVCLASS_TOASTER;
busInfo.LegacyBusType = PNPBus;
busInfo.BusNumber = 0;
WdfDeviceSetBusInformationForChildren(
device,
&busInfo
);