Condividi tramite


Funzione WheaAddHwErrorReportSectionDeviceDriver (ntddk.h)

Questa routine aggiunge una nuova sezione a un report degli errori e consegna al chiamante un set di buffer che può essere popolato con informazioni.

Sintassi

NTSTATUS WheaAddHwErrorReportSectionDeviceDriver(
  WHEA_ERROR_HANDLE       ErrorHandle,
  ULONG                   SectionDataLength,
  PWHEA_DRIVER_BUFFER_SET BufferSet
);

Parametri

ErrorHandle

Un WHEA_ERROR_HANDLE ottenuto da WheaCreateHwErrorReportDeviceDriver che specifica il pacchetto utilizzato.

SectionDataLength

ULONG che specifica la lunghezza, in byte, dei dati da aggiungere alla sezione.

BufferSet

Puntatore a una struttura WHEA_DRIVER_BUFFER_SET che verrà popolata con un set di buffer con cui l'utente può interagire.

Valore restituito

Restituisce STATUS_SUCCESS o uno dei seguenti:

  • STATUS_INVALID_HANDLE: ErrorHandle non è valido.
  • STATUS_DEVICE_REMOVED: l'origine dell'errore è stata rimossa.
  • STATUS_INSUFFICIENT_RESOURCES: spazio insufficiente per i dati.

Osservazioni

Questa routine può essere chiamata fino a maxSectionsPerReport volte come specificato nella struttura di WHEA_ERROR_SOURCE_CONFIGURATION_DEVICE_DRIVER fornita a WheaAddErrorSourceDeviceDriver.

Vedere anche WheaHwErrorReportSetSectionNameDeviceDriver, che è una funzione helper per l'aggiornamento di FRUText.

Per altre info, vedi Uso di WHEA in Windows 10.

Fabbisogno

Requisito Valore
client minimo supportato Windows 10, versione 2004
intestazione ntddk.h

Vedere anche

WheaCreateHwErrorReportDeviceDriver