DriverEntry of Tape Miniclass Driver routine
DriverEntry initializes a tape miniclass driver. This routine is required.
ULONG DriverEntry(
_In_ PVOID Argument1,
_In_ PVOID Argument2
);
Argument1 [in]
Pointer to a driver context that a tape miniclass driver passes to TapeClassInitialize. The format of the context information is OS-specific and must not be interpreted by portable tape miniclass drivers.
Argument2 [in]
Pointer to a second context structure that a tape miniclass driver passes to TapeClassInitialize. The format of the context information is OS-specific and must not be interpreted by portable tape miniclass drivers.
DriverEntry returns the value returned by its call to TapeClassInitialize.
DriverEntry is the initial entry point for a tape miniclass driver.
Since TapeClassInitialize performs most of the required driver initialization, the primary task of a tape miniclass driver's DriverEntry routine is to allocate and fill in a TAPE_INIT_DATA_EX structure with driver-specific constants and entry points.
DriverEntry first must call TapeClassZeroMemory to clear the TAPE_INIT_DATA_EX structure. DriverEntry then sets the values and pointers in the structure.
DriverEntry calls TapeClassInitialize and passes the address of TAPE_INIT_DATA_EX 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.
Target platform |
Desktop |
Header |
Minitape.h |
Library |
NtosKrnl.lib |
DLL |
NtosKrnl.exe |