FindWindow not work in gunz source.
FindWindow not work in gunz source.
What the hell is Find Window?
its working i use it like this.
PHP Code:HWND A = FindWindowA(NULL, "badwindow.exe");
if(A == 0)
mlog( "BadWindow Found\n");
else
mlog( "No BadWindow Found\n");
You're using it wrong.If the function succeeds, the return value is a handle to the window that has the specified class name and window name.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
Thanks Seatroll
Closed Please.
Last edited by maxinimo; 14-02-13 at 12:41 AM.
pfft your blacklisting program window names? if so, stupid idea
The condition is reversed (That's what Wizkidje said).
and in future coding, I strongly recommend to use FindWindow (Not FindWindowA, same thing goes to many other Win32 API functions).
There are a lot of ways, but It isn't easy. At least, finding out window name is just useless and dangerous.
Thanks to all
Code of seatroll solve my problem.
More Simple
PHP Code:void ForYou()
{
if ( FindWindowA( "Cheat Engine", 0 ) )
{
Log("Hack Detected, Gunz Closed open the gunz again");
Detected();
}
1: Right-click an empty space on the taskbar. Click "Task Manager." Click the "Processes" tab.
2: Click "Image Name" to sort the processes alphabetically. Right-click the process you want to rename, then click "Properties."
3: Right-click the process once again, then click "End Process." Click "End Process" once again.
4: Return to the "Properties" window. Select the "General" tab. Erase the name of the process, but leave the file extension.
5: Enter into the box the name you want to change the process to. Do not change or delete the file extension.
6: Click "Apply," then "OK," to change the process name.
What the hell you thinking to block windows name ? even a 2 year old kid can bypass it ! :|
You forgot to mention your source.
How to Change a Process Name on Windows Task Manager | eHow.com
http://forum.ragezone.com/f245/simpl...tihack-900201/
Whaaaaaaaaaaaat ?