SHSTOCKICONINFO structure

Receives information used to retrieve a stock Shell icon. This structure is used in a call SHGetStockIconInfo.

Syntax


typedef struct {
  DWORD cbSize;
  HICON hIcon;
  int   iSysImageIndex;
  int   iIcon;
  WCHAR szPath[MAX_PATH];
} _SHSTOCKICONINFO;

Members

cbSize

Type: DWORD

The size of this structure, in bytes.

hIcon

Type: HICON

When SHGetStockIconInfo is called with the SHGSI_ICON flag, this member receives a handle to the icon.

iSysImageIndex

Type: int

When SHGetStockIconInfo is called with the SHGSI_SYSICONINDEX flag, this member receives the index of the image in the system icon cache.

iIcon

Type: int

When SHGetStockIconInfo is called with the SHGSI_ICONLOCATION flag, this member receives the index of the icon in the resource whose path is received in szPath.

szPath

Type: WCHAR[MAX_PATH]

When SHGetStockIconInfo is called with the SHGSI_ICONLOCATION flag, this member receives the path of the resource that contains the icon. The index of the icon within the resource is received in iIcon.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shellapi.h

See also

SHGetStockIconInfo

 

 

Show: