CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Location
    Raleigh, North Carolina USA
    Posts
    25

    Detect Network Connection



    I have written a program that uses file and such from other mapped drives. Is there a way (for error trapping purposes) to see if the user is connected to the network.


    Any suggestions would be of great help.


    Thanks in advance,

    Mike

  2. #2
    Join Date
    May 1999
    Posts
    45

    Re: Detect Network Connection

    I think simple Dir$ function on mapped dirive letter can let you know if that drive is connected or not. For more sophisticated functions check MSDN for key word "Windows Networking (WNet)" There are bunch of function to add / delete connection and get connection information.



    Vinayak Sapre

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured