Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - extracticon() retrieves an icon handle from exe, dll or ico http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ExtractIcon()          Retrieves an icon handle from EXE, DLL or ICO
--------------------------------------------------------------------------------

   Syntax:              ExtractIcon( <cExeName>, <nIndex>)
                              --> <hIcon>

                        This function retrieves the handle of an icon from
                        a specified executable file, dynamic-link library
                        (DLL) or icon file.

   Parameters:

   <cExeName>           The name of the EXE, DLL or ICO file.

   <nIndex>             Specifies the index of the icon to be retrieved,
                        from the total number of icons inside the module.
                        If 0 is specified the first icon is returned.
                        If -1 is specified the total number of icons is
                        returned.

   Returns:

   <hIcon>              The handle of the icon. It is 0 if the
                        operation was not successful.

   Sample:              See IDE\\SOURCE\\Icons.prg

   Source code:         SOURCE\\WINAPI\\Icons.c

   See also:            LoadIcon() DrawIcon() nIcons()


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson