// swenum.h
KSDDKAPI NTSTATUS KsQuerySoftwareBusInterface(
[in] PDEVICE_OBJECT PnpDeviceObject,
[out] PBUS_INTERFACE_SWENUM BusInterface
);
View the official Windows Driver Kit DDI referenceNo description available.
This function is intended for internal use only.
The KsQuerySoftwareBusInterface function creates a buffer from the paged pool and copies the reference string associated with the demand-load bus enumerator object's PDO into the buffer. It is the caller's responsibility to free the buffer using ExFreePool.
PnpDeviceObject [in]Pointer to the demand-load bus enumerator's device object.
BusInterface [out]Pointer to the demand-load bus enumerator's interface.
Returns STATUS_SUCCESS if the request is handled. Otherwise, it returns an appropriate error code.
A minidriver can access this function through the QueryReferenceString member of the BUS_INTERFACE_SWENUM structure.
KsDereferenceSoftwareBusObject