I want to modify the version info of a compiled exe to change the description.
I looked at it a bit myself and figured out I need to use the UpdateRessource function, and I got this far.
LPBYTE lpBuffer = new BYTE[200];
UpdateResource(filehandle,
RT_VERSION,
MAKEINTRESOURCE(1),
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPVOID) lpBuffer,
sizeof(lpBuffer)
The part I can't quite figure out is the lpBuffer. I only want to change the part of the ressource containing the file description.
My guess is that I'd have to load the old version from the exe and modify it a bit, but I'm not quite sure how it's structured.