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 


suggestion or helping about debugging under windows xp

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
zagrab
How do I cheat?
Reputation: 0

Joined: 17 Nov 2018
Posts: 2
Location: egypt

PostPosted: Sat Nov 17, 2018 4:06 pm    Post subject: suggestion or helping about debugging under windows xp Reply with quote

hey guys Very Happy

i just want some suggestions about my problem it has been a month since im trying to find a solution for it

i made a program acts as a debugger and it works fine on every windows
[7, 8 , 8.1, 10] expect windows xp

the problem is that my breakpoint event doesnt want to reach / hit reason unknown and here he is my debug loop that im using
NOTE : the INT3 exists also i tried to use the breakpoint on shell.dll and its worked but it seems that the external exe or dll not belongs to windows files doesnt have a permission or something ?





Code:
 void DebugLoop() {
    DEBUG_EVENT debugEvent = {0};
    DWORD ContinueStatus = DBG_CONTINUE;
    while (WaitForDebugEvent(&debugEvent, INFINITE)) {
        DWORD debugEventCode = debugEvent.dwDebugEventCode;
        if (debugEventCode == EXCEPTION_DEBUG_EVENT) {
            switch (debugEvent.u.Exception.ExceptionRecord.ExceptionCode) {
            case EXCEPTION_BREAKPOINT:
                if (!initialBreakpointSeen)
                    OnAttach(&debugEvent);
                else
                    OnMemoryBreakpoint(&debugEvent);
                break;
            case EXCEPTION_SINGLE_STEP:
                OnSingleStep(&debugEvent);
                break;
            default:
                ContinueStatus = DBG_EXCEPTION_NOT_HANDLED;
                break;
            }
        }
        else if (debugEventCode == CREATE_PROCESS_DEBUG_EVENT) {
            startAddress = (DWORD)debugEvent.u.CreateProcessInfo.lpBaseOfImage;
        }
        else if (debugEventCode == EXIT_PROCESS_DEBUG_EVENT) {
            detachRequested = true;
        }
        if (!ContinueDebugEvent(debugEvent.dwProcessId, debugEvent.dwThreadId,
            ContinueStatus)) {
            return;
        }
    }
}




would someone please tell me why ?

or would anyone build this DBKKERNEL for me bec i dont have the requirments
im going to use it as a lib to put it coz it might be the kernel of windows xp
has the problem or something

_________________
a student
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 368

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

PostPosted: Sat Nov 17, 2018 5:32 pm    Post subject: Reply with quote

Not sure. But i can tell you that the 'resume flag'(rf) in elfags does not work in windows xp, so there you have to actively remove the old breakpoint, single step, and set it back
_________________
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
zagrab
How do I cheat?
Reputation: 0

Joined: 17 Nov 2018
Posts: 2
Location: egypt

PostPosted: Sat Nov 17, 2018 5:44 pm    Post subject: Reply with quote

@Dark Byte thanks for reply sir <3

would you please build your kernel for me ? im sorry for asking that but i swear the requirments of building that dll wont work on my pc and that is sucks

i think your DBKKERNEL will work if i put it inside my project as a package or lib i mean
and thanks again

_________________
a student
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