Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This structure contains information about a file object.

Syntax

typedef struct _SHFILEINFO { 
  HICON 
hIcon; 
  int 
iIcon; 
  DWORD 
dwAttributes; 
  TCHAR 
szDisplayName[MAX_PATH]; 
  TCHAR 
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 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 SHGetFileInfofunction.

Requirements

Header shellapi.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Other Resources