NET_DEVICE_RESET_CAPABILITIES_INIT - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// netdevice.h

void NET_DEVICE_RESET_CAPABILITIES_INIT(
  [_Out_] NET_DEVICE_RESET_CAPABILITIES            *ResetCapabilities,
  [_In_]  GUID                                     ResetDiagnosticsGuid,
  [_In_]  PFN_NET_DEVICE_COLLECT_RESET_DIAGNOSTICS EvtNetDeviceCollectResetDiagnostics
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-netdevice-net_device_reset_capabilities_init)

NET_DEVICE_RESET_CAPABILITIES_INIT function

Description

The NET_DEVICE_RESET_CAPABILITIES_INIT function initializes a NET_DEVICE_RESET_CAPABILITIES structure.

Parameters

ResetCapabilities [_Out_]

A pointer to a driver-allocated NET_DEVICE_RESET_CAPABILITIES structure.

ResetDiagnosticsGuid [_In_]

A client driver specified global unique identifier (GUID). Developers can use this identifier to retrieve reset diagnostics. The client driver collects the reset diagnostics as secondary data in the full kernel dump captured in the process of device reset and recovery.

EvtNetDeviceCollectResetDiagnostics [_In_]

A pointer to the client driver's implementation of the EVT_NET_DEVICE_COLLECT_RESET_DIAGNOSTICS callback that collects device-specific reset diagnostics from a hardware device.

Remarks

A client driver typically calls NET_DEVICE_RESET_CAPABILITIES_INIT in its EVT_WDF_DRIVER_DEVICE_ADD callback.

This function zeros out the NET_DEVICE_RESET_CAPABILITIES structure and fills in its Size member. Then it sets the ResetDiagnosticsGuid member and EvtNetDeviceCollectResetDiagnostics member with the corresponding input parameters.

See also

Recovering an unresponsive NIC with NetAdapterCx PLDR

EVT_WDF_DRIVER_DEVICE_ADD

NET_DEVICE_RESET_CAPABILITIES

EVT_NET_DEVICE_COLLECT_RESET_DIAGNOSTICS