// swenum.h
KSDDKAPI NTSTATUS KsInstallBusEnumInterface(
[in] PIRP Irp
);
View the official Windows Driver Kit DDI referenceNo description available.
This function is intended for internal use only.
The KsInstallBusEnumInterface function installs an interface to the demand-load bus enumerator object.
Irp [in]Pointer to an IRP that contains a SWENUM_INSTALL_INTERFACE structure that specifies the demand-load bus enumerator object interface to install. For information about this structure, see the Remarks section below.
Returns STATUS_SUCCESS if successful. Otherwise, it returns an error code.
The Irp->AssociatedIrp.SystemBuffer is assumed to contain a SWENUM_INSTALL_INTERFACE structure. The DeviceId, InterfaceId and ReferenceString members of the structure specify the specific device and interface with which to access this new interface. When the interface is registered with Plug and Play for the interface GUID and the associated reference string is accessed the first time through IRP_MJ_CREATE, the device will be enumerated using the format of bus-identifier-prefix\device-id-GUID-string. For example, SW{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.