In Find resource API.
FindResource(..) API the Second parameter i don't understand.
I am trying to extract using FindResource and others API.
here is the sample code:
hRes = FindResource(hExe, MAKEINTRESOURCE(IDD_HAND_ABOUTBOX), RT_DIALOG);
Where can i find ID of text in want to extract ?
I am using VS.
How can i get resource name and Id ?
What's wrong in my code ?
Code:
LPCWSTR FilePath = L"C:\\MyApp";
LPCWSTR ResourseApp = L"ASM.PNG";
mod = LoadLibrary(FilePath);
if (mod == NULL) {
std::cout << "[*] Error in LoadLibrary!" << std::endl;
std::cout << " " << GetLastError() << std::endl;
}
FindSrc = FindResource(mod,ResourseApp,NULL);
if (FindSrc == NULL) {
std::cout << "Error In FindREsource ! " << " " << GetLastError() << std::endl;
}
http://pastebin.com/rhU3QDSS
Help is always Appreciated!
Thanks