I found the proxy setting but how can I set/retrive it
"HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections"
is the setting, can someone tell me how to set & retrive it?
Printable View
I found the proxy setting but how can I set/retrive it
"HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections"
is the setting, can someone tell me how to set & retrive it?
Have a look at this link: -
Have a look at the RegSettings sample.
Hope this helps?
Regards
Thanks, but I can't get it to work.
You'll could try and change the following: -
If all else fails try posting in the General?Code:
' ********************************************
' Private Methods
' ********************************************
Private Function SubKey(Optional ByVal Section As String = "") As String
' Build SubKey from known values
SubKey = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections"
If Len(Section) Then
SubKey = SubKey & "\" & Section
End If
End Function
Regards,
Further to my last...
You'll also need to change: -
Where it makes the reference to HKEY_LOCAL_MACHINE to HKEY_USER\.DEFAULTCode:
nRet = RegOpenKeyEx(HKEY_LOCAL_MACHINE, SubKey(Section), 0&, KEY_ALL_ACCESS, hKey)
Regards
hkey_users\default\software\microsoft\windows\currentversion\internet settings\connections
DefaultConnections
Thanks.
(I get "<")
Is 'DefaultConnections' another key from ...\internet settings\connections?
If it is then you'll need to add that to: -
For exampleCode:
' ********************************************
' Private Methods
' ********************************************
Private Function SubKey(Optional ByVal Section As String = "") As String
' Build SubKey from known values
SubKey = ".DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections"
If Len(Section) Then
SubKey = SubKey & "\" & Section
End If
End Function
It might help if you do a screen print of the structure in Registry Edit showing the values, I colud then re-create them on a machine here as I haven't got them.Code:
' ********************************************
' Private Methods
' ********************************************
Private Function SubKey(Optional ByVal Section As String = "") As String
' Build SubKey from known values
SubKey = ".DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\DefaultConnections"
If Len(Section) Then
SubKey = SubKey & "\" & Section
End If
End Function
Let me know.
Regards
I think I'm an idiot, I just can't get it to work, it's a key, have a look in your reg
I have and I haven't got it just what's attached...
Are you still getting back "<" ?
Regards
empty.
Try again
And again?
Thanks For all the help Pozzi!
I'll start a new post soon.