Indirectly lock the mouse and keyboard through a screen saver program without calling the API, and set it to allow unlocking after n minutes...
) Start a password-protected screen saver
The screen saver has an extension of.SCR, which is actually an executable EXE file.
Simple programming, VB is fine.
The screen saver must require entering a password to exit. Then use VB to make a timer. After a few minutes, if the password is not entered, it will automatically exit.
As for how to control this few minutes, the VB-made screen saver program can have a startup parameter. Add the number of minutes in the startup parameter.
) How to start the screen saver and make the screen saver run "correctly"?
See if there are any relevant registry entries related to the screen saver. If not, it's better. Just control it with the.SCR (EXE) file.
Or use a.BAT batch program to directly call the.SCR executable file, and add the parameter to set the number of minutes to lock. In this way, the system immediately enters the locking mode of screen saver operation.
) Moreover, this special program with screen saver function developed by oneself can also send some messages to the server when the screen saver is started,
or connect to the server to retrieve the instructions to be executed. In this way, it can also be used for remote control.
(The above ideas are purely nonsense, not verified, just for fun~:)
[ Last edited by redtek on 2006-12-6 at 12:45 PM ]
Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._