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 / Languages / Managed C++ / May 2006

Tip: Looking for answers? Try searching our database.

Enumerating Windows through Service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jay - 08 May 2006 16:48 GMT
Hey There,
  I am trying to get a list of the open windows from a Windows
Service. My initial code was written in a regular server and the window
listing function EnumWindows worked fine, but when I ported my code
over to the service, then it stopped working. I saw that this is due to
a service running on a different "non-interactive" dekstop than a
regular user desktop. How would I get a service to just get the window
handles of the currently open windows? The process itself won't need to
open any windows, so I need the interaction to be as minimal as
possible. Any ideas?

-Jay
(patelj27b at gmail dot com)
David Lowndes - 09 May 2006 13:09 GMT
>   I am trying to get a list of the open windows from a Windows
>Service. My initial code was written in a regular server and the window
[quoted text clipped - 3 lines]
>regular user desktop. How would I get a service to just get the window
>handles of the currently open windows?

You've identified the root of the problem, but which desktop do you
want? What about terminal server and XP fast user switching operation?

What are you really trying to achieve?  There may a better way of
doing what you want.

Dave

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.