InternetHangUp这个API怎么用?
MSDN上原文如下:
InternetHangUp
DWORD InternetHangUp(
IN DWORD dwConnection,
IN DWORD dwReserved
);
Instructs the modem to disconnect from the Internet.
dwConnection
Double-word value that contains the number assigned to the connection to be disconnected.
dwReserved
Reserved. Must be set to zero.
问题是:这里的dwConnection赋什么值?我随便给它赋了一个常数,编译可以通过,不过运行并不能挂断MODEM的连接.哪位大哥给我写一段能实现这个API功能的CODE?
问题点数:20、回复次数:1Top
1 楼sxbyl(sxbyl)回复于 2001-04-13 17:00:00 得分 20
难道你没用InternetDial????用了InternetDial你就应该知道那个参数是怎么回事了。
如果这个连接不是你建立的,好像……没法控制吧,这个我就不太清楚了。Top




