Quantcast
Channel: OwnedCore - World of Warcraft Exploits, Hacks, Bots and Guides.
Viewing all articles
Browse latest Browse all 280060

Is there something wrong with my code?(RegiserFunction related)

$
0
0
I want to call Framescript_RegisterFunction with a injected dll
here is my code:

Code:

m_pfnFramescript_RegisterFunction = (int(_cdecl *)(char *, int(_cdecl *)(void *)))(dwBase + OFFSET_FRAMESCRIPT_REGISTERFUNCTION);
Code:

        gHook->m_bHasInitedTimer = true;

        int regSuccess = gHook->m_pfnFramescript_RegisterFunction("CloseProcess", CustomLua_CloseProcess);

After called register function,I tried to call the lua function,but it show me the gloabl function is nil(Not Registered)
Can someone help me to correct the error?

Viewing all articles
Browse latest Browse all 280060

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>