共用方式為


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

MaxSectionCount定義 UINT32 參數。

傳回值

傳回已加入區段的指標。 如果未新增,則傳回NULL。

要求

要求 價值
最低支援的用戶端 Windows 11 版本 22H2
標頭 ntddk.h