Partager via


CoInternetQueryInfo (Windows Embedded CE 6.0)

1/6/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.

S_FALSE

The buffer was too small to store the information.

INET_E_QUERYOPTION_UNKNOWN

The option requested is unknown.

Requirements

Header urlmon.h, urlmon.idl
Library urlmon.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

URL Moniker Services Functions