How to view icons stored in executable files (Icon Viewer) - II
Retrieving information about the specified icon
Converting image file to .ICO file
BOOL GetIconInfo(
HICON hIcon, // icon handle
PICONINFO piconinfo // icon structure
); DECLARE INTEGER GetIconInfo IN user32;
INTEGER hIcon,;
STRING @ piconinfo hIcon [in] Handle to the icon or cursor.
piconinfo [out] Pointer to an ICONINFO structure. The function fills in the structure"s members.
If the function succeeds, the return value is nonzero and the function fills in the members of the specified ICONINFO structure. If the function fails, the return value is zero.
See also: ExtractIcon, SHGetStockIconInfo.
Home