次の方法で共有


NetAdapterSetDataPathCapabilities 関数 (netadapter.h)

ネットワーク アダプターのデータ パス機能を設定します。

Syntax

void NetAdapterSetDataPathCapabilities(
  [_In_] NETADAPTER                  Adapter,
  [_In_] NET_ADAPTER_TX_CAPABILITIES *TxCapabilities,
  [_In_] NET_ADAPTER_RX_CAPABILITIES *RxCapabilities
);

Parameters

[_In_] Adapter

The network adapter object that the client created in a prior call to NetAdapterCreate.

[_In_] TxCapabilities

A pointer to an allocated and initialized NET_ADAPTER_TX_CAPABILITIES structure.

[_In_] RxCapabilities

A pointer to an allocated and initialized NET_ADAPTER_RX_CAPABILITIES structure.

Return value

None

Remarks

The client driver must call this function when starting a net adapter, before calling NetAdapterStart.

This function, along with a few other set capability functions (see below), is the replacement for the NDIS_MINIPORT_ADAPTER_GENERAL_ATTRIBUTES union that a (non-WDF) client of Ndis.sys sets by calling NdisMSetMiniportAttributes.

Requirements

Requirement Value
Target Platform Universal
最小 KMDF バージョン 1.25
UMDF の最小バージョン する 2.33
Header netadapter.h (netadaptercx.h を含む)
IRQL PASSIVE_LEVEL

See also

NetAdapterSetLinkLayerCapabilities