InternetSetOption (Windows CE 5.0)
This function sets an Internet option on the specified handle.
BOOL WINAPI InternetSetOption(HINTERNET hInternet, DWORD dwOption, LPVOID lpBuffer, DWORD dwBufferLength);
Parameters
- hInternet
[in] Internet handle on which to set information. - dwOption
[in] Specifies the Internet option to set. Can be one of the Option Flags values. - lpBuffer
[in] Long pointer to a buffer that contains the option setting. - dwBufferLength
[in] Specifies the length of the lpBuffer buffer.
Return Values
TRUE indicates success. FALSE indicates failure. To get extended error information, call GetLastError.
Remarks
The following list shows the options that can be set for dwOption:
- INTERNET_OPTION_CONTEXT_VALUE
- INTERNET_OPTION_CONNECT_TIMEOUT
- INTERNET_OPTION_CONNECT_RETRIES
- INTERNET_OPTION_CONNECT_BACKOFF
- INTERNET_OPTION_CONTROL_SEND_TIMEOUT
- INTERNET_OPTION_CONTROL_RECEIVE_TIMEOUT
- INTERNET_OPTION_DATA_SEND_TIMEOUT
- INTERNET_OPTION_DATA_RECEIVE_TIMEOUT
- INTERNET_OPTION_READ_BUFFER_SIZE
- INTERNET_OPTION_WRITE_BUFFER_SIZE
- INTERNET_OPTION_USERNAME
- INTERNET_OPTION_PASSWORD
- INTERNET_OPTION_PROXY
- INTERNET_OPTION_USER_AGENT
- INTERNET_OPTION_RECEIVE_TIMEOUT
Requirements
OS Versions: Windows CE 2.0 and later.
Header: Wininet.h.
Link Library: Wininet.lib.
See Also
FtpGetFile | FtpPutFile | InternetConnect | InternetOpen | InternetQueryOption | WinInet Functions
Send Feedback on this topic to the authors