Condividi tramite


Funzione WheaHwErrorReportSetSectionNameDeviceDriver (ntddk.h)

Si tratta di una funzione helper per aggiornare il campo FRUText della struttura WHEA_ERROR_RECORD_SECTION_DESCRIPTOR .

Sintassi

NTSTATUS WheaHwErrorReportSetSectionNameDeviceDriver(
  PWHEA_DRIVER_BUFFER_SET BufferSet,
  ULONG                   NameLength,
  PUCHAR                  Name
);

Parametri

BufferSet

Puntatore al set di buffer ricevuto da WheaAddHwErrorReportSectionDeviceDriver.

NameLength

Lunghezza della stringa fornita.

Name

Puntatore a una stringa con cui popolare la sezione FRUText.

Valore restituito

Restituisce STATUS_SUCCESS o un codice di errore.

Commenti

Le sezioni di common platform error record (CPER) includono testo FRU (Field Replaceable Unit) o FRUText. Per informazioni dettagliate su CPER, vedere Record di errore.

Chiamare prima WheaAddHwErrorReportSectionDeviceDriver.

Chiamare quindi questa funzione con il buffer impostato da WheaAddHwErrorReportSectionDeviceDriver, insieme a una stringa e alla relativa lunghezza e popola il campo FRUText di WHEA_ERROR_RECORD_SECTION_DESCRIPTOR con la stringa.

Requisiti

Requisito Valore
Client minimo supportato Windows 10, versione 2004
Intestazione ntddk.h