KeRegisterBoundCallback function (wdm.h)
The KeRegisterBoundCallback routine registers a routine to be called whenever a user-mode bound exception occurs.
Syntax
PVOID KeRegisterBoundCallback(
[in] PBOUND_CALLBACK CallbackRoutine
);
Parameters
[in] CallbackRoutine
Pointer to a BoundCallback function.
Return value
On success, KeRegisterBoundCallback returns an opaque pointer that the caller passes to KeDeregisterBoundCallback to deregister the callback. The routine returns NULL if it is unable to register the callback.
Remarks
The KeRegisterBoundCallback routine provides the opportunity for a kernel-mode driver to intercept and handle user-mode bound exceptions. When a bounds exception for a user-mode thread occurs, the system calls the registered BoundCallback function to manage the bounds trap. The return value of the BoundCallback function indicates the action that the system should then perform, such as propagating the bounds exception or terminating the user-mode process.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available starting with Windows 10. |
Target Platform | Universal |
Header | wdm.h |
Library | NtosKrnl.lib |
DLL | NtosKrnl.exe |