Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 2nd, 2003, 03:25 PM
Registered User
 
Join Date: Dec 2003
Location: Philadelphia, PA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Task Manager

Hello,
 Is there a way that I can access the Task Manager via code? What I want to do is kill a process within VB. I have a form that calls to an .exe file and if I hit cancel right away, the process kills itself, but if I do something in the .exe file and then hit cancel, it doesn't kill the process. Any help is greatly appreciated.

Scott

 
Old December 2nd, 2003, 03:42 PM
Friend of Wrox
 
Join Date: Aug 2003
Location: , , .
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is this a standard Exe? If so you can probably handle it through window functions instead of process functions (process functios are trickier). In either case, you are going to need to use Windows APIs (Win32 APIs). You will nee to get a handle (either window or process handle) and then kill it. Go to http://www.mentalis.org/agnet/apiguide.shtml and download the API-Guide for more information on using windows APIs.

Yehuda




Similar Threads
Thread Thread Starter Forum Replies Last Post
how to hide a process in task manager ri_shu C++ Programming 3 October 25th, 2007 10:22 PM
how to hide a process in task manager ri_shu Visual C++ 0 April 5th, 2006 07:33 AM
how to hide the process from the task-manager ri_shu VB How-To 0 April 5th, 2006 07:28 AM
Accessing Windows Task Manager through APIs vishnu_attur Visual C++ 1 September 1st, 2005 05:31 PM
i want to make a task manager in VB6 menakcman Beginning VB 6 4 April 7th, 2005 08:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.