Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Converting image file to .ICO file
How to view icons stored in executable files (Icon Viewer) - II
Retrieving information about the specified icon
..msdn    Add comment     W32 Constants      Translate this page
The GetIconInfo function retrieves information about the specified icon or cursor.
Code examples:
How to view icons stored in executable files (Icon Viewer) - II
Converting image file to .ICO file
Retrieving information about the specified icon
BOOL GetIconInfo(
  HICON hIcon,          // icon handle
  PICONINFO piconinfo   // icon structure
FoxPro declaration:
DECLARE INTEGER GetIconInfo IN user32;
    INTEGER   hIcon,;
    STRING  @ piconinfo
[in] Handle to the icon or cursor.

[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.
hIcon = ExtractIcon(0, cSourceFile, nIconIndex)

IF hIcon <> 0
    = GetIconInfo(m.hIcon, @cBuffer)
My comment:
See also: ExtractIcon, SHGetStockIconInfo
Word Index links for the GetIconInfo :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2001-12-07 19:51:02
Modified: 2011-01-17 16:29:51
Visited in last 7 days: 28
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
1 sec.Function: 'WNetGetProviderName'
Function group: 'Windows Networking'
2 sec.Example: 'Retrieving the state of your Internet connection'
5 sec.Function: 'JetEndSession'
6 sec.Function: 'StartPage'
Function group: 'Printing and Print Spooler'
8 sec.Function: 'GetPhysicalMonitorsFromHMONITOR'
9 sec.Function: 'midiOutGetNumDevs'
Function group: 'Windows Multimedia'
11 sec.Example: 'Using Shell for performing operations on files'
13 sec.Example: 'Displaying bitmap using the AlphaBlend function'
15 sec.Example: 'Displaying dimmed window behind VFP top-level form'
18 sec.Example: 'How to retrieve adapter information for the local computer (including MAC address)'
Advertise here!