JackShum
10-14-2004, 01:34 AM
Hi,
What I am trying to do is to log out users from Windows2000 when keyboard and mouse have been idle for some time.
Would this be easy if I write a vb program and compile it. Then rename it to myss.scr.
In the vb program I do 2 things in form load event:
1. Call a window api function to logout user
2. Call to run another screensaver.scr program that windows provided.
Then I worry user will change the screensaver settings in control panel and my goal to logout user automatically after n minutes keyboard and mouse idle will not work. Thus I need a way to keep user from change the screensaver settings.
If anyone know this works, please guide me on the coding. Or there is a better way to do. Thank you!
What I am trying to do is to log out users from Windows2000 when keyboard and mouse have been idle for some time.
Would this be easy if I write a vb program and compile it. Then rename it to myss.scr.
In the vb program I do 2 things in form load event:
1. Call a window api function to logout user
2. Call to run another screensaver.scr program that windows provided.
Then I worry user will change the screensaver settings in control panel and my goal to logout user automatically after n minutes keyboard and mouse idle will not work. Thus I need a way to keep user from change the screensaver settings.
If anyone know this works, please guide me on the coding. Or there is a better way to do. Thank you!