Storage Class Driver's DriverEntry Routine

Like any other Windows NT kernel-mode higher-level driver, the DriverEntry routine of a storage class driver must do the following:

  1. Allocate a driver object extension of appropriate size by calling IoAllocateDriverObjectExtension.

  2. Copy the input registry path into the driver extension for later use (if necessary) and initialize the driver extension.

  3. Define its dispatch entry points in the input driver object.

For more information about a PnP driver's DriverEntry routine, see Writing a DriverEntry Routine.