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 containing the URL.
- QueryOption
- QUERYOPTION value that indicates which option to query.
- dwQueryFlags
- Unsigned long integer value containing the query flags.
- pvBuffer
- Address of the buffer where the information will be stored.
- cbBuffer
- Unsigned long integer value containing 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
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.
Function Information
Windows NT Use version 4.0. Implemented as a Unicode function. Windows Use Windows 95 and later. Implemented as a Unicode function. Header Urlmon.h Import Library Urlmon.lib Minimum availability Internet Explorer 4.0
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0