Click here to Skip to main content
15,888,527 members
Articles / Programming Languages / C#

Kill Application Using Win32 APIs

Rate me:
Please Sign up or sign in to vote.
2.39/5 (8 votes)
27 May 20072 min read 103.6K   3.5K   22  
It kills application. Programmer need to specify program EXE name, then this application will enumerate that application from current running process and retrieving ThreadID and Process Handle using this information application will terminate that application .
#if !defined(AFX_KILL_PROCESS_H__ADCBB3E1_138D_49C2_BEBB_5F652AF23A5B__INCLUDED_)
#define AFX_KILL_PROCESS_H__ADCBB3E1_138D_49C2_BEBB_5F652AF23A5B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "resource.h"


#endif // !defined(AFX_KILL_PROCESS_H__ADCBB3E1_138D_49C2_BEBB_5F652AF23A5B__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Technical Lead Tata Consultancy Servcies
India India
I have experience in iOs, Objective C,Java,C++/Vc++ 6.0,vc.Net,MFC,ATL,COM,WTL.

You can contact me on chaitanya.ce@gmail.com if you have any query.

Comments and Discussions