Possible Duplicate:
Unlock Windows programmatically
I am writing an app that will lock and than unlock user PC. Locking a machine is relativeley simple. However unlocking is just plain black magic for me...
Lets assume, that after some event (ex. timer reaches 30 min mark) my app forces my PC to unlock.
I want to unlock latest user (the one that locked the machine) with provided password. I know, that you shouldn't give anyone your passwords, but after all - I am writing that program :)
Sssso... Any hints where to start?