iphlpapi / ifdef.h
Posted
by Mike D
on Stack Overflow
See other posts from Stack Overflow
or by Mike D
Published on 2009-11-18T15:18:39Z
Indexed on
2010/05/13
15:04 UTC
Read the original article
Hit count: 416
compile-error
|c++
I'm trying to use iphlpapi
(GetAdapterInfo
) and am having trouble compiling the code. I have iphlpapi.h
from SDK 7 and have added the appropriate path to the include files in visual studio.
I get the following error...
c:\program files\microsoft sdks\windows\v7.0\include\ifdef.h(154) : error C2146: syntax error : missing ';' before identifier 'NET_IFTYPE'
The lines in ifdef where this occurs are shown below.
typedef NET_LUID IF_LUID, *PIF_LUID;
typedef ULONG NET_IFINDEX, *PNET_IFINDEX; // Interface Index (ifIndex)
typedef UINT16 NET_IFTYPE, *PNET_IFTYPE; // Interface Type (IANA ifType)
© Stack Overflow or respective owner