Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
This function sets an Internet option on the specified handle.
Syntax
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. The following Option Flagsvalues are supported:
- 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
- INTERNET_OPTION_SERVER_CERT_CONTEXT
- INTERNET_OPTION_CONTEXT_VALUE
- lpBuffer
-
[in] Long pointer to a buffer that contains the option setting.
- dwBufferLength
-
[in] Specifies the length of the lpBufferbuffer.
Return Value
TRUE indicates success. FALSE indicates failure. To get extended error information, call GetLastError.
Remarks
Requirements
Header | wininet.h |
Library | wininet.lib |
Windows Embedded CE | Windows CE 2.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |