I have found the response in an other newsgroup : Do not increase by 65536
but take the negative.
Also there is different format for application icon in the registry.
If it is %1 for filename, filename is the file using to have the extension.
If the number is negative, you should take th (-n)-th icon of the file
filename.
If there is nonumber, It was not defined so take the default icon
(shell32.dll 0)
If the filename have no icon at the position then take an icon appropriatly
(defaut for all, special for exe for example)
"Julien" wrote:
In the registry, the application icon are stored in the format:
filename,resource_number
I can open the library "filename" using the native API function
LoadLibrary, and
then enumerate resources with EnumResource.
resource_number can be a negative one, I should increase it by 65536 to
have the good one.
The problem is the number obtained by increasing can't be the index of
resources in the library! Is it an identifier?
How can i get a resource from a library from an identifier (or from the
number i get)?