Collapse the table of content
Expand the table of content
확장 최소화

WdfDeviceSetBusInformationForChildren method

[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.

Syntax


VOID WdfDeviceSetBusInformationForChildren(
  [in] WDFDEVICE            Device,
  [in] PPNP_BUS_INFORMATION BusInformation
);

Parameters

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.

Return value

None.

A bug check occurs if the driver supplies an invalid object handle.

Remarks

Child devices can obtain the information that WdfDeviceSetBusInformationForChildren supplies by calling WdfFdoInitQueryProperty or WdfDeviceQueryProperty.

Examples

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
                                      );

Requirements

Target platform

Universal

Minimum KMDF version

1.0

Header

Wdfdevice.h (include Wdf.h)

Library

Wdf01000.sys (see Framework Library Versioning.)

IRQL

<=DISPATCH_LEVEL

DDI compliance rules

DriverCreate, KmdfIrql, KmdfIrql2

See also

PNP_BUS_INFORMATION

 

 

Send comments about this topic to Microsoft

표시:
© 2015 Microsoft