WheaErrorRecordBuilderAddPacket 函数 (ntddk.h)

此例程将数据包添加到错误记录中。

语法

PVOID WheaErrorRecordBuilderAddPacket(
  [in, out] PWHEA_ERROR_RECORD    Record,
  [in, out] PWHEA_ERROR_PACKET_V2 Packet,
  [in]      UINT32                MaxSectionCount
);

参数

[in, out] Record

为错误记录数据提供缓冲区。

[in, out] Packet

提供一个缓冲区,用于存放错误数据包数据。

[in] MaxSectionCount

定义 UINT32 参数 MaxSectionCount

返回值

返回指向所添加节的指针。 如果未添加,则返回 NULL。

要求

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