Bagikan melalui


DriverEntry of Tape Miniclass Driver routine

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

Syntax

ULONG DriverEntry(
  _In_ PVOID Argument1,
  _In_ PVOID Argument2
);

Parameters

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.

Return value

DriverEntry returns the value returned by its call to TapeClassInitialize.

Remarks

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.

Requirements

Target platform

Desktop

Header

Minitape.h

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

See also

TAPE_INIT_DATA_EX

TapeClassInitialize

TapeClassZeroMemory

TAPE_STATUS