>>Ok, now the problem that first appeared with InternetQueryOption and disappeared seemingly without cause, will not disappear with InternetSetOption.
>>
>>Here's the code I am using:
>>
>>DECLARE INTEGER GetLastError IN Win32API
>>
>>DECLARE INTEGER InternetSetOption IN WinInet.dll ;
>> LONG hInternet, ;
>> INTEGER dwOption, ;
>> STRING @lpBuffer, ;
>> LONG lpdwBufferLength
>>
>>DECLARE INTEGER InternetOpen IN WinInet.DLL ;
>> STRING, ;
>> INTEGER, ;
>> STRING, ;
>> STRING, ;
>> INTEGER
>>
>>INTERNET_OPTION_PROXY_USERNAME = 43
>>INTERNET_OPTION_PROXY_PASSWORD = 44
>>INTERNET_OPTION_USER_AGENT = 40
>>
>>hInternet = InternetOpen("EKraft Web Application", 0, NULL, NULL, 0)
>>lpBuffer = "esmoore"
>>lpdwBufferLength = LEN(lpBuffer)
>>?InternetSetoption(hInternet, INTERNET_OPTION_PROXY_USERNAME, @lpBuffer, lpdwBufferLength)
>>
>>and here is the C function declaration:
>>
>>BOOL InternetSetOption(
>> IN HINTERNET hInternet,
>> IN DWORD dwOption,
>> IN LPVOID lpBuffer,
>> IN DWORD dwBufferLength
>>);
>>
>>
>
>Eric, see my reply to the previous question; try allocating a static block and passing the pointer to the block by reference - structures don't like to be moved about.
>
I will try that whe I get back to that machine.. but where's a struture?
Erik Moore
Clientelligence