Is there no way of bringing up the default change password dialog? That's what I was trying to do with the CTRL-ALT-DEL then ALT-C... or even better some DLL call like:
Shell "rundll32.exe user32.dll,LockWorkStation"

Anyhow, I'll see if I can implement the code you gave me.
Thanks.