Group: Shell Functions - Library: shell32
Windows Shell Icons displayed and exported to ICO files (Vista)
HRESULT SHGetStockIconInfo(
SHSTOCKICONID siid,
UINT uFlags,
__inout SHSTOCKICONINFO *psii
);
DECLARE INTEGER SHGetStockIconInfo IN shell32;
INTEGER siid,;
LONG uFlags,;
INTEGER psii
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.
If the method succeeds, it returns S_OK (0). Otherwise, it returns an HRESULT error code.
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.