Current location: Hot Scripts Forums » Programming Languages » C/C++ » Terminate/Kill More Then 1 Process...?


Terminate/Kill More Then 1 Process...?

Reply
  #1 (permalink)  
Old 01-27-07, 02:15 PM
luckyricky_1 luckyricky_1 is offline
New Member
 
Join Date: Jan 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Terminate/Kill More Then 1 Process...?

I have got a script using VB that kills a single process, if there a script using C/C++ that will kill 2 processes?

If so could some one post it for me to use?

Many thanks in advance!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 01-28-07, 05:41 PM
grafman grafman is offline
Coding Addict
 
Join Date: Dec 2006
Posts: 278
Thanks: 0
Thanked 0 Times in 0 Posts
Here is your hint:

System.Diagonistics.Process.GetProcesses()

From the win32 api.

If you get the procs then you can find find the calls to the object returns that will kill each one that you choose.

Make sure to look at how the signals work so you send the right one, and be aware of the process tree so you don't kill a bunch of important processes where you just meant to kill one.
__________________
"Things are difficult only while you don't understand them."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Terminate/Kill More Then 1 Process...? luckyricky_1 Visual Basic 3 01-29-07 10:23 AM
Perl/CGI Script to background process weilies Perl 3 07-18-06 09:19 PM
Hide Process aljovan Visual Basic 4 08-11-05 01:33 AM
hide process mike_wilson Visual Basic 3 03-20-05 02:03 PM


All times are GMT -5. The time now is 01:49 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.