Why cannot I just write:
GetWindowThreadProcessId("Name of Window", &PID);
instead of:
HWND Name = FindWindow(("Name of Window", NULL));
GetWindowThreadProcessId(Name, &PID);
What does the Handle function do ? Like, if there wasn't something special with HWND, if it just stores a string, why not just use "string", so what does it store ?
because if I do this:
cout << Name << endl;
it gives a string ???
I was thinking about if it stores a function:
GetWindowThreadProcessId(FindWindow(("Name"), NULL)), &PID);