词条 | SHFILEINFO |
释义 | SHFILEINFO 作用:包含一个文件的信息 typedef struct _SHFILEINFO{ HICON hIcon; int iIcon; DWORD dwAttributes; char szDisplayName[MAX_PATH]; char szTypeName[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 按实际情况设置dwFileAttributes(文件夹用FILE_ATTRIBUTE_DIRECTORY,其它FILE_ATTRIBUTE_NORMAL)可以提高大大速度。 |
随便看 |
|
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。