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

# GetIpForwardTable(3w)

## NAME

**GetIpForwardTable** (IPHLPAPI.@)

## SYNOPSIS

DWORD GetIpForwardTable\
  (\
   PMIB\_IPFORWARDTABLE *pIpForwardTable*,\
   PULONG              *pdwSize*,\
   BOOL                *bOrder*\
  )

## DESCRIPTION

Get the route table.

## PARAMS

*pIpForwardTable* **\[Out\]**  buffer for route table.

*pdwSize* **\[In/Out\]**  length of output buffer.

*bOrder* **\[In\]**  whether to sort the table.

## RETURNS

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

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

## NOTES

If *pdwSize* is less than required, the function will return **ERROR\_INSUFFICIENT\_BUFFER**, and \**pdwSize* will be set to the required byte size. If *bOrder* is **TRUE**, the returned table will be sorted by the next hop and an assortment of arbitrary parameters.

## IMPLEMENTATION

Declared in **"ipstats.h"**.

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

Debug channel **"iphlpapi"**.
