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 


[Solved]Calling Cheat Engine's IOCTLs outside of it

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
xmydl
Newbie cheater
Reputation: 0

Joined: 28 Apr 2023
Posts: 16

PostPosted: Thu Oct 19, 2023 10:53 am    Post subject: [Solved]Calling Cheat Engine's IOCTLs outside of it Reply with quote

Hello, thank you for reading this post.

I'm currently modifying Cheat Engine's Kernel Driver and want calling its IOCTLs outside of it. However while I'm calling it my user mode application failed to CreateFile or anything related for finding its Symbolic Name. Handling process was failed due to this.

Do I need any kind of priviledges such as debug privilidge for calling its IOCTLs? I currently didn't find related code for checking if its callable from a process. Only ifdef TobeSigned shows a little piece of checking.

I would be really grateful if you coould help me with this problem.

Updated0: Only one suggestion for that could Mr./Mrs. Dark Byte release patreon versions with debug infos? I know there is one currently for exes but not for kernel drivers. It could be a little bit hard using github's time machine finding specific code from specific time ranges.

Updated: Well there present to be no Checking or verification while releasing it without signature. What I'm facing is not because Cheat Engine's code but mine user mode app going wrong. What a shame. Debugging it for so long but gone for the wrong rabbit hole. Nevertheless thank you for reading this post. Have a nice day!

Code:
#ifdef TOBESIGNED
    sedebugprivUID.LowPart=SE_DEBUG_PRIVILEGE;
   sedebugprivUID.HighPart=0;
   
   if (SeSinglePrivilegeCheck(sedebugprivUID, UserMode)==FALSE)
   {
      DbgPrint("DispatchIoctl called by a process without SeDebugPrivilege");
      return STATUS_UNSUCCESSFUL;
   }
#endif
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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