缺少Win32 IPHelper功能 [英] Win32 IPHelper functions are missing

查看:89
本文介绍了缺少Win32 IPHelper功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..

我刚刚开始学习IP Helper API,我正在按照下面链接的教程进行操作,并发现了一个错过功能的错误。



https://msdn.microsoft.com /en-us/library/aa366314(v=vs.85).aspx [ ^ ]



Hi..
Ive just started to learn IP Helper API and i was following this tutorial which is linked below and came across an error of missing a function.

https://msdn.microsoft.com/en-us/library/aa366314(v=vs.85).aspx[^]

if (GetAdaptersInfo( pAdapterInfo, &ulOutBufLen) != ERROR_SUCCESS) {
    free (pAdapterInfo);
    pAdapterInfo = (IP_ADAPTER_INFO *) malloc ( ulOutBufLen );
}





这个GetAdaptersInfo函数,visual studio说错误:标识符GetAdaptersInfo未定义。

我有

< iphlpapi.h>

< windows.h>

< winsock2.h>我的程序中包含的头文件。



这是错的吗?什么头文件或我应该包括什么来使这个功能工作?我用谷歌搜索,我一无所获。 :(



提前谢谢。



this GetAdaptersInfo function, visual studio says Error: identifier "GetAdaptersInfo" is undefined.
I have
<iphlpapi.h>
<windows.h>
<winsock2.h> header files included in my program.

Whats the wrong with this ? What header file or anything i should include to get this function work ? Ive googled and I found nothing. :(

Thanks in advance.

推荐答案

查看https://msdn.microsoft.com/en-us/library/ windows / desktop / aa365917%28v = vs.85%29.aspx [ ^ ]。


这篇关于缺少Win32 IPHelper功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆