Registry Problem

Discussion in 'OT Technology' started by eric_stlouis, Aug 13, 2004.

  1. eric_stlouis

    eric_stlouis New Member

    Joined:
    Oct 10, 2003
    Messages:
    147
    Likes Received:
    0
    Hey guys:

    I'm trying to change registry settings using the VB API.

    I need to change the key:
    HKEY_USERS\S-1-5-21-606747145-706699826-1801674531-1003\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer

    I can change it manually by going into internetoptions/connections/dial-up and vpn settings, then hitting the settings button and change the proxy. No problem. I can even see the values of the keys change in the registry.

    I just can't change the value of the key programatically.

    Is there something I'm missing here?? Is this key linked somewhere else in the registry?

    Any help would be GREATLY appreciated!
     
  2. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    post the code that you have. It shouldn't be too hard to update that value.
     
  3. eric_stlouis

    eric_stlouis New Member

    Joined:
    Oct 10, 2003
    Messages:
    147
    Likes Received:
    0
    The module I use is pretty massive.

    Basically I'm using the regsetvalueex API. I really don't understand API's much, buy I'm almost certain that my code works since when I update the ProxyServer and ProxyEnable under...

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

    ...everything works fine. The values in the registry are being changed. I'm thinking it's more of an actual registry problem I'm having.

    I've heard there are some keys that are generated by other keys or something like that? Maybe the key I'm trying to change is just a pointer?

    I don't know. This is all pretty confusing to me!
     
  4. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    really no such thing as a pointer value in the registry... so, your code is actually changing the value? and you can see that? By the way, what is it you're actually trying to accomplish by this? you might need to change more than one value or something weird like that.
     
  5. eric_stlouis

    eric_stlouis New Member

    Joined:
    Oct 10, 2003
    Messages:
    147
    Likes Received:
    0
    Yeah, I'm changing the ProxyEnable and ProxyServer fields.

    I'm really confused since this works on the HKEY_CURRENT_USER key and not the KEY_USERS.
     
  6. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    I could be wrong, but I don't think changing the registry will do anything UNLESS you reload the registry (ie at bootup).
     
  7. Keyzs

    Keyzs OT Supporter

    Joined:
    Nov 3, 2003
    Messages:
    814
    Likes Received:
    0
    Location:
    Charlotte, MI
    Proxy settings are application specific. The Registry key listed above is Windows as the program (read I.E.). And I.E. checks the settings everytime it makes a request.
     

Share This Page