CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2001
    Location
    Toronto
    Posts
    118

    how to connect LAN resource

    Hello, gurus, I would like to connect to a remote machine's share folder in a LAN. unfortunately, the share folder need a username and password to get access. Though I have it, I would like to know the WinAPI which let me provide the user-password pair to get access the folder. Any idea?
    Thanx ahead.

  2. #2
    Join Date
    Oct 2000
    Location
    Ithaca, NY
    Posts
    206

    Post

    NetUseAdd or WNetAddConnection2 ( or 3 ).
    And let MSDN help you.
    Eddi.

  3. #3
    Join Date
    May 2002
    Location
    India
    Posts
    144
    Hi,
    You may use WNet API functions to do this. To add a share, you can use WNetAddConnection, WNetAddConnection2, WNetAddConnection3 Functions. Specially, WNetAddConnection2 & WNetAddConnection3 will serve your needs.
    Home: Visit for PACS and DICOM infromation, products and consulting
    Medical Imaging Corporation, India

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