WheaRemoveErrorSourceDeviceDriver function (ntddk.h)

To remove a previously added error source, a device driver calls WheaRemoveErrorSourceDeviceDriver.

Syntax

NTSTATUS WheaRemoveErrorSourceDeviceDriver(
  ULONG ErrorSourceId
);

Parameters

ErrorSourceId

The error source ID WHEA provided when it called the _WHEA_ERROR_SOURCE_INITIALIZE_DEVICE_DRIVER callback.

Return value

This function returns STATUS_SUCCESS or an error code.

STATUS_RESOURCE_IN_USE is returned if error handles are still in use.

Remarks

This routine must be called at PASSIVE_LEVEL as it synchronously removes the device driver's error source.

For more info, see Using WHEA on Windows 10.

Requirements

Requirement Value
Minimum supported client Windows 10, version 2004
Header ntddk.h

See also

WheaAddErrorSourceDeviceDriver

WheaReportHwErrorDeviceDriver