DriverEntry of Tape Miniclass Driver

ULONG
    DriverEntry(

        IN PVOID  Argument1,
        IN PVOID  Argument2
        );

DriverEntry initializes a tape miniclass driver. This routine is required.

Parameters

Argument1
Points to driver context that a tape miniclass driver passes through to TapeClassInitialize. The format of the context information is OS-specific and must not be interpreted by portable tape miniclass drivers.
Argument2
Points to a second context structure that a tape miniclass driver passes through to TapeClassInitialize. The format of the context information is OS-specific and must not be interpreted by portable tape miniclass drivers.

Return Value

DriverEntry returns the value returned by its call to TapeClassInitialize.

Comments

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.

See Also

TapeClassInitialize, TapeClassZeroMemory, TAPE_INIT_DATA