Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Closing programs


Reply
 
Thread Tools Display Modes
  #1  
Old 01-02-2003, 01:38 PM
Blackfire's Avatar
Blackfire Blackfire is offline
Regular
 
Join Date: Nov 2002
Location: Scarborough, England
Posts: 65
Default Closing programs


I've looked everywhere for this, but i can't seem to find it...

I want to make a program that looks to see which other programs are running on the computer... (MS Word, Outlook, Internet Explorer, Systray, Some Virus, etc...)
I want to tell the user the names of these programs, then let the user press a button to close the program.

I can't find anywhere how to find the currently running programs or close them.

Can anyone help ?
__________________
~ Blackfire ~
~~~~~~~~~
"All that is gold does not glitter...
...not all those who wander are lost"
Reply With Quote
  #2  
Old 01-02-2003, 01:41 PM
Flyguy's Avatar
Flyguy Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 18,885
Default

Pressing CTRL-ALT-DEL fires the task manager, which gives the user the same functionallity.
Reply With Quote
  #3  
Old 01-02-2003, 01:55 PM
JimbotheGreat's Avatar
JimbotheGreat JimbotheGreat is offline
Junior Contributor
 
Join Date: Jul 2002
Location: Sunny Scotland
Posts: 207
Default

Start with the API call: EnumWindows
__________________
a^n + b^n = c^n where n>2. - A most remarkable proof.......

Please contact me at crazyjimbo4@hotmail.com or add me to MSN Messenger.
Reply With Quote
  #4  
Old 01-02-2003, 02:04 PM
Blackfire's Avatar
Blackfire Blackfire is offline
Regular
 
Join Date: Nov 2002
Location: Scarborough, England
Posts: 65
Default

Quote:
Originally posted by ArnoutV
Pressing CTRL-ALT-DEL fires the task manager, which gives the user the same functionallity.
But this does not enable the user to close programs fast enough - e.g. a so called 'Java Trap' that opens browser windows too fast for the user to close. VB could close them all before they could be opened again, but a user with Ctrl - Alt - Del could not.
__________________
~ Blackfire ~
~~~~~~~~~
"All that is gold does not glitter...
...not all those who wander are lost"
Reply With Quote
  #5  
Old 01-03-2003, 05:17 AM
Blackfire's Avatar
Blackfire Blackfire is offline
Regular
 
Join Date: Nov 2002
Location: Scarborough, England
Posts: 65
Default

??
__________________
~ Blackfire ~
~~~~~~~~~
"All that is gold does not glitter...
...not all those who wander are lost"
Reply With Quote
  #6  
Old 01-03-2003, 05:34 AM
Garmour's Avatar
Garmour Garmour is offline
Back for a little while..

Retired Leader
* Expert *
 
Join Date: Oct 2002
Location: Behind you.....Boo
Posts: 2,199
Default

Get the api tool from www.allapi.net

It lists api calls and categorises them by function and there's quite a big section on process manipulation (including identifying/closing/opening)
__________________

....but then, what would I know ?
Reply With Quote
Reply


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

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->