GetAdapterIndex function iphlpapi

int GetAdapterIndex(
  1. Pointer<Utf16> AdapterName,
  2. Pointer<Uint32> IfIndex
)

The GetAdapterIndex function obtains the index of an adapter, given its name.

DWORD GetAdapterIndex(
  LPWSTR AdapterName,
  PULONG IfIndex
);

Implementation

int GetAdapterIndex(Pointer<Utf16> AdapterName, Pointer<Uint32> IfIndex) =>
    _GetAdapterIndex(AdapterName, IfIndex);