Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25788 Location: The netherlands
|
Posted: Mon Apr 01, 2019 9:09 am Post subject: |
|
|
calling the api in the target process or inside CE?
If inside CE I recommend plugins that add the new API's (though next version will allow pure lua as well)
if inside the target I recommend executeCodeEx
Code: |
executeCodeEx(callmethod, timeout, address, {type,value},{type,value},...)
Calls a function using the given callmethod and parameters
callmethod: 0=stdcall, 1=cdecl
timeout: Number of milliseconds to wait for a result. nil or -1, infitely. 0 is no wait (will not free the call memory, so beware of it's memory leak)
address: Address to execute
{type,value} : Table containing the value type, and the value
{
type: 0=integer (32/64bit) can also be a pointer
1=float (32-bit float)
2=double (64-bit float)
3=ascii string (will get converted to a pointer to that string)
4=wide string (will get converted to a pointer to that string)
value: anything base type that lua can interpret
}
Returns the E/RAX value returned by the called function (if no timeout or other interruption)
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|