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.
Osservazioni
Le sezioni di un record di errore della piattaforma comune (CPER) includono testo FRU (Field Replaceable Unit) o FRUText. Per informazioni dettagliate su CPER, vedere record di errore.
Prima chiamata 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.
Fabbisogno
Requisito | Valore |
---|---|
client minimo supportato | Windows 10, versione 2004 |
intestazione | ntddk.h |