Skip to content

Latest commit

 

History

History
84 lines (59 loc) · 3.46 KB

nf-ntddk-ioregisterbootdrivercallback.md

File metadata and controls

84 lines (59 loc) · 3.46 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:ntddk.IoRegisterBootDriverCallback
IoRegisterBootDriverCallback function (ntddk.h)
The IoRegisterBootDriverCallback routine registers a BOOT_DRIVER_CALLBACK_FUNCTION routine to be called during the initialization of a boot-start driver and its dependent DLLs.
kernel\ioregisterbootdrivercallback.htm
kernel
04/30/2018
IoRegisterBootDriverCallback function
IoRegisterBootDriverCallback, IoRegisterBootDriverCallback routine [Kernel-Mode Driver Architecture], kernel.ioregisterbootdrivercallback, ntddk/IoRegisterBootDriverCallback
ntddk.h
Ntddk.h
Universal
Available starting with Windows 8.
NtosKrnl.lib
NtosKrnl.exe
PASSIVE_LEVEL
Windows
IoRegisterBootDriverCallback
ntddk/IoRegisterBootDriverCallback
APIRef
kbSyntax
DllExport
NtosKrnl.exe
IoRegisterBootDriverCallback

IoRegisterBootDriverCallback function

-description

The IoRegisterBootDriverCallback routine registers a BOOT_DRIVER_CALLBACK_FUNCTION routine to be called during the initialization of a boot-start driver and its dependent DLLs.

-parameters

-param CallbackFunction [in]

A pointer to the BOOT_DRIVER_CALLBACK_FUNCTION routine to be called when initializing a boot-start driver or DLL.

-param CallbackContext [in, optional]

A driver-defined context to be passed to the BOOT_DRIVER_CALLBACK_FUNCTION routine pointed to by CallbackFunction.

-returns

A handle that represents the registration. This handle must be supplied as an input parameter in the call to the IoUnRegisterBootDriverCallback routine that unregisters the BOOT_DRIVER_CALLBACK_FUNCTION routine.

-remarks

Boot-start drivers must call IoUnRegisterBootDriverCallback and pass the returned handle to unregister the boot-start driver callback before Windows unloads them.

Any error returned from a status update callback is treated as fatal and leads to a system bug check. Additionally, if an initialize image callback returns an error, the driver's image is treated as unknown. To be notified of boot-start driver initialization operations, an early launch anti-malware (ELAM) driver can call IoRegisterBootDriverCallback to register a BOOT_DRIVER_CALLBACK_FUNCTION routine.

-see-also

BDCB_CALLBACK_TYPE

BDCB_IMAGE_INFORMATION

IoUnRegisterBootDriverCallback