// iddcx.h
NTSTATUS IddCxReportCriticalError(
IDDCX_ADAPTER AdapterObject,
const IDARG_IN_REPORTCRITICALERROR *pInArgs
);
View the official Windows Driver Kit DDI referenceNo description available.
IddCxReportCriticalError is an OS callback function called by an indirect display driver (IDD) to report a critical error.
AdapterObjectAn IDDCX_ADAPTER object of the adapter on which the critical error occurred. If the error occurred before an IDDCX_ADAPTER was created, the IDD should pass nullptr.
pInArgsPointer to an IDARG_IN_REPORTCRITICALERROR structure containing the error code of the critical error.
If the routine succeeds it never returns to the driver because the driver process will be terminated.
When an IDD calls IddCxCriticalError, the OS will do the following:
(pInArgs->MajorErrorCode+0x100 << 8) + pInArgs->MinorErrorCode. It is recommended that the driver use a unique combination of a major code and minor code so these cases can be identified in crashes and Watson reports.As a user mode memory dump is generated, the driver should place any useful debug information on the stack of the function that called IddCxCriticalError.