How to implement an OpenCV interaction with the system?

All kind time of day! I've decided to implement one program: I need to block the computer (as in the key combination Win+L) when my face is not in field of view of Webcams, and unlock when my face appears in her field of vision (just mine, but errors of the first and the second kind is not excluded,of course).
Recognition individuals plan to do in OpenCV, the benefit previously worked with him. However, the question arises how to make OpenCV could command in Windows?
I will be glad to advice and ideas regarding implementation of this interaction.
July 2nd 19 at 17:13
1 answer
July 2nd 19 at 17:15
The task of OpenCV in this case is to recognize the image when processing images, but no more.
And to work with the OS has its own API. Look in MSDN about authenticatee user.

Find more questions by tags OpenCVC++Windows