// netdevice.h
void NetDeviceStoreResetDiagnostics(
[_In_] WDFDEVICE Device,
[_In_] SIZE_T ResetDiagnosticsSize,
[_In_reads_bytes_(ResetDiagnosticsSize)] const UINT8 *ResetDiagnosticsBuffer
);
View the official Windows Driver Kit DDI referenceNo description available.
The NetDeviceStoreResetDiagnostics function stores client driver collected reset diagnostics into the NetAdapterCx framework.
Device [_In_]The WDFDEVICE object the client driver previously created with a call to WdfDeviceCreate.
ResetDiagnosticsSize [_In_]The size in bytes of the ResetDiagnosticsBuffer. The maximum size of reset diagnostics the framework accepts is 1 MB.
ResetDiagnosticsBuffer [_In_reads_bytes_(ResetDiagnosticsSize)]A pointer to the data buffer that holds the reset diagnostics data. The data buffer can come from either paged or non-paged pool.
The only valid scenario to invoke the NetDeviceStoreResetDiagnostics function is in a client driver's EVT_NET_DEVICE_COLLECT_RESET_DIAGNOSTICS callback. The client driver must call NetDeviceStoreResetDiagnostics at PASSIVE_LEVEL
To learn how to correctly use the NetDeviceStoreResetDiagnostics function, see Implement EVT_NET_DEVICE_COLLECT_RESET_DIAGNOSTICS.
Recovering an unresponsive NIC with NetAdapterCx PLDR
EVT_NET_DEVICE_COLLECT_RESET_DIAGNOSTICS