URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       Hack Community
  HTML https://roshacks.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: C and C++
       *****************************************************
       #Post#: 508--------------------------------------------------
       [C++] Find Window Function
   DIR By: pipo1337
       Date: May 13, 2018, 7:28 am
       ---------------------------------------------------------
       --- Code ---
       #include <iostream>
       #include <Windows.h>
       
       using namespace std;
       
       int main()
       
       {
       HWND hWnds = FindWindowA(NULL, "hl3.exe" );
       
       if(hWnds == NULL)
       {
       cout << "Half Life 3 isn't open." << endl;
       }
       else
       {
       cout << "Half Life 3 is open :) " << endl;
       }
       
       
       cin.get();
       
       }
       --- End Code ---
       *****************************************************
       Page 1 of 1