网站首页  词典首页

请输入您要查询的函数:

 

术语 shgetstockiconinfo
释义 SHGetStockIconInfo
语法:
HRESULT SHGetStockIconInfo( SHSTOCKICONID siid,
UINT uFlags,
SHSTOCKICONINFO *psii
);
SHGetStockIconInfo功能
信息检索系统定义壳牌图标。
参数
siid
一个从SHSTOCKICONID枚举指定的图标应该是检索到的值。
uFlags
为零或以下标志指定要求的信息组合。
SHGSI_ICONLOCATION
在szPath及SHSTOCKICONINFO结构iIcon成员收到路径和图标的格式所要求的图标指数,适合传递给ExtractIcon函数。此标志的数值为零,所以您总是得到图标位置,无论其他标志。
SHGSI_ICON
该SHSTOCKICONINFO结构hIcon成员收到的句柄指定图标。
SHGSI_SYSICONINDEX
该SHSTOCKICONINFO结构iSysImageImage成员收到了在系统中的ImageList指定图标的索引。
SHGSI_LINKOVERLAY
修改了导致功能将链接添加覆盖到文件的图标SHGSI_ICON价值。
SHGSI_SELECTED
修改了导致功能融合与系统显示的颜色图标SHGSI_ICON价值。
SHGSI_LARGEICON
修改了导致函数检索图标的大版本SHGSI_ICON价值,正如SM_CXICON和SM_CYICON系统标准规定。
SHGSI_SMALLICON
修改了导致函数检索图标的小版本SHGSI_ICON价值,正如SM_CXSMICON和SM_CYSMICON系统标准规定。
SHGSI_SHELLICONSIZE
修改了导致函数检索壳牌的SHGSI_LARGEICON或SHGSI_SMALLICON值大小的图标,而不是由系统参数指定的大小。
二级私人秘书
[in, out] A pointer to a SHSTOCKICONINFO structure.当此函数被调用,这个结构的cbSize成员需要设置到SHSTOCKICONINFO结构的大小。当此函数返回时,包含一个指向SHSTOCKICONINFO结构,它包含所要求的资料。
返回值
返回S_OK如果成功,或其他错误值。
备注
如果该函数返回一个图标处理的SHSTOCKICONINFO结构hIcon成员所指向的私人秘书,您负责释放与DestroyIcon图标时,您不再需要它。
功能信息
最低DLL版本 Shell32.dll
自定义ImplementationNo
Headershellapi.h
import libraryNone
最低支持操作系统 Vista
==英文原文==SHGetStockIconInfo Function
Retrieves information about system-defined Shell icons.
Syntax
HRESULT SHGetStockIconInfo( SHSTOCKICONID siid,
UINT uFlags,
SHSTOCKICONINFO *psii
);
Parameters
siid
One of the values from the SHSTOCKICONID enumeration that specifies which icon should be retrieved.
uFlags
A combination of zero or more of the following flags that specify which information is requested.
SHGSI_ICONLOCATION
The szPath and iIcon members of the SHSTOCKICONINFO structure receive the path and icon index of the requested icon, in a format suitable for passing to the ExtractIcon function. The numerical value of this flag is zero, so you always get the icon location regardless of other flags.
SHGSI_ICON
The hIcon member of the SHSTOCKICONINFO structure receives a handle to the specified icon.
SHGSI_SYSICONINDEX
The iSysImageImage member of the SHSTOCKICONINFO structure receives the index of the specified icon in the system imagelist.
SHGSI_LINKOVERLAY
Modifies the SHGSI_ICON value by causing the function to add the link overlay to the file's icon.
SHGSI_SELECTED
Modifies the SHGSI_ICON value by causing the function to blend the icon with the system highlight color.
SHGSI_LARGEICON
Modifies the SHGSI_ICON value by causing the function to retrieve the large version of the icon, as specified by the SM_CXICON and SM_CYICON system metrics.
SHGSI_SMALLICON
Modifies the SHGSI_ICON value by causing the function to retrieve the small version of the icon, as specified by the SM_CXSMICON and SM_CYSMICON system metrics.
SHGSI_SHELLICONSIZE
Modifies the SHGSI_LARGEICON or SHGSI_SMALLICON values by causing the function to retrieve the Shell-sized icons rather than the sizes specified by the system metrics.
psii
[in, out] A pointer to a SHSTOCKICONINFO structure. When this function is called, the cbSize member of this structure needs to be set to the size of the SHSTOCKICONINFO structure. When this function returns, contains a pointer to a SHSTOCKICONINFO structure that contains the requested information.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
If this function returns an icon handle in the hIcon member of the SHSTOCKICONINFO structure pointed to by psii, you are responsible for freeing the icon with DestroyIcon when you no longer need it.
Function Information
Minimum DLL VersionShell32.dll
Custom ImplementationNo
Headershellapi.h
Import libraryNone
Minimum operating systemsWindows Vista
==原始网址==http://msdn.microsoft.com/en-us/library/bb762205(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:24:29