NTKERNELAPI
BOOLEAN
KeRegisterBugCheckCallback(
  IN  PKBUGCHECK_CALLBACK_RECORD CallbackRecord,
  IN  PKBUGCHECK_CALLBACK_ROUTINE CallbackRoutine,
  IN  PVOID Buffer,
  IN  ULONG Length,
  IN  PUCHAR Component
  );

Routine Description:

    This function registers a bug check callback record. If the system
    crashes, then the specified function will be called during bug check
    processing so it may dump additional state in the specified bug check
    buffer.

    N.B. Bug check callback routines are called in reverse order of
         registration, i.e., in LIFO order.

Arguments:

    CallbackRecord - Supplies a pointer to a callback record.

    CallbackRoutine - Supplies a pointer to the callback routine.

    Buffer - Supplies a pointer to the bug check buffer.

    Length - Supplies the length of the bug check buffer in bytes.

    Component - Supplies a pointer to a zero terminated component
        identifier.

Return Value:

    If the specified bug check callback record is successfully registered,
    then a value of TRUE is returned. Otherwise, a value of FALSE is returned.