WheaCreateHwErrorReportDeviceDriver function (ntddk.h)
This routine initializes an error report.
Syntax
WHEA_ERROR_HANDLE WheaCreateHwErrorReportDeviceDriver(
ULONG ErrorSourceId,
PDEVICE_OBJECT DeviceObject
);
Parameters
ErrorSourceId
A ULONG that specifies the error source for which the packet is to be created. This is provided by WHEA to the driver's WHEA_ERROR_SOURCE_INITIALIZE_DEVICE_DRIVER event callback function.
DeviceObject
Pointer to a DEVICE_OBJECT corresponding to the driver, or NULL.
Return value
This function returns a handle to the in progress error, or WHEA_ERROR_HANDLE_INVALID if the error report generation fails.
Remarks
For more info, see Using WHEA on Windows 10.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 2004 |
Header | ntddk.h |