0

I will try to explain with example;

    #include <windows.h>
    #include <iostream>
    using namespace std;
    int main(){
          HWND hwndCalc;
          hwndCalc = FindWindow(NULL, "Calculator");     
          if(!hwndCalc)
                 return 1;
          SendMessage(hwndCalc, WM_COMMAND, MAKEWPARAM(0x84, BN_CLICKED), 0);     
          return 0;     
    }

In calculator, when you click a button SendMessage function works. I can find it with ollydbg. But with ollydbg, I can't debug other, normal programs.(exceptions, violations, crashes...) So i am wondering whether there is any other way to find out how programs work?

Erwan Legrand
  • 4,148
  • 26
  • 26
Zeki Kral
  • 1
  • 1
  • Yes, you can debug any program with a debugger. – typ1232 Feb 09 '17 at 15:24
  • there are many anti debug techniques. you should learn and remove these techniques. for example the most simple anti debug technique is checking isdebbugerpresent function. but you can bypass this function easily. – Amir Apr 11 '17 at 21:44

0 Answers0