Results 1 to 3 of 3

Thread: Changing Internet Proxy Settings

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2007
    Posts
    544

    Changing Internet Proxy Settings

    How to do so in vb.net?

    In vb6 you do this http://www.vbforums.com/showthread.php?t=449751 but then there is this as any and I wonder how to pass on the address of an object to the API also how to modify the program so we can put user authentication and password in VB using InternetSetOption

    The code to specify proxy username and password is

    InternetSetOption (hConnect, INTERNET_OPTION_PROXY_USERNAME,
    (LPVOID) szUser, lstrlen (szUser);
    InternetSetOption (hConnect, INTERNET_OPTION_PROXY_PASSWORD,
    (LPVOID) szPass, lstrlen (szPass);

    How to do so in vb.net?

    In particular we can't have LPVOID in vb.net can we?

    What the hell hConnect is?

    This code seems like a good thing

    http://www.codeproject.com/KB/IP/changeproxy1.aspx

    I wonder how come there is no easy way to do this in vb.net
    Last edited by teguh123; Nov 25th, 2009 at 01:55 AM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Changing Internet Proxy Settings

    Moved From The CodeBank

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2007
    Posts
    544

    Re: Changing Internet Proxy Settings

    Ups. Did I put this in codebank? Sorry. Yea, vb.net is the place to go. Soon I will have a code worthy of coebank though.

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