Skip to content

Latest commit

 

History

History
79 lines (60 loc) · 2.47 KB

nf-ntddk-wheaaddhwerrorreportsectiondevicedriver.md

File metadata and controls

79 lines (60 loc) · 2.47 KB
UID title ms.date tech.root targetos description req.assembly req.construct-type req.ddi-compliance req.dll req.header req.idl req.include-header req.irql req.kmdf-ver req.lib req.max-support req.namespace req.redist req.target-min-winverclnt req.target-min-winversvr req.target-type req.type-library req.umdf-ver req.unicode-ansi topic_type api_type api_location api_name f1_keywords dev_langs
NF:ntddk.WheaAddHwErrorReportSectionDeviceDriver
WheaAddHwErrorReportSectionDeviceDriver
04/01/2020
whea
Windows
Learn more about: WheaAddHwErrorReportSectionDeviceDriver
function
ntddk.h
Windows 10, version 2004
apiref
DllExport
ntddk.h
WheaAddHwErrorReportSectionDeviceDriver
WheaAddHwErrorReportSectionDeviceDriver
ntddk/WheaAddHwErrorReportSectionDeviceDriver
c++

-description

This routine adds a new section to an error report, and hands the caller a buffer set that can be populated with information.

-parameters

-param ErrorHandle

A WHEA_ERROR_HANDLE obtained from WheaCreateHwErrorReportDeviceDriver that specifies the packet that is being operated on.

-param SectionDataLength

A ULONG that specifies the length, in bytes, of the data to be added to the section.

-param BufferSet

A pointer to a WHEA_DRIVER_BUFFER_SET structure that will be populated with a set of buffers for the user to interact with.

-returns

Returns STATUS_SUCCESS or one of the following:

  • STATUS_INVALID_HANDLE: The ErrorHandle is invalid.
  • STATUS_DEVICE_REMOVED: The error source has been removed.
  • STATUS_INSUFFICIENT_RESOURCES: There is not enough space for the data.

-remarks

This routine can be called up to MaxSectionsPerReport times as specified in the WHEA_ERROR_SOURCE_CONFIGURATION_DEVICE_DRIVER structure supplied to WheaAddErrorSourceDeviceDriver.

Also see WheaHwErrorReportSetSectionNameDeviceDriver, which is a helper function for updating the FRUText.

For more info, see Using WHEA on Windows 10.

-see-also

WheaCreateHwErrorReportDeviceDriver