请知道IsNetworkAlive()用法的帮个忙

giraffer 2003-04-11 05:13:25
哪位大哥知道IsNetworkAlive()这个函数的参数是什么,为什么我的msdn中查不到这个函数呢?
...全文
474 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
giraffer 2003-04-22
  • 打赏
  • 举报
回复
up
giraffer 2003-04-16
  • 打赏
  • 举报
回复
使用NETWORK_ALIVE_LAN时这个参数它说:不能将参数 1 从“int”转换为“LPDWORD”
我是这么用的IsNetworkAlive(NETWORK_ALIVE_LAN),不知道是什么地方用错啦?再提点一下好不好
drip 2003-04-14
  • 打赏
  • 举报
回复
功能是判断你的爱机是否上网和上网类型(通过局域网、广域网)
参数只能是NETWORK_ALIVE_LAN(是否有可用网卡)、NETWORK_ALIVE_WAN(是否有可用远程连接)、NETWORK_ALIVE_AOL(仅对98\95有效判断是否联上美国的网络)
DavidBone 2003-04-14
  • 打赏
  • 举报
回复
ding
giraffer 2003-04-12
  • 打赏
  • 举报
回复
顶一下
giraffer 2003-04-11
  • 打赏
  • 举报
回复
我的E文不是太好,能举个例子吗?
drip 2003-04-11
  • 打赏
  • 举报
回复
功能
Determines whether the local system is connected to a network and the type of network connection, for example, LAN, WAN, or both.
drip 2003-04-11
  • 打赏
  • 举报
回复
搂主,换个MSDN版本吧
Bool IsNetworkAlive(
LPDWORD lpdwFlags // Specifies the type of network connection
);
Parameters
lpdwFlags
Provides information on the type of network connection available when the return value is TRUE. The flags can be:
NETWORK_ALIVE_LAN
The computer has one or more LAN cards that are active.
NETWORK_ALIVE_WAN
The computer has one or more active RAS connections.
NETWORK_ALIVE_AOL
This flag is only valid in Windows 95 and Windows 98. Indicates the computer is connected to the America Online network.

18,356

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 网络编程
c++c语言开发语言 技术论坛(原bbs)
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧