469,319 Members | 1,911 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,319 developers. It's quick & easy.

Maximize a minimized window

We have a windows 2000 server with terminal services activated. Users will
connect using RDP and launch an application. Sometimes, users will minimize
the application when they meant to minimize the terminal server session so
they can get back to their desktop. The permissions set on the terminal
server are such that they cannot maximize the application again. Since the
application remembers it's location or state, the next user that logs on gets
the application minimized.

The simple answer is to change the permissions to allow a window to be
restored or maximized, but apparently there are other permissions which would
be affected by making this change and the management is resistant to do that.

So....

I'm considering writing a windows service which starts using the admin
account, so that it may check every second to see if this application is
minimized and restore it; which brings me to my 2 questions.

1. How do I 'look' for the application's window and determine it's state.
2. Since it's a terminal server, the application may be running multiple
times, so how do I find the application in each session.

Thanks
Mark
Nov 21 '05 #1
4 1714
Mark wrote:
We have a windows 2000 server with terminal services activated. Users will
connect using RDP and launch an application. Sometimes, users will minimize
the application when they meant to minimize the terminal server session so
they can get back to their desktop. The permissions set on the terminal
server are such that they cannot maximize the application again. Since the
application remembers it's location or state, the next user that logs on gets
the application minimized.

The simple answer is to change the permissions to allow a window to be
restored or maximized, but apparently there are other permissions which would
be affected by making this change and the management is resistant to do that.

So....

I'm considering writing a windows service which starts using the admin
account, so that it may check every second to see if this application is
minimized and restore it; which brings me to my 2 questions.

1. How do I 'look' for the application's window and determine it's state.
2. Since it's a terminal server, the application may be running multiple
times, so how do I find the application in each session.

Thanks
Mark


Why not disallow them to minimize your app?
Chris
Nov 21 '05 #2
Can't disallow that, cause other apps may be running in the session which
they may need to access (yes they can use Alt-Tab, but they also want to have
minimize). These are medical coders, so they need to be very efficient and
some like Alt-Tab, some don't.
"Chris" wrote:
Mark wrote:
We have a windows 2000 server with terminal services activated. Users will
connect using RDP and launch an application. Sometimes, users will minimize
the application when they meant to minimize the terminal server session so
they can get back to their desktop. The permissions set on the terminal
server are such that they cannot maximize the application again. Since the
application remembers it's location or state, the next user that logs on gets
the application minimized.

The simple answer is to change the permissions to allow a window to be
restored or maximized, but apparently there are other permissions which would
be affected by making this change and the management is resistant to do that.

So....

I'm considering writing a windows service which starts using the admin
account, so that it may check every second to see if this application is
minimized and restore it; which brings me to my 2 questions.

1. How do I 'look' for the application's window and determine it's state.
2. Since it's a terminal server, the application may be running multiple
times, so how do I find the application in each session.

Thanks
Mark


Why not disallow them to minimize your app?
Chris

Nov 21 '05 #3

Mark wrote:
Can't disallow that, cause other apps may be running in the session which


That makes no sense! You say you can't disable the ability to minimize
the app but you want to write a windows service that effectively does
the same thing by restoring the app if they minimize it!!

Nov 21 '05 #4
Sure it makes sense. If the service starts up with the admin account, then
the restriction doesn't apply.

Mark
"Chris Dunaway" wrote:

Mark wrote:
Can't disallow that, cause other apps may be running in the session which


That makes no sense! You say you can't disable the ability to minimize
the app but you want to write a windows service that effectively does
the same thing by restoring the app if they minimize it!!

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Justin Echternach | last post: by
2 posts views Thread by Dave Booker | last post: by
2 posts views Thread by uczen | last post: by
4 posts views Thread by EmilH | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.