WheaErrorRecordBuilderAddSection 函数 (ntddk.h)

WheaErrorRecordBuilderAddSection 函数查找下一节,初始化其描述符,并返回一个指针,供调用方填充数据。

语法

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
);

参数

[in, out] Record

提供包含错误记录数据的缓冲区。

[in] MaxSectionCount

定义 UINT32 参数 MaxSectionCount

[in] SectionLength

提供要添加的新节的长度。

[in] Flags

提供 节的标志。

[in] SectionType

提供 GUID 以标识节。

[in, out, optional] DescriptorOut

如果需要添加其他信息,则提供可选的缓冲区以获取节描述符。

返回值

指向错误记录信息的下一个可用空间的指针。 如果记录缓冲区已满,则返回 NULL。

要求

要求
最低受支持的客户端 Windows 11 版本 22H2
标头 ntddk.h (包括 Ntddk.h)