Remote Connection in VB

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John M. Gamble

    #1

    Remote Connection in VB

    I am writing a vb.net application that will have to look at files in
    a directory and list them for the user to choose later.

    The directory is accessible via VPN. In Windows, we can look at the folder
    (let's call it \\remotecorp) the usual way after the VPN connection gets
    made. Before that folder gets shown we have to log in with a user name
    and password.

    As I said, that's while operating with Windows folders, and if I run the
    application after doing that everything works correctly.

    If I run the application with VPN, but without looking at the \\remotecorp
    folder, the application fails with the error "unknown user name or bad
    password."

    Okay, that's straight-forward, but I've been using Google and searching
    through documentation and haven't been able to find out what API I should
    be using to log in remotely.

    Can anyone point me to the correct document?

    Thanks.
    --
    -john

    February 28 1997: Last day libraries could order catalogue cards
    from the Library of Congress.
Working...