problem getting imported function name
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I have application that scans for files (exe's and dll's) and looks up thei import table. I have managed to see what functions they import with IMAGE_NT_HEADERS IMAGE_IMPORT_HEADERS IMAGE_THUNK_DATA. i compare the c***ion pointer from pThunk->u1.FisrtFunction with my function loaded with GetProcaAdress() it works fine but how do I get the function name from IMAGE_THUNK_DATA structure i've tried WORD hint=(WORD)&pThunk[l]->u1.AddressOfData->Hint; PSTR FNAME=(PSTR)((BYTE *)hMod+pThunk[l]->u1.AddressOfData->Name[hint]); doesn't work what is the correct combination ? gabby