This structure contains information about a file object.
At a Glance
Header file: | Shellapi.h |
Windows CE versions: | 1.0 and later |
Syntax
typedef struct _SHFILEINFO {
HICON hIcon;
int iIcon;
DWORD dwAttributes;
char szDisplayName[MAX_PATH];
char szTypeName[80];
} SHFILEINFO;
Members
hIcon
Handle to the icon that represents the file.
iIcon
Index of the icon image within the system image list.
dwAttributes
Specifies the attributes of the file object.
szDisplayName
Null-terminated 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
Null-terminated string that describes the type of file.
Remarks
This structure is used with the SHGetFileInfo function.