So I got some code I borrowed from [c0z], thanks to open source DashLaunch.
I am trying to modify it a little for a project I am working on but have hit a road block.
CODE
PLDR_DATA_TABLE_ENTRY ldat;
ldat = (PLDR_DATA_TABLE_ENTRY)GetModuleHandle("xam.xex");
//Works
CODE
PLDR_DATA_TABLE_ENTRY ldat;
ldat = (PLDR_DATA_TABLE_ENTRY)GetModuleHandle("default.xex");
//Doesn't Work
The above examples are followed by:
CODE
if (ldat != NULL)
{
DWORD imgSize = ldat->SizeOfFullImage;
//Dump game memory using above image size
}
else
XShowMessageBox... // Error
Why does xam.xex work and not default.xex? Does it have something do to with default.xex being an active title? I even tried using a security_info struct, had even worse results.
Any help would be great...
Thanks - Dwack
EDIT* - Doing this on a JTAG