---
name: "GetAdapterIndex"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/GetAdapterIndex"
---

# GetAdapterIndex(3w)

## NAME

**GetAdapterIndex** (IPHLPAPI.@)

## SYNOPSIS

DWORD GetAdapterIndex\
  (\
   LPWSTR *AdapterName*,\
   PULONG *IfIndex*\
  )

## DESCRIPTION

Get interface index from its name.

## PARAMS

*AdapterName* **\[In\]**  unicode string with the adapter name.

*IfIndex* **\[Out\]**  returns found interface index.

## RETURNS

**Success:** **NO\_ERROR**

**Failure:** error code from Winerror.h

## IMPLEMENTATION

Declared in **"iphlpapi.h"**.

Implemented in **"dlls/iphlpapi/iphlpapi\_main.c"**.

Debug channel **"iphlpapi"**.
