WheaCreateHwErrorReportDeviceDriver - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddk.h

WHEA_ERROR_HANDLE WheaCreateHwErrorReportDeviceDriver(
  ULONG          ErrorSourceId,
  PDEVICE_OBJECT DeviceObject
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntddk-wheacreatehwerrorreportdevicedriver)

Description

This routine initializes an error report.

Parameters

ErrorSourceId

A 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.

DeviceObject

Pointer to a DEVICE_OBJECT corresponding to the driver, or NULL.

Return value

This function returns a handle to the in progress error, or WHEA_ERROR_HANDLE_INVALID if the error report generation fails.

Remarks

For more info, see Using WHEA on Windows 10.

See also

WheaAddHwErrorReportSectionDeviceDriver