WheaErrorRecordBuilderAddSection function (ntddk.h)

The WheaErrorRecordBuilderAddSection function finds the next section, initializes its descriptor, and returns a pointer for the caller to populate with data.

Syntax

PVOID WheaErrorRecordBuilderAddSection(
  [in, out]           PWHEA_ERROR_RECORD                         Record,
  [in]                UINT32                                     MaxSectionCount,
  [in]                UINT32                                     SectionLength,
  [in]                WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_FLAGS Flags,
  [in]                GUID                                       SectionType,
  [in, out, optional] PVOID                                      DescriptorOut
);

Parameters

[in, out] Record

Supplies a buffer that contains the error record data.

[in] MaxSectionCount

Defines the UINT32 parameter MaxSectionCount.

[in] SectionLength

Supplies a length for the new section to be added.

[in] Flags

Supplies the flags for the section.

[in] SectionType

Supplies the GUID to identify the section.

[in, out, optional] DescriptorOut

Supplies an optional buffer to get the section descriptor if additional information needs to be added.

Return value

A pointer to the next available space for error record information. Returns NULL if the record buffer is full.

Requirements

Requirement Value
Minimum supported client Windows 11, version 22H2
Header ntddk.h (include Ntddk.h)