Infotip Customization
There are two ways to customize infotips. One way is to implement an object that supports IQueryInfo and then register the object under the proper subkey in the registry (see below). Alternatively, you can specify either a fixed string or a list of certain file properties to be displayed.
To display a fixed string for a namespace extension, create a subkey called InfoTip beneath the CLSID key of your namespace extension. Set the data of that subkey to be the string you wish to be displayed.
HKEY_CLASSES_ROOT
CLSID
{CLSID}
InfoTip= InfoTip string for your namespace extension
To display a fixed string for a file type, create a subkey called InfoTip beneath the ProgID key of the file type you wish to supply infotips for. Set the data of that subkey to be the string you wish to be displayed.
HKEY_CLASSES_ROOT
ProgID
InfoTip= InfoTip string for all files of this type
If you want the Shell to show certain file properties in the infotip for a specific file type, create a subkey called InfoTip beneath the ProgID key of that file type. Set the data of that subkey to be a semicolon-delineated list of canonical property names or {fmtid}, pid pairs where propname is a canonical property name and {fmtid},pid is a FMTID/PID pair.
HKEY_CLASSES_ROOT
ProgID
InfoTip= propname;propname;{fmtid},pid;{fmtid},pid
The following property names can be used.
Property Name Description Retrieved From
Author Author of the document OLE document properties (PIDSI_AUTHOR)
Title Title of the document OLE document properties (PIDSI_TITLE)
Subject Subject summary OLE document properties (PIDSI_SUBJECT)
Comment Document comments OLE document properties (PIDSI_COMMENT) or folder/drive properties
PageCount Number of pages OLE document properties (PIDSI_PAGECOUNT)
Name Friendly name Standard folder view
OriginalLocation Location of original file Briefcase folder and Recycle Bin folder
DateDeleted Date file was deleted Recycle Bin folder
Type Type of file Standard folder details view
Size Size of file Standard folder details view
SyncCopyIn Same as OriginalLocation Same as OriginalLocation
Modified Date last modified Standard folder details view
Created Date created Standard folder details view
Accessed Date last accessed Standard folder details view
InFolder Directory containing the file Document search results
Rank Quality of search match Document search results
FreeSpace Available storage space Disk drives
NumberOfVisits Number of visits Favorites folder
Attributes File Attributes Standard folder details view
Company Company name OLE document properties (PIDDSI_COMPANY)
Category Document category OLE document properties (PIDDSI_CATEGORY)
Copyright Media copyright OLE document properties (PIDMSI_COPYRIGHT)
HTMLInfoTipFile HTML InfoTip file Desktop.ini file for folder