Author: akhaldi
Date: Fri Apr 18 21:32:49 2014
New Revision: 62778
URL:
http://svn.reactos.org/svn/reactos?rev=62778&view=rev
Log:
[PSDK]
* Fix netioapi.h inclusion.
* Fix extern "C" placement.
CORE-7685
Modified:
trunk/reactos/include/psdk/iphlpapi.h
Modified: trunk/reactos/include/psdk/iphlpapi.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/iphlpapi.h?re…
==============================================================================
--- trunk/reactos/include/psdk/iphlpapi.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/iphlpapi.h [iso-8859-1] Fri Apr 18 21:32:49 2014
@@ -1,13 +1,14 @@
#ifndef _IPHLPAPI_H
#define _IPHLPAPI_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
#include <iprtrmib.h>
#include <ipexport.h>
#include <iptypes.h>
-#include <netioapi.h>
-#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 SetIpTTL(UINT);
DWORD WINAPI SetTcpEntry(PMIB_TCPROW);
DWORD WINAPI UnenableRouter(OVERLAPPED*, LPDWORD);
+
+#if (NTDDI_VERSION >= NTDDI_VISTA)
+#include <netioapi.h>
+#endif
+
#ifdef __cplusplus
}
#endif
+
#endif /* _IPHLPAPI_H */