// ntddk.h
WHEA_ERROR_HANDLE WheaCreateHwErrorReportDeviceDriver(
ULONG ErrorSourceId,
PDEVICE_OBJECT DeviceObject
);
View the official Windows Driver Kit DDI referenceNo description available.
This routine initializes an error report.
ErrorSourceIdA ULONG that specifies the error source for which the packet is to be created. This is provided by WHEA to the driver's WHEA_ERROR_SOURCE_INITIALIZE_DEVICE_DRIVER event callback function.
DeviceObjectPointer to a DEVICE_OBJECT corresponding to the driver, or NULL.
This function returns a handle to the in progress error, or WHEA_ERROR_HANDLE_INVALID if the error report generation fails.
For more info, see Using WHEA on Windows 10.
WheaAddHwErrorReportSectionDeviceDriver