Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.33 KB

File metadata and controls

54 lines (37 loc) · 1.33 KB

Home

Function name : GetIconInfo

Group: Icon - Library: user32


The GetIconInfo function retrieves information about the specified icon or cursor.


Code examples:

How to view icons stored in executable files (Icon Viewer) - II
Retrieving information about the specified icon
Converting image file to .ICO file

Declaration:

BOOL GetIconInfo(
  HICON hIcon,          // icon handle
  PICONINFO piconinfo   // icon structure
);  

FoxPro declaration:

DECLARE INTEGER GetIconInfo IN user32;
	INTEGER   hIcon,;
	STRING  @ piconinfo  

Parameters:

hIcon [in] Handle to the icon or cursor.

piconinfo [out] Pointer to an ICONINFO structure. The function fills in the structure"s members.


Return value:

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.


Comments:

See also: ExtractIcon, SHGetStockIconInfo.