分享好友 天南地北首页 网站导航

什么是SHFILEINFO

网友 2023-09-16 12:36 · 头闻号教育培训

最佳答案:

SHFILEINFO包含一个文件的信息。

详情介绍

SHFILEINFO包含一个文件的信息。

中文名
SHFILEINFO
作用
包含一个文件的信息
szTypeName
文件的类型名
hIcon
图标句柄

简介

SHFILEINFO

作用:

typedef struct _SHFILEINFO{

HICON hIcon;

int iIcon;

DWORD dwAttributes;

char szDisplayName;

char szTypeName;

} 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)可以大大提高速度。

免责声明:本平台仅供信息发布交流之途,请谨慎判断信息真伪。如遇虚假诈骗信息,请立即举报

举报
反对 0
打赏 0
更多相关文章

收藏

点赞