Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista security

Vista - MainWindowTitle empty in Vista

Reply
 
Old 09-27-2007   #1 (permalink)
JamesB


 
 

MainWindowTitle empty in Vista

Hi
Apologies for the crosspost...

I've written a windows service (c# 2.0) that is used in my workplace to
monitor application usage of our users. It basically gets a list of
processes and associated window titles (if present) and logs these for
management to refer to.

Unfortunately it doesn't work on Vista! Well, it does, in that the .exe
names are logged, but WindowTitles are not. Doing a debug, these are always
an empty string in Vista.

I did some googling and found references to the "allow service to interact
with desktop" tick to not actually "work" in Vista, even though it's there.

Is there some group policy setting I can make to allow my service to work as
intended? Or some sort of code change that *would* pull out the window
titles? It works a treat on XP and 2000!

James.


My System SpecsSystem Spec
Old 09-27-2007   #2 (permalink)
Jesper


 
 

RE: MainWindowTitle empty in Vista

This is part of the service hardening that was done in Vista to enable
security. It is a very bad (or worse) idea to have a high-privileged service
interacting with the interactive user.

To solve this you need to factor the service into two pieces, or rethink the
concept entirely. One piece would run on the interactive desktop and do the
data collection. The other piece runs as a service and performs any tasks
that require highly privileged access. If you do it right you may find that
you don't need anything that requires highly privileged access.

---
Your question may already be answered in Windows Vista Security:
http://www.amazon.com/gp/product/047...otectyourwi-20


"JamesB" wrote:
Quote:

> Hi
> Apologies for the crosspost...
>
> I've written a windows service (c# 2.0) that is used in my workplace to
> monitor application usage of our users. It basically gets a list of
> processes and associated window titles (if present) and logs these for
> management to refer to.
>
> Unfortunately it doesn't work on Vista! Well, it does, in that the .exe
> names are logged, but WindowTitles are not. Doing a debug, these are always
> an empty string in Vista.
>
> I did some googling and found references to the "allow service to interact
> with desktop" tick to not actually "work" in Vista, even though it's there.
>
> Is there some group policy setting I can make to allow my service to work as
> intended? Or some sort of code change that *would* pull out the window
> titles? It works a treat on XP and 2000!
>
> James.
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
vista Empty Pop Up Box Vista General
(Empty) 'New' menu, empty start menu, BRAND NEW VISTA! General Discussion
Vista explorer - Folder empty, but is not empty, why? Vista General
file folder icons display non-empty folders as empty Vista file management
MainWindowTitle of an Explorer process always empty PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46