If it's any help to what you are trying to accomplish here, it may interest
you to know that Windows employs a "grace" period between when the
screensaver fires up to inactivity and when it becomes "locked"! If you
'dismiss' the screensaver before the 'grace' period, then no password is
needed. try to dismiss the screensaver *after* this period - then you ARE
required to enter your password.
This 'grace' period is configurable. I have mine set to 10 minutes, I also
have my screensaver set to 10 minutes as well. So, after 10 minutes my
screensaver comes on and if I get to it in the same amount of time again, I
don't have to enter my password.
This is quite a long 'grace period', but you could set it to 60 or even 30
You can set the 'grace' period in the [free] app from Microsoft - The XP
TweakUI.exe [powertoy] program.
Download TweakUI.exe for XP...
Microsoft XP Powertoys Website...
...although, if you feel happy about editing the registry, then the exact
setting for this can be found:
...in this [my] example - as the grace period is in seconds, it is set to 10
minutes (that is 600 seconds).
Cheers, Tim Meddick, Peckham, London. :-)