// swenum.h
typedef struct _BUS_INTERFACE_SWENUM {
INTERFACE Interface;
PFNREFERENCEDEVICEOBJECT ReferenceDeviceObject;
PFNDEREFERENCEDEVICEOBJECT DereferenceDeviceObject;
PFNQUERYREFERENCESTRING QueryReferenceString;
} BUS_INTERFACE_SWENUM, *PBUS_INTERFACE_SWENUM;
View the official Windows Driver Kit DDI referenceNo description available.
The BUS_INTERFACE_SWENUM structure describes the demand-load bus enumerator object's interface.
InterfaceSpecifies the exported INTERFACE.
ReferenceDeviceObjectPointer to a driver-supplied KsReferenceSoftwareBusObject routine.
DereferenceDeviceObjectPointer to a driver-supplied KsDereferenceSoftwareBusObject routine.
QueryReferenceStringPointer to a driver-supplied KsQuerySoftwareBusInterface routine.
A driver obtains a BUS_INTERFACE_SWENUM interface by creating and sending an IRP_MJ_PNP request that specifies an IRP_MN_QUERY_INTERFACE minor function code. To do this, the driver should: