Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

WHEA_ERROR_RECORD_HEADER_VALIDBITS union

The WHEA_ERROR_RECORD_HEADER_VALIDBITS union describes which members of a WHEA_ERROR_RECORD_HEADER structure contain valid data.

Syntax


typedef union _WHEA_ERROR_RECORD_HEADER_VALIDBITS {
  struct {
    ULONG PlatformId  :1;
    ULONG Timestamp  :1;
    ULONG PartitionId  :1;
    ULONG Reserved  :29;
  };
  ULONG  AsULONG;
} WHEA_ERROR_RECORD_HEADER_VALIDBITS, *PWHEA_ERROR_RECORD_HEADER_VALIDBITS;

Members

PlatformId

A single bit that indicates that the PlatformId member of the WHEA_ERROR_RECORD_HEADER structure contains valid data.

Timestamp

A single bit that indicates that the Timestamp member of the WHEA_ERROR_RECORD_HEADER structure contains valid data.

PartitionId

A single bit that indicates that the PartitionId member of the WHEA_ERROR_RECORD_HEADER structure contains valid data.

Reserved

Reserved for system use.

AsULONG

A ULONG representation of the contents of the WHEA_ERROR_RECORD_HEADER_VALIDBITS union.

Remarks

A WHEA_ERROR_RECORD_HEADER_VALIDBITS union is contained within the WHEA_ERROR_RECORD_HEADER structure.

Important  After the release of Windows Server 2008, it was discovered that the Timestamp and PlatformId members of the WHEA_ERROR_RECORD_HEADER_VALIDBITS union are defined in the incorrect order. This topic now defines the correct order for these members.

If you build your Windows hardware error architecture (WHEA) user-mode application or platform-specific hardware error driver (PSHED) plug-in with the header files from the Windows Server 2008 version of the WDK or Windows SDK, you will have trouble only if your application or PSHED plug-in accesses the Timestamp and PlatformId members directly when it processes the contents of a WHEA_ERROR_RECORD_HEADER structure. When you test these bits in the AsULONG member through the bitfield constants that are described in the following list, you will always produce the correct results.

This problem has been fixed in the Windows 7 version of the WDK and SDK.

The following bitfield constants can be used to test the bits in the AsULONG member:

WHEA_ERROR_RECORD_VALID_PLATFORMID

If this bit is set, it indicates that the PlatformId member of the WHEA_ERROR_RECORD_HEADER structure contains valid data.

WHEA_ERROR_RECORD_VALID_TIMESTAMP

If this bit is set, it indicates that the Timestamp member of the WHEA_ERROR_RECORD_HEADER structure contains valid data.

WHEA_ERROR_RECORD_VALID_PARTITIONID

If this bit is set, it indicates that the PartitionId member of the WHEA_ERROR_RECORD_HEADER structure contains valid data.

Requirements

Version

Supported in Windows Server 2008, Windows Vista SP1, and later versions of Windows.

Header

Ntddk.h (include Ntddk.h)

See also

WHEA_ERROR_RECORD_HEADER

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft