xbox-scene.com archived forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

xbox-scene.com forum restored.  registration disabled.  thanks to xboxexpert for the db dump and netham45 for cleaning it up!

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

TEIR1plus2

  • 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?
CODE
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(ptr2);
    }
    return 0;
}

//What handles the first argument:
    XexGetModuleHandle(
       IN        PSZ moduleName,
       IN OUT    PHANDLE hand
       );

//What handles the second argument:
    XexGetProcedureAddress(
       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);





Logged
 

Page created in 0.045 seconds with 15 queries.