Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ 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 August 4th, 2005, 06:09 AM
Registered User
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Accessing Windows Task Manager through APIs

Hi to all u guyz out there...
I'm new into this world of Windows Programming...
Can somebody tell me the exact APIs through which we can scan the task manager and find out which processes r running and other info abt the tasks & processes?

Old September 1st, 2005, 05:31 PM
Authorized User
Join Date: Jul 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to merediths

hi vishnu

 EnumProcesses(DWORD* pProcessIds, DWORD cb, DWORD* pBytesReturned);

 Returns a list of processes running on a system. The you can use OpenProcess to open the process object and call various functions to tell you some things about it -- depending on your security context, of course. Chek the MSDN documentation for those functions and they should point you in the right direction -- you might also want to check out some of the freely available source-code at http://www.sysinternals.com/ -- they have a lot of tools and utilities for doing low level types of things with system objects: processes, files, reg keys and the like. They make a lot of their source code available and have some relatively simple apps that provide great proof-of-concepts.

Meredith Shabeanyan

Meredith Shaebanyan

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
i want to make a task manager in VB6 menakcman Beginning VB 6 4 April 7th, 2005 08:58 PM
Task Manager scott4273 VB How-To 1 December 2nd, 2003 03:42 PM

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