Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
INTERNET_PER_CONN_OPTIONW structure (wininet.h)
Contains the value of an option.
Syntax
typedef struct {
DWORD dwOption;
union {
DWORD dwValue;
LPWSTR pszValue;
FILETIME ftValue;
} Value;
} INTERNET_PER_CONN_OPTIONW, *LPINTERNET_PER_CONN_OPTIONW;
Members
dwOption
Option to be queried or set. This member can be one of the following values.
| Value | Meaning |
|---|---|
|
Sets or retrieves a string containing the URL to the automatic configuration script. |
|
Sets or retrieves the automatic discovery settings. The
Value member will contain one or more of the following values:
|
|
Sets or retrieves the connection type. The
Value member will contain one or more of the following values:
|
|
Sets or retrieves a string containing the URLs that do not use the proxy server. |
|
Sets or retrieves a string containing the proxy servers. |
|
Chained autoconfig URL. Used when the primary autoconfig URL points to an INS file that sets a second autoconfig URL for proxy information. |
|
of minutes until automatic refresh of autoconfig URL by autodiscovery. |
|
Read only option. Returns the time the last known good autoconfig URL was found using autodiscovery. |
|
Read only option. Returns the last known good URL found using autodiscovery. |
Windows 7 and later:
Clients that support Internet Explorer 8 should query the connection type using INTERNET_PER_CONN_FLAGS_UI. If this query fails, then the system is running a previous version of Internet Explorer and the client should query again with INTERNET_PER_CONN_FLAGS.
Restore the connection type using INTERNET_PER_CONN_FLAGS regardless of the version of Internet Explorer.
| Value | Meaning |
|---|---|
|
Sets or retrieves the connection type. The
Value member will contain one or more of the following values:
|
Value
Union that contains the value for the option. It can be any one of the following types depending on the value of dwOption:
dwValue
Unsigned long integer value.
pszValue
Pointer to a string value.
ftValue
A FILETIME structure.
Value.dwValue
Unsigned long integer value.
Value.pszValue
Pointer to a string value.
Value.ftValue
A FILETIME structure.
Remarks
In Internet Explorer 5, only the ANSI versions of InternetQueryOption and InternetSetOption will work with the INTERNET_PER_CONN_OPTION structure. The Unicode versions will support the INTERNET_PER_CONN_OPTION structure in later versions of Internet Explorer.
For queries that return strings, InternetQueryOption allocates the memory for the pszValue member of the structure. The calling application must free this memory using the GlobalFree function when it has finished using the string.
Note
The wininet.h header defines INTERNET_PER_CONN_OPTION as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps only] |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Header | wininet.h |
See also
Feedback
Was this page helpful?
