// ntddk.h
NTSTATUS WheaHwErrorReportSubmitDeviceDriver(
WHEA_ERROR_HANDLE ErrorHandle
);
View the official Windows Driver Kit DDI referenceNo description available.
This routine submits an in progress error report to WHEA to be reported as a hardware error.
ErrorHandleThe handle returned by WheaCreateHwErrorReportDeviceDriver.
Returns STATUS_SUCCESS or one of the following:
Otherwise, this routine returns the status returned by WheaReportHwError.
Before calling this routine, the driver should add all desired sections by calling WheaAddHwErrorReportSectionDeviceDriver.
After calling this routine, buffers in the buffer sets are no longer available for use, and the handle is invalid.
If an error has occurred, or the error is no longer valid, the driver can clean up without a report being submitted to WHEA by calling WheaHwErrorReportAbandonDeviceDriver.
For more info, see Using WHEA on Windows 10.