|
OleGetIconOfFile
Returns a handle to a metafile containing an icon and string label for the
specified filename.
HGLOBAL OleGetIconOfFile(
LPOLESTR lpszPath,
| //Points to string that specifies the file for which info is requested
| BOOL fUseFileAsLabel
| //Indicates whether to use the filename as the icon label
| );
|
|
Parameters
lpszPath
Points to a file for which the icon and string are requested.
fUseFileAsLabel
Indicates whether or not to use the filename as the icon label.
Return Value
HGLOBAL
The hGlobal returned is a handle to a metafile that contains an icon and label for the
specified file. If there is no CLSID in the registration database for the file,
then the string "Document" is used. If the value of lpszPath is NULL, then NULL is returned.
See Also
OleGetIconOfClass, OleMetafilePictFromIconAndLabel
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|