// ntddk.h
NTSTATUS WheaHwErrorReportSetSectionNameDeviceDriver(
PWHEA_DRIVER_BUFFER_SET BufferSet,
ULONG NameLength,
PUCHAR Name
);
View the official Windows Driver Kit DDI referenceNo description available.
This is a helper function for updating the FRUText field of the WHEA_ERROR_RECORD_SECTION_DESCRIPTOR structure.
BufferSetPointer to the buffer set received from WheaAddHwErrorReportSectionDeviceDriver.
NameLengthLength of the supplied string.
NamePointer to a string with which to populate the FRUText section.
Return STATUS_SUCCESS or an error code.
Sections in a Common Platform Error Record (CPER) have Field Replaceable Unit (FRU) text, or FRUText. For details on CPER, see Error Records.
First call WheaAddHwErrorReportSectionDeviceDriver.
Then call this function with the buffer set from WheaAddHwErrorReportSectionDeviceDriver, along with a string and its length and it will populate the FRUText field of WHEA_ERROR_RECORD_SECTION_DESCRIPTOR with the string.