Export (0) Print
Expand All
Expand Minimize

IoRegisterBootDriverReinitialization routine

The IoRegisterBootDriverReinitialization routine is called by a boot driver to register the driver's reinitialization routine with the I/O manager to be called after all devices have been enumerated and started.

Syntax


VOID IoRegisterBootDriverReinitialization(
  _In_      PDRIVER_OBJECT DriverObject,
  _In_      PDRIVER_REINITIALIZE DriverReinitializationRoutine,
  _In_opt_  PVOID Context
);

Parameters

DriverObject [in]

Pointer to the driver object for the boot driver to be reinitialized.

DriverReinitializationRoutine [in]

Pointer to the driver's Reinitialize routine.

Context [in, optional]

Optional context pointer to be passed to the driver's reinitialization routine.

Return value

None

Remarks

A boot driver normally calls IoRegisterBootDriverReinitialization from its DriverEntry routine, which is run during boot driver initialization. IoRegisterBootDriverReinitialization registers the driver's reinitialization callback routine to be called by the I/O manager after all devices have been enumerated and started. The DriverReinitializationRoutine is run in a system thread at IRQL = PASSIVE_LEVEL.

A driver should call IoRegisterBootDriverReinitialization only if its DriverEntry routine will return STATUS_SUCCESS.

If the DriverReinitializationRoutine uses the registry, the DriverEntry routine must include in IoRegisterBootDriverReinitialization's Context parameter a copy of the string to which DriverEntry's own RegistryPath parameter points.

The DriverEntry routine can call IoRegisterBootDriverReinitialization only once. If the reinitialization routine needs to be run more than once, the DriverReinitializationRoutine can call IoRegisterBootDriverReinitialization as many additional times as needed, using the Count parameter to keep track of the number of times the DriverReinitializationRoutine has been called.

Requirements

Version

Available starting with Windows 2000.

Header

Ntddk.h (include Ntifs.h, Ntddk.h, or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

PASSIVE_LEVEL

DDI compliance rules

PowerIrpDDis, HwStorPortProhibitedDDIs

See also

DRIVER_OBJECT
IoRegisterDriverReinitialization
Reinitialize

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft