CoInternetQueryInfo
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:Value Description QUERY_IS_CACHED Check if the resource is cached locally. QUERY_IS_CACHED_OR_MAPPED Check if this resource is stored in the cache or if it is on a mapped drive (in a cache container). QUERY_IS_INSTALLEDENTRY Check if this resource is installed locally. QUERY_USES_CACHE Check if the specified protocol uses the Internet cache. QUERY_USES_NETWORK Check if the URL needs to access the 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 Values
Returns one of the following values:
- S_OK
Success. - S_FALSE
The buffer was too small to store the information. - INET_E_QUERYOPTION_UNKNOWN
The option requested is unknown.
Requirements
Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: urlmon.h
Library: urlmon.lib
See Also
URL Moniker Services Functions
Send Feedback on this topic to the authors