Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


OpenProcess() failing with ERROR_INVALID_PARAMETER

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
kuntz
Cheater
Reputation: 0

Joined: 29 Aug 2016
Posts: 44
Location: Canada

PostPosted: Mon Aug 29, 2016 5:24 pm    Post subject: OpenProcess() failing with ERROR_INVALID_PARAMETER Reply with quote

EDIT: Oops sorry, I solved my problem. I was being an idiot with GetWindowThreadProcessId() and using the return value as pid instead of the 2nd parameter.



Hello, I am trying to create a trainer for a 64b target and I cannot get past this call. I am using FindWindow & GetWindowThreadProcessId which are successful, but using the pid for OpenProcess fails every time. I am also running the EXE as Admin.

Is there a 64b trainer source code out there? I can't find any info or reasons as to why this is happening on any search engine!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites