// ntddk.h
typedef struct _WHEA_ERROR_SOURCE_CONFIGURATION_DEVICE_DRIVER {
ULONG Version;
GUID SourceGuid;
USHORT LogTag;
UCHAR Reserved[6];
WHEA_ERROR_SOURCE_INITIALIZE_DEVICE_DRIVER Initialize;
WHEA_ERROR_SOURCE_UNINITIALIZE_DEVICE_DRIVER Uninitialize;
ULONG MaxSectionDataLength;
ULONG MaxSectionsPerReport;
GUID CreatorId;
GUID PartitionId;
} WHEA_ERROR_SOURCE_CONFIGURATION_DEVICE_DRIVER, *PWHEA_ERROR_SOURCE_CONFIGURATION_DEVICE_DRIVER;
View the official Windows Driver Kit DDI referenceNo description available.
VersionA ULONG specifying the version of this structure to use. Starting in Windows 10, version 2004, set to WHEA_DEVICE_DRIVER_CONFIG_V2.
SourceGuidA GUID corresponding to the driver generating the errors.
LogTagUsed by device drivers that also create SEL (System Event Log) data to help identify the source of the SEL log.
ReservedReserved for system use.
InitializeA pointer to the driver's WHEA_ERROR_SOURCE_INITIALIZE_DEVICE_DRIVER event callback function.
UninitializeA pointer to the driver's WHEA_ERROR_SOURCE_UNINITIALIZE_DEVICE_DRIVER event callback function.
MaxSectionDataLengthSpecifies the maximum size, in bytes, for a single section in a reported error.
MaxSectionsPerReportA ULONG that specifies the maximum number of sections per report.
CreatorIdA GUID identifying the creator, i.e. the organization, that is generating the error.
PartitionIdA GUID that is used in the Common Platform Error Record (CPER). Can be zero.
The WHEA_ERROR_SOURCE_CONFIGURATION_DEVICE_DRIVER structure is used as input to the WheaAddErrorSourceDeviceDriver function.
For more info, see Using WHEA on Windows 10.