title: After using the InternetConnect() API in wininet how can I tell if I'm still connected?
body: <p>I use the InternetConnect() method from the WinINet APIs.  I connect to my FTP server just fine with no issues.  After I connect, I wait about 1 min and the server disconnects me because of no activity as expected.  I then try to send a file but I'm not connected.</p>
  
  <p>Is there a way to "check" the FTP connection to see if I'm still connected?  Or is there some type of way for me to attach an event to tell me when I get disconnected?</p>