473,326 Members | 2,255 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Available applications in Taskmanager


Hi,

I am using C#.NETV1.1
How will we list which are the applications running under a task
manager.

Thanks in advance

*** Sent via Developersdex http://www.developersdex.com ***
Apr 21 '06 #1
2 1612
You need to use API function EnumWindows() to gel list

public delegate bool CallBackPtr(int hwnd, int lParam);

public class EnumReport
{
[DllImport("user32.dll")]
public static extern int EnumWindows(CallBackPtr callPtr, int lPar);
public static bool Report(int hwnd, int lParam)
{
Console.WriteLine("Window handle is "+hwnd);
return true;
}
}
void Main()
{
CallBackPtr callBackPtr = new CallBackPtr(EnumReport.Report);
EnumReport.EnumWindows(callBackPtr, 0);
}

I am using C#.NETV1.1
How will we list which are the applications running under a task
manager.


--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Apr 21 '06 #2
Another way is to get the list of processes

Process [] localAll = Process.GetProcesses();

and get the window associated with it

Process.MainWindowHandle
I am using C#.NETV1.1
How will we list which are the applications running under a task
manager.

Thanks in advance


--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

Apr 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: harry | last post by:
VS.NET 2002 (VB.NET) on Win XP. Is there a known bug regarding .NET reporting System.OutOfMemoryException when there is plenty of Virtual memory available? My TaskManager shows 1237M / 2181M...
1
by: Kondapanaidu | last post by:
Hi, What are the availabale applications run in a windows task manager(not for process because it shown defaultly so many processess i dont need those process). Need Information what are the...
0
by: mandarkraftware | last post by:
Hi All, Let me present you with list of consultants currently available. Name / Job Title Summary Ramchandran/Java · 7+ years experience in the field of Software Development. · Expertise...
1
by: Sachin | last post by:
Hi All, Let me present you with list of consultants currently available. Name / Job Title Summary Ramchandran/Java · 7+ years experience in the field of Software Development. · Expertise...
3
by: mandarkraftware | last post by:
Hi All, We have the following consultants currently available. Consultant Name : Bandi Preferred location: Bay area, CA Summary: · Over Eight Years of Experience in Quality Assurance...
0
by: satish | last post by:
Jagadeesh satish@globalinfotechinc.com 217-241-2015 SUMMARY * Over Six years of experience in analysis, design, development, testing and maintenance of object-oriented programming and software...
2
by: ganeshvkl | last post by:
hi Everyone, In My PC , Taskmanager is disabled can anyone help me ? Thanx in Adv Regards ganesh
1
by: pavanip | last post by:
Hi, I am developing one application in that I have to display CPU usage history graph and Pagefile usage history graph. When we open task manager it will display window, in that performance...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.