Returns a handle to a metafile containing an icon and string label for the specified file name.
HGLOBAL OleGetIconOfFile(
LPOLESTR lpszPath, //Pointer to string that specifies the file
// for which info is requested
BOOL fUseFileAsLabel //Whether to use the file name as the icon
// label
);
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in ole2.h.
Import Library: Included as a resource in ole32.dll.
OleGetIconOfClass, OleMetafilePictFromIconAndLabel