The MASM Forum

General => The Campus => Topic started by: x64Core on July 19, 2012, 01:28:49 PM

Title: Help, Editing resource
Post by: x64Core on July 19, 2012, 01:28:49 PM
Hello all, guys, could someone help me, I'm trying to edit the resource of a Exe file in runtime, for example I would like to edit the
FileDescription field of my Exe file. I know get the field, using GetFileVersionInfo + VerQueryValue. but how can Imodify it?

I think with UpdateResource but I do not know how to use :P
any help, thanks!
Title: Re: Help, Editing resource
Post by: qWord on July 19, 2012, 08:42:24 PM
AFAIK there is no way to edit resources at runtime because the system locks the file for write access.
You may be able to do it by using a trampoline process.
Title: Re: Help, Editing resource
Post by: x64Core on July 20, 2012, 02:19:41 AM
ok but how I can do for any file? :P