The StreamClassRegisterMinidriver routine registers a stream minidriver with the stream class driver.
NTSTATUS
StreamClassRegisterMinidriver(
IN PVOID Argument1,
IN PVOID Argument2,
IN PHW_INITIALIZATION_DATA HwInitializationData
);
Returns STATUS_SUCCESS on success, or the appropriate error code on failure.
Declared in strmini.h. Include strmini.h.
A stream minidriver must call StreamClassRegisterMinidriver within its DriverEntry routine. For more information, see DriverEntry for Stream Class Minidrivers.
Most of the information passed in the HW_INITIALIZATION_DATA structure informs the class driver of the minidriver-wide callbacks, and what size buffers to allocate for the minidriver's data structures. The class driver queries the minidriver for additional start-up information through SRB_INITIALIZE_DEVICE and SRB_GET_STREAM_INFO requests to the minidriver's StrMiniReceiveDevicePacket routine (passed as the HwReceivePacket member of HW_INITIALIZATION_DATA).
Once registered, a minidriver can drive any number of adapter instances in a system.
HW_INITIALIZATION_DATA, SRB_INITIALIZE_DEVICE, SRB_GET_STREAM_INFO, StrMiniReceiveDevicePacket