IQueryInfo interface (shlobj_core.h)

Exposes methods that the Shell uses to retrieve flags and info tip information for an item that resides in an IShellFolder implementation. Info tips are usually displayed inside a tooltip control.

Inheritance

The IQueryInfo interface inherits from the IUnknown interface. IQueryInfo also has these types of members:

Methods

The IQueryInfo interface has these methods.

 
IQueryInfo::GetInfoFlags

Gets the information flags for an item. This method is not currently used.
IQueryInfo::GetInfoTip

Gets the info tip text for an item.

Remarks

This interface is obtained by calling IShellFolder::GetUIObjectOf and passing IID_IQueryInfo for the interface identifier. The item for which info tip information is being requested is contained in the apidl argument of the IShellFolder::GetUIObjectOf call. If IQueryInfo is not supplied by the folder, the Shell will use the standard display text in the info tip.

When to Implement

Implement IQueryInfo to provide flags and text information that differs from the normal text that is displayed for an item in a folder. For example, if your folder contained file objects, you could use the info tip to provide the entire path and file name for the item rather than just the file name.

When to Use

In most cases, you do not use this interface directly. The Shell will use this interface when it requires additional information to display inside of an info tip. However, you can use IQueryInfo directly if you want to obtain info tip information from another object.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shlobj_core.h