I want to be able to use proxy authorization with wininet but don know how to do it. If you know how to use proxy authorization with wininet, please place your bid for this little task. Below are the codes I am currently using.
Max Bid: $30
#Region " IE Proxy Settings "
' The structure we use for the information
' to be interpreted correctly by API.
Public Structure Struct_INTERNET_PROXY_INFO
Public dwAccessType As Integer
Public proxy As IntPtr
Public proxyBypass As IntPtr
' The Windows API function that allows us to manipulate
' IE settings programmatically.
Private Declare Auto Function InternetSetOption Lib "wininet.dll" _
(ByVal hInternet As IntPtr, ByVal dwOption As Integer, ByVal lpBuffer As IntPtr, _
ByVal lpdwBufferLength As Integer) As Boolean
' The function we will be using to set the proxy settings.
Private Sub RefreshIESettings(ByVal strProxy As String)
Const INTERNET_OPTION_PROXY As Integer = 38
Const INTERNET_OPEN_TYPE_PROXY As Integer = 3
Dim struct_IPI As Struct_INTERNET_PROXY_INFO
' Filling in structure
[url removed, login to view] = INTERNET_OPEN_TYPE_PROXY
[url removed, login to view] = [url removed, login to view](strProxy)
[url removed, login to view] = [url removed, login to view]("local")
' Allocating memory
Dim intptrStruct As IntPtr = [url removed, login to view]([url removed, login to view](struct_IPI))
' Converting structure to IntPtr
[url removed, login to view](struct_IPI, intptrStruct, True)
Dim iReturn As Boolean = InternetSetOption([url removed, login to view], INTERNET_OPTION_PROXY, intptrStruct, [url removed, login to view](struct_IPI))
2 pekerja bebas membida secara purata $115 untuk pekerjaan ini
Hello, I can do this task within 1 or 2 days, but only in C or C++, not in Basic. I was working quite a lot with Wininet for 5 years. So I know where to dig.