 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
yazigegeda Expert Cheater
Reputation: 0
Joined: 22 Jan 2019 Posts: 183
|
Posted: Fri Jun 12, 2020 9:16 am Post subject: How does executeCodeEx get the return value? |
|
|
| Code: |
function RtlAdjustPrivilege()
return executeCodeEx(0,0,'ntdll.RtlAdjustPrivilege',{0,20},{0,1},{0,0},{0,ts})
end
|
Doesn’t I write like this?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 472
Joined: 09 May 2003 Posts: 25867 Location: The netherlands
|
Posted: Fri Jun 12, 2020 9:47 am Post subject: |
|
|
executeCodeEx injects a routine into the target that waits for the result and then writes the result at a predefined location. CE then reads that out, frees the injected routine, and returns the result
_________________
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 |
|
| Back to top |
|
 |
yazigegeda Expert Cheater
Reputation: 0
Joined: 22 Jan 2019 Posts: 183
|
Posted: Fri Jun 12, 2020 5:58 pm Post subject: |
|
|
Has been solved!
| Code: |
function RtlAdjustPrivilege(Privilege,Enable,Client,_WasEnabled)
return executeCodeEx(0,-1,'ntdll.RtlAdjustPrivilege',{0,Privilege},{0,Enable},{0,Client},{0,_WasEnabled})
end
|
I changed the second parameter to -1
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|