I'm sorry to say I can't get the code to work correctly under NT4 workstation.

I've been writing a program to easy logoff, reboot, etc. But I didn't get the screen locking to work, so this seemed a good solution.

This code does not start the screen saver for me, although I have one configured with password. Nothing seems to be happening, but when I then press CTRL-ALT-DEL, I have to type my password, as if the workstation had been locked. Normally, it would show the menu with shutdown, taskmanager, etc.

Anyway, it's a start, when I find out what caused the problem, I'll tell it here.