NetDeviceInitSetResetCapabilities function (netadaptercx.h)

The NetDeviceInitSetResetCapabilities function registers a client driver's NET_DEVICE_RESET_CAPABILITIES to the NetAdapterCx framework.

Syntax

void NetDeviceInitSetResetCapabilities(
  [_Inout_] PWDFDEVICE_INIT                     DeviceInit,
  [_In_]    const NET_DEVICE_RESET_CAPABILITIES *ResetCapabilities
);

Parameters

[_Inout_] DeviceInit

A pointer to a WDFDEVICE_INIT object that the client driver received in its EVT_WDF_DRIVER_DEVICE_ADD callback.

[_In_] ResetCapabilities

A pointer to a client driver allocated and initialized NET_DEVICE_RESET_CAPABILITIES structure.

Return value

None

Remarks

A client driver typically calls the NetDeviceInitSetResetCapabilities function in its EVT_WDF_DRIVER_DEVICE_ADD callback.

Before calling this function, the client driver must initialize NET_DEVICE_RESET_CAPABILITIES by calling the NET_DEVICE_RESET_CAPABILITIES_INIT function.

Requirements

Requirement Value
Minimum supported client Windows 11
Minimum supported server Windows Server 2022
Minimum UMDF version 2.33
Header netadaptercx.h (include netadaptercx.h)
IRQL PASSIVE_LEVEL

See also

Recovering an unresponsive NIC with NetAdapterCx PLDR

EVT_WDF_DRIVER_DEVICE_ADD

NET_DEVICE_RESET_CAPABILITIES

NET_DEVICE_RESET_CAPABILITIES_INIT