Marcelo
December 5th 03, 08:10 PM
Hi!
My last message didn't really explained what I am needing, either way
I appreciate the response. What I need is a way to have an application
to take over the display. This application would be part a Lan House
management software. It would take over the display informing the user
that his pre-paid time is finished and give him the option to add more
time to his account or logout. If he decides to add more time he
clicks the button, and enters his password, after this the app would
quit and the user would continue to do what he was doing befor
(probably playing).
I first wanted to implement this app as an screen saver that would be
initiated programmatically after the pre-paid time expiration. This
doesn't work on Windows XP when running a computer game. I believe it
is due to:
""Windows does not start the screen saver if any of the following
conditions exist:
a-The active application is not a Windows-based application
b-A computer-based training (CBT) window is present
c-The active application receives the WM_SYSCOMMAND message with the
wParam parameter set to the SC_SCREENSAVE value, but it does not pass
the message to the DefWindowProc function.""
With my previous not clear message I was suggested to use the Windows
API LockWorkstation. This function basically calls the usual windows
lock screen (that is not what I need), unless I can trick windows to
instead call my own app.
I know somehow it's possible to do what I need, I just don't know how.
Thank you in advance for any help.
Marcelo.
My last message didn't really explained what I am needing, either way
I appreciate the response. What I need is a way to have an application
to take over the display. This application would be part a Lan House
management software. It would take over the display informing the user
that his pre-paid time is finished and give him the option to add more
time to his account or logout. If he decides to add more time he
clicks the button, and enters his password, after this the app would
quit and the user would continue to do what he was doing befor
(probably playing).
I first wanted to implement this app as an screen saver that would be
initiated programmatically after the pre-paid time expiration. This
doesn't work on Windows XP when running a computer game. I believe it
is due to:
""Windows does not start the screen saver if any of the following
conditions exist:
a-The active application is not a Windows-based application
b-A computer-based training (CBT) window is present
c-The active application receives the WM_SYSCOMMAND message with the
wParam parameter set to the SC_SCREENSAVE value, but it does not pass
the message to the DefWindowProc function.""
With my previous not clear message I was suggested to use the Windows
API LockWorkstation. This function basically calls the usual windows
lock screen (that is not what I need), unless I can trick windows to
instead call my own app.
I know somehow it's possible to do what I need, I just don't know how.
Thank you in advance for any help.
Marcelo.