SHFILEINFO
作用:包含一個檔案的信息
typedef struct _SHFILEINFO{
HICON hIcon;
int iIcon;
DWORD dwAttributes;
charszDisplayName[MAX_PATH];
charszTypeName[80];
} SHFILEINFO;
相關資料
Contains information about a file object.
hIcon//圖示句柄
Handle to the icon that represents the file.
iIcon //系統圖示列表的索引
Index of the icon image within the system image list.
dwAttributes //檔案的屬性
Array of values that indicates the attributes of the file object. For information about these values, see the IShellFolder::GetAttributesOf method.
szDisplayName //檔案的路徑等
String that contains the name of the file as it appears in the Windows shell, or the path and file name of the file that contains the icon representing the file.
szTypeName //檔案的類型名
String that describes the type of file.
This structure is used with the SHGetFileInfo function