G
Garsia
Guest
im using this code
HANDLE hThread = OpenThread(THREAD_ALL_ACCESS, FALSE, ThreadId);
CONTEXT FName = {0};
if (GetThreadContext(hThread, &FName))
{
FName.ContextFlags = CONTEXT_DEBUG_REGISTERS;
FName.Dr0 = Address;
FName.Dr7 = 0x00000001;
if (!SetThreadContext(hThread, &FName))
{
std::cout << "SetThreadContext Error" << std::endl;
}
}
else
{
std::cout << "GetThreadContext Error" << std::endl;
}
std::cout << "MainThreadId: " << ThreadId << std::endl;
DEBUG_EVENT dbgEvent = {0};
on loop success step for breakpoint addres the question is how to set another address for breakpoint and dont overwrite the current
Continue reading...
HANDLE hThread = OpenThread(THREAD_ALL_ACCESS, FALSE, ThreadId);
CONTEXT FName = {0};
if (GetThreadContext(hThread, &FName))
{
FName.ContextFlags = CONTEXT_DEBUG_REGISTERS;
FName.Dr0 = Address;
FName.Dr7 = 0x00000001;
if (!SetThreadContext(hThread, &FName))
{
std::cout << "SetThreadContext Error" << std::endl;
}
}
else
{
std::cout << "GetThreadContext Error" << std::endl;
}
std::cout << "MainThreadId: " << ThreadId << std::endl;
DEBUG_EVENT dbgEvent = {0};
on loop success step for breakpoint addres the question is how to set another address for breakpoint and dont overwrite the current
Continue reading...