Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method retrieves information related to the specified URL.

Syntax

HRESULT QueryInfo( 
  LPCWSTR 
pwzUrl,
  QUERYOPTION 
OueryOption,
  DWORD 
dwQueryFlags,
  LPVOID 
pBuffer,
  DWORD 
cbBuffer,
  DWORD* 
pcbBuf,
  DWORD 
dwReserved
);

Parameters

pwzUrl

[in] String value that contains the URL.

OueryOption

[in] QUERYOPTIONvalue that indicates what option to query.

dwQueryFlags

[in] Reserved. Must be set to zero.

pBuffer

[in, out] Address of the buffer to store the information.

cbBuffer

[in] Unsigned long integer value that contains the size of the buffer.

pcbBuf

[in, out] Address of an unsigned long integer variable to store the size of the requested information.

dwReserved

[in] Reserved. Must be set to zero.

Return Value

Returns one of the values shown in the following table.

Value Description

S_OK

The information requested was retrieved successfully.

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
Windows Mobile Windows Mobile Version 5.0 and later