I'm using IDA Pro and WinDbg as a debugger. So I loaded an executable process into it. And now I need to know the entry point (or base address) of that loaded executable, the same as I would get from calling these APIs:
MODULEINFO mi = {0};
if(::GetModuleInformation(::GetCurrentProcess(), ::GetModuleHandle(NULL), &mi, sizeof(mi)))
{
//Needed entry point is:
pEntryPoint = mi.EntryPoint;
}
I found this referencethis reference, but when I do:
idaapi.get_imagebase()
it gives me the error:
Operation not supported in current debug session 'idaapi.get_imagebase()'
Sorry, I'm new to IDA. What am I doing wrong?