WheaHwErrorReportSetSectionNameDeviceDriver function (ntddk.h)
This is a helper function for updating the FRUText field of the WHEA_ERROR_RECORD_SECTION_DESCRIPTOR structure.
Syntax
NTSTATUS WheaHwErrorReportSetSectionNameDeviceDriver(
PWHEA_DRIVER_BUFFER_SET BufferSet,
ULONG NameLength,
PUCHAR Name
);
Parameters
BufferSet
Pointer to the buffer set received from WheaAddHwErrorReportSectionDeviceDriver.
NameLength
Length of the supplied string.
Name
Pointer to a string with which to populate the FRUText section.
Return value
Return STATUS_SUCCESS or an error code.
Remarks
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 2004 |
Header | ntddk.h |