From bf1641e9b8d777da84dfc31f9c938abdbb051a18 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Fri, 18 Apr 2014 21:32:49 +0000 Subject: [PATCH] [PSDK] * Fix netioapi.h inclusion. * Fix extern "C" placement. CORE-7685 svn path=/trunk/; revision=62778 --- reactos/include/psdk/iphlpapi.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/reactos/include/psdk/iphlpapi.h b/reactos/include/psdk/iphlpapi.h index a799280d265..c6ce686047f 100644 --- a/reactos/include/psdk/iphlpapi.h +++ b/reactos/include/psdk/iphlpapi.h @@ -1,13 +1,14 @@ #ifndef _IPHLPAPI_H #define _IPHLPAPI_H +#ifdef __cplusplus +extern "C" { +#endif + #include #include #include -#include -#ifdef __cplusplus -extern "C" { -#endif + DWORD WINAPI AddIPAddress(IPAddr,IPMask,DWORD,PULONG,PULONG); DWORD WINAPI CreateIpForwardEntry(PMIB_IPFORWARDROW); DWORD WINAPI CreateIpNetEntry(PMIB_IPNETROW); @@ -58,7 +59,13 @@ DWORD WINAPI SetIpStatistics(PMIB_IPSTATS); DWORD WINAPI SetIpTTL(UINT); DWORD WINAPI SetTcpEntry(PMIB_TCPROW); DWORD WINAPI UnenableRouter(OVERLAPPED*, LPDWORD); + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#include +#endif + #ifdef __cplusplus } #endif + #endif /* _IPHLPAPI_H */