Export (0) Print
Expand All

WHEA_ERROR_PACKET_V2 structure

The WHEA_ERROR_PACKET_V2 structure describes the hardware error data that is passed to the operating system by a low-level hardware error handler (LLHEH).

Note  The WHEA_ERROR_PACKET_V2 structure is supported in Windows 7 and later versions of Windows.

Syntax


typedef struct _WHEA_ERROR_PACKET_V2 {
  ULONG                         Signature;
  ULONG                         Version;
  ULONG                         Length;
  WHEA_ERROR_PACKET_FLAGS       Flags;
  WHEA_ERROR_TYPE               ErrorType;
  WHEA_ERROR_SEVERITY           ErrorSeverity;
  ULONG                         ErrorSourceId;
  WHEA_ERROR_SOURCE_TYPE        ErrorSourceType;
  GUID                          NotifyType;
  ULONGLONG                     Context;
  WHEA_ERROR_PACKET_DATA_FORMAT DataFormat;
  ULONG                         Reserved1;
  ULONG                         DataOffset;
  ULONG                         DataLength;
  ULONG                         PshedDataOffset;
  ULONG                         PshedDataLength;
} WHEA_ERROR_PACKET_V2, *PWHEA_ERROR_PACKET_V2;

Members

Signature

The signature of the hardware error packet. This member contains the value WHEA_ERROR_PACKET_V2_SIGNATURE.

Version

The version of the WHEA_ERROR_PACKET_V2 structure. This member contains the value WHEA_ERROR_PKT_V2_VERSION.

Length

The size, in bytes, of the hardware error packet, including the hardware error data and PSHED data.

Flags

A WHEA_ERROR_PACKET_FLAGS union that specifies the format of the hardware error data.

ErrorType

A WHEA_ERROR_TYPE value that specifies the type of hardware component that reported the hardware error.

ErrorSeverity

A WHEA_ERROR_SEVERITY value that specifies the severity of the error condition.

ErrorSourceId

The identifier of the error source that reported the hardware error.

ErrorSourceType

A WHEA_ERROR_SOURCE_TYPE value that indicates the type of the error source that reported the hardware error.

NotifyType

A GUID that identifies the notification mechanism by which an error condition is reported to the operating system. The following are the GUIDs for the standard notification types:

CMC_NOTIFY_TYPE_GUID

Corrected Machine Check (CMC)

CPE_NOTIFY_TYPE_GUID

Corrected Platform Error (CPE)

MCE_NOTIFY_TYPE_GUID

Machine Check Exception (MCE)

PCIe_NOTIFY_TYPE_GUID

PCI Express (PCIe) Error

INIT_NOTIFY_TYPE_GUID

INIT Error Record (INIT)

NMI_NOTIFY_TYPE_GUID

Nonmaskable Interrupt (NMI)

BOOT_NOTIFY_TYPE_GUID

Boot Error Record (BOOT)

For error notification types that do not conform to one of the standard types in the previous list, a platform-specific GUID can be defined to identify the notification mechanism. If the notification type does not correspond to any of the standard notification types or any platform-specific notification types, this member is set to GENERIC_NOTIFY_TYPE_GUID.

Context

Reserved for system use.

DataFormat

A WHEA_ERROR_PACKET_DATA_FORMAT value that indicates the format of the hardware error information that is contained in the data that is referenced through the DataOffset and DataLength members.

Reserved1

Reserved for system use.

DataOffset

An offset, in bytes, for hardware error data from the status registers for the error source. The format of the hardware error data is specified by the DataFormat member. The offset of the hardware error information is relative to the start of the WHEA_ERROR_PACKET_V2 structure.

DataLength

The length, in bytes, of the hardware error data.

PshedDataOffset

An offset, in bytes, for a data buffer where a PSHED plug-in can add additional platform-specific error data to the hardware error packet. The offset of the PSHED data buffer is relative to the start of the WHEA_ERROR_PACKET_V2 structure.

PshedDataLength

The length, in bytes, of the PSHED data buffer.

Remarks

The WHEA_ERROR_PACKET_V2 structure is used to report a hardware error in Windows 7 and later versions of Windows.

An LLHEH passes a WHEA_ERROR_PACKET_V2 structure to the operating system when it reports a hardware error. This hardware error packet contains the raw hardware error data direct from the error status registers for the error source.

The WHEA_ERROR_PACKET_V2 structure describes the error data that is contained in a hardware error packet error section of an error record. The hardware error data is referenced through the DataOffset and DataLength members. The error data's type is defined through the DataFormat member.

In addition, platform-specific hardware error driver (PSHED) plug-ins can add supplementary platform-specific error data that is referenced through the PshedDataOffset and PshedDataLength members. Both of these members must be set to 0 if PSHED data has not been added.

Requirements

Version

Supported in Windows 7 and later versions of Windows.

Header

Ntddk.h (include Ntddk.h)

See also

Platform-Specific Hardware Error Driver (PSHED) Plug-Ins
WHEA_ERROR_PACKET_DATA_FORMAT
WHEA_ERROR_PACKET_FLAGS
WHEA_ERROR_PACKET_V1
WHEA_ERROR_SEVERITY
WHEA_ERROR_SOURCE_TYPE
WHEA_ERROR_TYPE

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft