Export (0) Print
Expand All
Expand Minimize

SHFILEINFO 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

Type: HICON

A handle to the icon that represents the file. You are responsible for destroying this handle with DestroyIcon when you no longer need it.

iIcon

Type: int

The index of the icon image within the system image list.

dwAttributes

Type: DWORD

An array of values that indicates the attributes of the file object. For information about these values, see the IShellFolder::GetAttributesOf method.

szDisplayName

Type: TCHAR[MAX_PATH]

A 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

Type: TCHAR[80]

A string that describes the type of file.

Remarks

This structure is used with the SHGetFileInfo function.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shellapi.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft