Condividi tramite


Funzione KeRegisterBoundCallback (wdm.h)

La routine KeRegisterBoundCallback registra una routine da chiamare ogni volta che si verifica un'eccezione associata in modalità utente.

Sintassi

PVOID KeRegisterBoundCallback(
  [in] PBOUND_CALLBACK CallbackRoutine
);

Parametri

[in] CallbackRoutine

Puntatore a una funzione BoundCallback .

Valore restituito

In caso di esito positivo, KeRegisterBoundCallback restituisce un puntatore opaco che il chiamante passa a KeDeregisterBoundCallback per annullare la registrazione del callback. La routine restituisce NULL se non è in grado di registrare il callback.

Commenti

La routine KeRegisterBoundCallback consente a un driver in modalità kernel di intercettare e gestire le eccezioni associate in modalità utente. Quando si verifica un'eccezione di limiti per un thread in modalità utente, il sistema chiama la funzione BoundCallback registrata per gestire il trap dei limiti. Il valore restituito della funzione BoundCallback indica l'azione che il sistema deve eseguire, ad esempio propagando l'eccezione dei limiti o terminando il processo in modalità utente.

Requisiti

Requisito Valore
Client minimo supportato Disponibile a partire da Windows 10.
Piattaforma di destinazione Universale
Intestazione wdm.h
Libreria NtosKrnl.lib
DLL NtosKrnl.exe

Vedi anche

KeDeregisterBoundCallback