Hello All.

As part of my project I would like my desktop application to be able to Lock and UnLock a PC.

Does anyone know if this is possible in Qt or C++?, I have been looking around and can't see it noted in the documentation or any forums for that matter.

What I mean:
If I clicked a button on my app it would be the same as hitting "Windows + L" (locking pc on windows)
Also remotely tell the program to UnLock the pc too.

I can figure that the code is going to have to be System Dependant, but if I could get it working primarily with Windows (XP/Vista/7) that would great.

Any help or direction would be greatly appreciated.

Thanks in advance.

Chris