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 


CE 6.7 DBKKernel, IOPLDispatcher.c ERROR

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

Joined: 03 Sep 2017
Posts: 13

PostPosted: Sun Sep 03, 2017 2:35 pm    Post subject: CE 6.7 DBKKernel, IOPLDispatcher.c ERROR Reply with quote

Hi, how can i fix this Error?

Trying to compile DBKKernel.......
-Using Cheat Engine 6.7 Source
-Using Windows 10
-Using WinDDK 7600.16385.1

Compiler Error:
1>c:\ce\dbkkernel\iopldispatcher.c(2257) : error C2220: warning treated as error - no 'object' file generated

ERROR CODE LINE(2257) (IOPLDispatcher.c):
Code:
#if (NTDDI_VERSION >= NTDDI_VISTA)            
            struct
            {
               QWORD PreferedAltitude;
               QWORD ProtectedProcess;               
            } *inp = Irp->AssociatedIrp.SystemBuffer;
            
            DbgPrint("inp->PreferedAltitude=%p", inp->PreferedAltitude);
            DbgPrint("inp->PreferedAltitude=%p", inp->ProtectedProcess);
            if (inp->ProtectedProcess)            
               DRMProcess = inp->ProtectedProcess; //< < < < < < ERROR CODE LINE(2257)< < < < < < < < <
            else
               DRMProcess = PsGetCurrentProcess();

            DbgPrint("DRMProcess=%p", DRMProcess);

            if (DRMHandle == NULL)
            {
               WCHAR wcAltitude[10];
               UNICODE_STRING usAltitude;
               OB_CALLBACK_REGISTRATION r;
               LARGE_INTEGER tc;
               OB_OPERATION_REGISTRATION obr[2];
               int RandomVal = inp->PreferedAltitude;
               int trycount = 0;

               if (RandomVal == 0)
               {
                  tc.QuadPart = 0;
                  KeQueryTickCount(&tc);
                  RandomVal = 1000 + (tc.QuadPart % 50000);
               }
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25252
Location: The netherlands

PostPosted: Sun Sep 03, 2017 5:00 pm    Post subject: Reply with quote

the generated .log file will tell you what the warning is
most likely it wants you to specifically typecast it to the type of DRMProcess

alternatively, try the checked build environment (or free if you used checked)

_________________
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
View user's profile Send private message MSN Messenger
cody11102
Newbie cheater
Reputation: 1

Joined: 03 Sep 2017
Posts: 13

PostPosted: Mon Sep 04, 2017 3:16 am    Post subject: Reply with quote

Using the "Checked Build Environment" has fixed this Error.
Thank you!
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 Source 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