Its my task that i should deactivate and activate keyboard and mouse using API using C#.NET. I got a project regarding this but its just given by sleeping time. My T.L told that we should give a source, a destination with time as inputs then it should lock the system.