Hi,
I tried to cancel network connections using WNetCacnelConnection2.
The problem is, that I don't know how to cancel all of the connections
(I don't know their names in advance).
Can somebody help?
Thanks
Printable View
Hi,
I tried to cancel network connections using WNetCacnelConnection2.
The problem is, that I don't know how to cancel all of the connections
(I don't know their names in advance).
Can somebody help?
Thanks
You can use WNetOpenEnum(...) and WNetEnumResource(...) to enumerate nettwork connections and resources.
- petter
Thanks for your reply.
I tried doing it , but failed.
I used the example here -
http://msdn.microsoft.com/library/de..._resources.asp
But I have a few problems -
How do I find the actual devices ("a:, b:..")?
It finds many "RESOURCEUSAGE_connectable" whose local names are
unaccessable.
Any idea?
thanks
Anyone?