Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.5 KB

SHGetStockIconInfo.md

File metadata and controls

59 lines (40 loc) · 1.5 KB

Home

Function name : SHGetStockIconInfo

Group: Shell Functions - Library: shell32


Retrieves information about system-defined Shell icons.


Code examples:

Windows Shell Icons displayed and exported to ICO files (Vista)

Declaration:

HRESULT SHGetStockIconInfo(
           SHSTOCKICONID siid,
           UINT uFlags,
  __inout  SHSTOCKICONINFO *psii
);  

FoxPro declaration:

DECLARE INTEGER SHGetStockIconInfo IN shell32;
	INTEGER siid,;
	LONG uFlags,;
	INTEGER 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.

psii [in, out] A pointer to a SHSTOCKICONINFO structure.


Return value:

If the method succeeds, it returns S_OK (0). Otherwise, it returns an HRESULT error code.


Comments:

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.

See also: ExtractIcon, ExtractAssociatedIcon, GetIconInfo.