CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2005
    Posts
    4

    cancel network connections

    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

  2. #2
    Join Date
    Apr 2005
    Location
    Norway
    Posts
    3,934

    Re: cancel network connections

    You can use WNetOpenEnum(...) and WNetEnumResource(...) to enumerate nettwork connections and resources.

    - petter

  3. #3
    Join Date
    Oct 2005
    Posts
    4

    Re: cancel network connections

    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

  4. #4
    Join Date
    Oct 2005
    Posts
    4

    Re: cancel network connections

    Anyone?

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