--- UID: NF:netioapi.FlushIpPathTable title: FlushIpPathTable function (netioapi.h) description: The FlushIpPathTable function flushes the IP path table on the local computer. helpviewer_keywords: ["AF_INET","AF_INET6","AF_UNSPEC","FlushIpPathTable","FlushIpPathTable function [IP Helper]","iphlp.flushippathtable","netioapi/FlushIpPathTable"] old-location: iphlp\flushippathtable.htm tech.root: IpHlp ms.assetid: 3b28e0cd-9cab-41ca-b58c-7632768318c2 ms.date: 12/05/2018 ms.keywords: AF_INET, AF_INET6, AF_UNSPEC, FlushIpPathTable, FlushIpPathTable function [IP Helper], iphlp.flushippathtable, netioapi/FlushIpPathTable req.header: netioapi.h req.include-header: Iphlpapi.h req.target-type: Windows req.target-min-winverclnt: Windows Vista [desktop apps only] req.target-min-winversvr: Windows Server 2008 [desktop apps only] req.kmdf-ver: req.umdf-ver: req.ddi-compliance: req.unicode-ansi: req.idl: req.max-support: req.namespace: req.assembly: req.type-library: req.lib: Iphlpapi.lib req.dll: Iphlpapi.dll req.irql: targetos: Windows req.typenames: req.redist: ms.custom: 19H1 f1_keywords: - FlushIpPathTable - netioapi/FlushIpPathTable dev_langs: - c++ topic_type: - APIRef - kbSyntax api_type: - DllExport api_location: - Iphlpapi.dll api_name: - FlushIpPathTable --- # FlushIpPathTable function ## -description The FlushIpPathTable function flushes the IP path table on the local computer. ## -parameters ### -param Family [in] The address family to flush. Possible values for the address family are listed in the Winsock2.h header file. Note that the values for the AF_ address family and PF_ protocol family constants are identical (for example, AF_INET and PF_INET), so either constant can be used. On the Windows SDK released for Windows Vista and later, the organization of header files has changed and possible values for this member are defined in the Ws2def.h header file. Note that the Ws2def.h header file is automatically included in Winsock2.h, and should never be used directly. The values currently supported are AF_INET, AF_INET6, and AF_UNSPEC.
Return code | Description |
---|---|
|
Access is denied. This error is returned under several conditions that include the following: the user lacks the required administrative privileges on the local computer or the application is not running in an enhanced shell as the built-in Administrator (RunAs administrator). |
|
An invalid parameter was passed to the function. This error is returned if the Family parameter was not specified as AF_INET, AF_INET6, or AF_UNSPEC. |
|
The request is not supported. This error is returned if no IPv4 stack is on the local computer and AF_INET was specified in the Family parameter. This error is also returned if no IPv6 stack is on the local computer and AF_INET6 was specified in the Family parameter. This error is also returned on versions of Windows where this function is not supported. |
|
Use FormatMessage to obtain the message string for the returned error. |