CoInternetQueryInfo
A version of this page is also available for
4/8/2010
This function retrieves information related to the specified URL.
Syntax
HRESULT CoInternetQueryInfo(
LPCWSTR pwzUrl,
QUERYOPTION QueryOption,
DWORD dwQueryFlags,
LPVOID pvBuffer,
DWORD cbBuffer,
DWORD* pcbBuffer,
DWORD dwReserved
);
Parameters
- pwzUrl
Address of a string value that contains the URL.
QueryOption
QUERYOPTION value that indicates which option to query. This can be one of the following values:- QUERY_IS_CACHED
- QUERY_IS_CACHED_OR_MAPPED
- QUERY_IS_INSTALLEDENTRY
- QUERY_USES_CACHE
- QUERY_USES_NETWORK
- dwQueryFlags
Unsigned long integer value that contains the query flags.
- pvBuffer
Address of the buffer where the information will be stored.
- cbBuffer
Unsigned long integer value that contains the size of the buffer.
- pcbBuffer
Address of an unsigned long integer variable where the size of the requested information will be stored.
- dwReserved
Reserved. Must be set to zero.
Return Value
This function returns one of the values shown in the following table.
Value | Description |
---|---|
S_OK |
Success. |
E_FAIL |
Other failures. |
Other values |
Pluggable protocol handlers return the values documented for IInternetProtocolInfo. |
Requirements
Header | urlmon.h, urlmon.idl |
Library | urlmon.lib |
Windows Embedded CE | Windows CE .NET 4.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |