ULONG
DriverEntry(
IN PVOID Argument1,
IN PVOID Argument2
);
DriverEntry initializes a tape miniclass driver. This routine is required.
DriverEntry returns the value returned by its call to TapeClassInitialize.
DriverEntry is the initial entry point for a tape miniclass driver.
Because TapeClassInitialize performs most of the required driver initialization, DriverEntry’s primary task is to fill the TAPE_INIT_DATA structure with driver-specific constants and entry points.
DriverEntry calls TapeClassZeroMemory to clear the TAPE_INIT_DATA structure. DriverEntry then sets the values and pointers in the structure.
DriverEntry calls TapeClassInitialize and passes the address of TAPE_INIT_DATA and the two pointers that were passed to DriverEntry (Argument1 and Argument2). TapeClassInitialize completes driver initialization and returns status to the tape miniclass driver’s DriverEntry routine. DriverEntry returns the status that it received from TapeClassInitialize.