Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to delete exe file MAINICON

How can I delete the MAINICON resource entry in exe file(s)? Instead of changing the main icon of a given exe file, I want to delete the main icon, thus, it takes the default windows exe icon. I already know that this API function UpdateResource can change the MAINICON ( actually can change any resource) but how to delete resource?

Thanks,

like image 372
Robin-Hood Avatar asked Jun 08 '11 07:06

Robin-Hood


1 Answers

UpdateResource can add, modify and delete a resource.

If lpData is NULL and cbData is 0, the specified resource is deleted from the file indicated by hUpdate.

like image 80
David Heffernan Avatar answered Nov 08 '22 12:11

David Heffernan