DriverEntry for Stream Class Minidrivers routine
The stream minidriver's DriverEntry initializes a stream class minidriver. This routine is required.
Syntax
ULONG DriverEntry(
_In_ PVOID Argument1,
_In_ PVOID Argument2
);
Parameters
Argument1 [in]
Supplies a context value with which the adapter minidriver should call StreamClassRegisterMinidriver. For Windows 2000 and later, this points to a DRIVER_OBJECT.Argument2 [in]
Supplies a second context value with which the adapter minidriver should call StreamClassRegisterMinidriver. For Windows 2000 and later, this points to a registry path.
Return value
DriverEntry returns the value returned by its call to StreamClassRegisterMinidriver.
Remarks
DriverEntry is the initial entry point for a stream class minidriver.
Since StreamClassRegisterMinidriver performs most of the required driver initialization, the primary task of a stream class minidriver's DriverEntry routine is to allocate and fill in a HW_INITIALIZATION_DATA structure with driver-specific constants and entry points. The DriverEntry should then call StreamClassRegisterMinidriver.
Requirements
Target platform |
Desktop |
Header |
Ks.h (include Ks.h) |
Library |
NtosKrnl.lib |
DLL |
NtosKrnl.exe |
See also