Hi i try to change some PE Exe icons and like to ask if someone know where i can find infos on the PE Header for Icons. I often found PE hints for joining 2 files or pack a PE File ,but i miss some infos for the Icon section. the idea i have is: i will search the icon start and end section of a PE file and then i insert in this section my new icon data. but i dont know where is the start or end and how can i find it,thats the problem :( Thanks for any help :)
The easiest solution would be to use a resource editor (or "hacker"). The resource section of the PE file doesn't look like it's much fun to deal with by hand. If you need general information about the PE format, go for iczelions tutorials, and the LUEVELSMEYER PE doc from microsoft (dunno where you can get it, search around).
Gonna put in a very "un-win32asm"/"generic" type reply, but i'm a bit lazy atm, and i'm sure you'll get the idea ;)
may have to check these params, i'm doing this "on-the-fly" i also have a sneaky suspicion that 95/98(?) might not support these, but *shrug* it _is_ a valid alternative. Clive [ Entro-P ]
invoke BeginUpdateResource, "PE.exe", FALSE mov hResup, eax invoke UpdateResource, hResup, RT_ICON, 1, NULL, lpIcon, cbIconSize ; assumes you want to replace icon ID "1" invoke EndUpdateResource, hResup, FALSE
Hi thanks for the help. Im not shure at the moment,but i mean the last example you post,change the icon to default windows icons ,or ? i will test it ;) i simply got the idea to write the icon new ,by studie a exe patcher and since i know no icon changer in asm ,i like to code one. asm makes fun ;) cu