// ntddk.h
NTSTATUS WheaAddHwErrorReportSectionDeviceDriver(
WHEA_ERROR_HANDLE ErrorHandle,
ULONG SectionDataLength,
PWHEA_DRIVER_BUFFER_SET BufferSet
);
View the official Windows Driver Kit DDI referenceNo description available.
This routine adds a new section to an error report, and hands the caller a buffer set that can be populated with information.
ErrorHandleA WHEA_ERROR_HANDLE obtained from WheaCreateHwErrorReportDeviceDriver that specifies the packet that is being operated on.
SectionDataLengthA ULONG that specifies the length, in bytes, of the data to be added to the section.
BufferSetA pointer to a WHEA_DRIVER_BUFFER_SET structure that will be populated with a set of buffers for the user to interact with.
Returns STATUS_SUCCESS or one of the following:
This routine can be called up to MaxSectionsPerReport times as specified in the WHEA_ERROR_SOURCE_CONFIGURATION_DEVICE_DRIVER structure supplied to WheaAddErrorSourceDeviceDriver.
Also see WheaHwErrorReportSetSectionNameDeviceDriver, which is a helper function for updating the FRUText.
For more info, see Using WHEA on Windows 10.
WheaCreateHwErrorReportDeviceDriver