I want to modify some string in my exe
resource. That resource type is a string table,
but when i use UpdateResource
function i don't know what parameter must be pass to it so it's pointing to the exact raw in the string table.
The type parameter is RT_STRING
, but what should I send to MAKEINTRESOURCEW()
?
HANDLE hExeFile = BeginUpdateResource(L"d:\\m.exe", FALSE);
WCHAR mail[]={L"ddddddd@gmail.com"};
UpdateResource(hExeFile,RT_STRING,MAKEINTRESOURCEW(?????), MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), (LPVOID)mail, wcslen(mail)*2);
EndUpdateResource(hExeFile, FALSE);