making a cafe software, lock pc

Hi,

I am trying to create a software for my internet cafe. I want the computer to lock itself, showing a screensaver of anything, until a message is sent by a server PC which would enable the PC to run normally again.

I read about the LockWorkstation() function but can it be unlocked using code only and in response to a UDP message by the server PC. plus i think it is non existent in windows 98 second ed.

Sorry but OS is pretty expensive here so I am only using Win98 second edition. Thank you so much. I really need all your help.
[578 byte] By [taykunats] at [2007-11-18 3:48:06]
# 1 Re: making a cafe software, lock pc
BlockInput() ?
Scrambler at 2007-11-11 3:39:44 >
# 2 Re: making a cafe software, lock pc
ok ill try it. what library does it come from? and how will i include it? sorry im just a starter. would you know also what function to use to show the screensaver.
taykunats at 2007-11-11 3:40:51 >
# 3 Re: making a cafe software, lock pc
You can execute screensaver by calling ShellExecute() function. I think, that ShellExecute(NULL, "open", "scrnsave.scr", NULL, NULL, SW_SHOWNORMAL); should do what you need.
Scrambler at 2007-11-11 3:41:49 >
# 4 Re: making a cafe software, lock pc
Just set use a screen saver password. The workstation will automatically be locked when the screensaver turns on.
mwilliamson at 2007-11-11 3:42:55 >
# 5 Re: making a cafe software, lock pc
i think it's better to show a 'screen saver' in your own application which will make it easy to control the whole PC.
From your message, you do want the client to run if it have not got permission from the server. is it?

When you call a open to show a screen saver, the active window is not yours but the screensaver. But if you display a screen saver yourself, the only thing need to do is to lock the sys-keys, like atl+tab, win, ctrl+alt+del,...
wuyh at 2007-11-11 3:43:52 >