I’m Loading a certain Exe in My Program and I’m trying to replace It’s Version Info Resource.
I’m Using UpdateResource() but for some reason It isn’t replacing the original resource as it is supposed to do.
UpdateResource(hHandle,RT_VERSION,"1",MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US),pRsrcMemory,rsrcSize)
When The Exe is opened in a resource editor , I see two version Info resources with the same ID 1 , But the Version Info Displayed in Windows Explorer is the Original Info.(Probably because it comes first in the .rsrc section of the exe but i’m not sure)
Any Help is appreciated.
Resource IDs can be either strings or numbers. Which is the problem here, it is not resource ID “1”, it is MAKEINTRESOURCE(1).
Fun puzzler.