archived forum

Please login or register.

Login with username, password and session length
Advanced search  

News: forum restored.  registration disabled.  thanks to xboxexpert for the db dump and netham45 for cleaning it up!

Author Topic: What Is This Argument?  (Read 264 times)


  • Guest
What Is This Argument?
« on: January 12, 2013, 11:05:29 PM »

i've been trying to figure the second argument to resolvefunct for a bit now with no luck. can anyone tell me?
UINT32 ResolveFunct(char* ModName, UINT32 Ord){
    UINT32 ptr32 = 0, ret = 0, ptr2 = 0;
    ret = XexGetModuleHandle(ModName, &ptr32);
    if(ret == 0){
        ret = XexGetProcedureAddress(ptr32, Ord, &ptr2);
        if(ptr2 != 0)
    return 0;

//What handles the first argument:
       IN        PSZ moduleName,
       IN OUT    PHANDLE hand

//What handles the second argument:
       IN        HANDLE hand,
       IN        DWORD dwOrdinal,
       IN        PVOID Address

//used as:  
XeKeysHmacSha = (XEKEYSHMACSHA)resolveFunct("xboxkrnl.exe", 0x249);
ExSetXConfigSetting = (EXSETXCONFIGSETTING)resolveFunct("xboxkrnl.exe", 0x18);
launchStartSysModule = (DWORD (__cdecl *)(char*))(ResolveFunct("launch.xex", 2));
XNotifyQueueUI xNotifyQueueUI = (XNotifyQueueUI)resolveFunct("xam.xex", 656);


Page created in 0.097 seconds with 17 queries.