0

My application reads string from RCData/CONFIG.

I am trying to change the string with C++ application, and I have the source already done:

#include <Windows.h>
void main()
{
    char * newData = "wazzup bitches";

    HANDLE hUpdate = BeginUpdateResource("ChangeMyResource.exe", false);
    UpdateResource(hUpdate, MAKEINTRESOURCE(10), "CONFIG", 1, newData, strlen(newData));
    EndUpdateResource(hUpdate, false);
}

Before I run the application, it looks like this(Resource Hacker):

-

And after running the application it looks like this:

-

How can I change my code like the would look like the original, after the resource modification?

Isn't that basically called "hexdump"? So I should pass the *newData to function that makes it hexdump, and then update the resource? or am I wrong?

Someone please point me to the right direction or show me an example.

Been googling this almost for the whole day.

Sorry for the wazzup b...hes, it's just an example string came on my mind

user2404495
  • 195
  • 1
  • 6
  • 17

0 Answers0