急!如何编程实现本地连接的禁用/启用?(200分)

P

Passion

Unregistered / Unconfirmed
GUEST, unregistred user!
有相应的接口没有?
即使是有命令行来让Winexec的调用也行哇。
 
你看看这些对你有没有用把
WNetAddConnection 重定向本地设备网络资源
WNetAddConnection2 重定向本地设备网络资源
WNetCancelConnection 断开网络连接
WNetCancelConnection2 断开网络连接
WNetCloseEnum 结束网络资源列表
WNetConnectionDialog 开始网络连接对话框
WNetDisconnectDialog 断开网络对话框
WNetEnumResource 继续列表网络资源
WNetGetConnection 获取网络资源名
WNetGetLastError 返回网络函数最近错误
WNetGetUniversalName
WNetGetUser 获取当前网络用户名
WNetOpenEnum 列出网络资源
 
或用'net stop'命令
 
帮你up吧
 
应该从注册表入手?
 
NET STOP是停止服务。
WNetCancelConnection 是断开网络驱动器,
似乎都不符合要求。
 
通过MiniportHalt 函数可以让网卡来休息

抄的,不懂,象是NDIS DDK驱动程序中用的

Win98 好像是用 调用DEVMGR32.DLL,函数忘了!
或者
WinExec('RunDLL32.exe Shell32.dll,Control_RunDLL NetCpl.cpl', SW_SHOWNORMAL);
然后用模拟点击的办法实现如何???
 
顶部