How to delete exe file MAINICON

How can I delete the MAINICON resource record in EXE files? Instead of changing the main icon of this exe file, I want to remove the main icon, so it accepts the default exe window icon. I already know that this function of the UpdateResource API can change MAINICON (in fact, it can change any resource), but how to delete a resource?

Thank,

+5
source share
1 answer

UpdateResource can add, modify and delete a resource.

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

+6
source

All Articles