BOOL GetIconInfo(hicon, piconinfo) | |||
HICON hicon; | |||
PICONINFO piconinfo; |
The GetIconInfo function obtains information about an icon or cursor.
hicon
A handle to the icon or cursor of interest.
piconinfo
A pointer to an ICONINFO structure. The function will fill in the structure's fields.
If the function is successful, the return value is TRUE. Additionally, the function will fill in the fields of the ICONINFO structure pointed to by piconinfo. The function will create bitmaps for the hbmMask and hbmColor fields of this structure; it is the caller's responsibility to manage these bitmaps and delete them when they are no longer needed.
If the function fails, the return value is FALSE. Additional information may be obtained by calling GetLastError.
CreateIcon, CreateIconFromResource, CreateIconIndirect, DestroyIcon, DrawIcon, LoadIcon, LookupIconIdFromDirectory