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
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();
}[/code]
*****************************************************