Posted Mon Oct 05, 2015 3:42 pm
# include
# include
# include
# include
using namespace std;
const char window [3] [65] = {"Windows Live Messenger", "Windows Media Player"
"Control Panel"};
HWND hwnd [3] = {hwnd [0] = FindWindow (NULL, windows [0]), hwnd [1] =FindWindow (NULL, windows [1]),
hwnd [2] = FindWindow (NULL, windows [2])};
void search () {
if (hwnd [0] == NULL) {
court <<"not found the window:" <
court <<"not found the window:" <
court <<"not found the window:" <
int main () {
SetConsoleTitle ("windows");
search ();
getchar ();
return 0;
}