How to use GetIpInterfaceEntry on win7+vs2013
问题 I'm trying to add some rule to the route table with CreateIpForwardEntry , it's necessary to call the GetIpInterfaceEntry first on win7(see this). Here's part of my code: #pragma warning(disable: 4996) #define WIN32_LEAN_AND_MEAN #define _WIN32_WINNT 0x601 //#define _WS2IPDEF_ //#define __IPHLPAPI_H__ #include <windows.h> #include <stdio.h> #include <stdlib.h> #include <winsock2.h> #include <netioapi.h> #include <iphlpapi.h> #include <iostream> #include <vector> #include <string> using