How to detect lost Windows Network connection?
I have established a connect and disconnect functionality using the WNetAddConnection2 and WNetCancelConnection2. Everything works fine and I can detect and cater for the errors whenever they occur with connection and disconnection. The problem came when I wanted to add a function to detect whenever a connection is lost, and attempt to reconnect. I've reviewed the msdn library and it turned up a sizeable variety or 'get' type functions which retrieve provider, resource or login attributes pertaining to a connection. Which one should I use, or is there another more appropriate method Thanks.

How to detect lost Windows Network connection?
Onur Gorur
This forum is for C++ language issues. For Win32 questions, you should go to the MSDN discussion group. There is one specific to network programming: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.networks&lang=en&cr=US