Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Windows Shell
Shell Reference
Shell Structures
 SHFILEINFO Structure
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
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
The index of the icon image within the system image list.
dwAttributes
An array of values that indicates the attributes of the file object. For information about these values, see the IShellFolder::GetAttributesOf method.
szDisplayName
A string that contains the name of the file as it appears in the Microsoft Windows Shell, or the path and file name of the file that contains the icon representing the file.
szTypeName
A string that describes the type of file.

Remarks

This structure is used with the SHGetFileInfo function.

Structure Information

Headershellapi.h
Minimum operating systems Windows NT 4.0, Windows 95
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Visual Basic 9 declaration      Đonny   |   Edit   |   Show History
<StructLayout(LayoutKind.Sequential)> _
Public Structure SHFILEINFO
Public hIcon As IntPtr
Public iIcon As IntPtr
Public dwAttributes As FileFlags
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=MAX_PATH)> _
Public szDisplayName As String
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=80)> _
Public szTypeName As String
End Structure
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker