Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / February 2007

Tip: Looking for answers? Try searching our database.

Running Applications

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roman Benko - 08 Feb 2007 19:04 GMT
Is there a way using .Net to determine which applications are currently
running?  For example, in Windows, if you press Alt-Tab, you will see a list
of applications currently running.  I have looked at process.getprocesses,
but that returns all running processes instead of just applications.  I would
like to fill a listbox with a list of applications (not processes) that are
currently running.  Thanks.
Mattias Sjögren - 08 Feb 2007 19:51 GMT
>Is there a way using .Net to determine which applications are currently
>running?  For example, in Windows, if you press Alt-Tab, you will see a list
>of applications currently running.  I have looked at process.getprocesses,
>but that returns all running processes instead of just applications.  I would
>like to fill a listbox with a list of applications (not processes) that are
>currently running.  Thanks.

I'm not sure what yoru definition of "application" is, but I believe
the Alt-Tab window is populated with top-level windows returned by the
EnumWindows Win32 API.

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Roman Benko - 08 Feb 2007 21:57 GMT
Thank you for pointing me in the right direction.  I have been searching the
Internet for sample code that uses VB .Net 2005 and the EnumWindows Win32
API.  If anyone has any code that shows this, I would appreciate it.  Thanks.

> >Is there a way using .Net to determine which applications are currently
> >running?  For example, in Windows, if you press Alt-Tab, you will see a list
[quoted text clipped - 8 lines]
>
> Mattias
Mattias Sjögren - 09 Feb 2007 06:11 GMT
>Thank you for pointing me in the right direction.  I have been searching the
>Internet for sample code that uses VB .Net 2005 and the EnumWindows Win32
>API.  If anyone has any code that shows this, I would appreciate it.  Thanks.

http://msdn2.microsoft.com/en-us/library/843s5s5x.aspx

Unfortunately the signature it has for EnumWindows is incorrect. The
second parameter should be an IntPtr.

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.