Home
Tutorials
Code Snippets
Code Samples
Downloads
Links

The Blog
Our Projects
About
Contact

::Add RageStorm to Favorites!::

The Blog | Our Projects | Guest Book | About | Contact

 
Code Snippet - Kill Proccess
Author:Tornado
Category:Win32API
File Size:285 Bytes
Uploaded at:20-Dec-02 09:26:40 am
Description:
  The bad(?) way to kill a process.
  
//Here you go, thanks go to (Saar)tornado@goblineye.com for helping!
HWND hWnd = FindWindow(...); // Get the HANDLE to window you want to kill.

DWORD pid = 0;
GetWindowThreadProcessId(hWnd, &pid);
HANDLE hpro = OpenProcess(PROCESS_ALL_ACCESS, 1, pid);
TerminateProcess(hpro, 0);
User Contributed Comments(None)
NOTE:
Comments that will hurt anyone in any way will be deleted.
Don't ask for features, advertise or curse.
If you want to leave a message to the author use the contacts,
if you have any question in relation to your comments please use the forum.
Comments which violate any of these requests will be deleted without further
notice. Use the comment system decently.

Post your comment:
Name:
email:
Comment:
::Top 5 Tutorials::
Embedded Python[116827]
2D Rotated Rectangles Collision Detection[88938]
Keyboard Hook[77229]
UDP[65793]
HTTP Proxy[41181]

::Top 5 Samples::
2D ColDet Rotated Rectangles[11555]
PS2 Mouse Driver[6951]
Wave Format Player[5786]
Reading FAT12[5613]
CodeGuru[5353]


All rights reserved to RageStorm © 2009