Disable keyboard mouse of remote PC using Visual c++
===

I just connected to stack overflow. So may be I am not good at language and structure for asking queries. So please ignore them.

I am working on remote desktop application in visual c++. Consider the PC which is connected to another PC as "Client app", and the PC client is connected to as "Server app". I need a functionality on my Client app, using that client can disable the keyboard and mouse input of server. only client can use the keyboard and mouse control of server. And also whenever client connects to server ,server either lock the screen or black screen comes. Same as team viewer's "Disable Remote Input" and "Show Black Screen" option. ( see the image - <a href="http://choorucode.files.wordpress.com/2012/02/20120216-teamviewer-2.png" >Click here</a> . See the last two options under "Actions"
in attached image.)

 I have used <code> BlockInput(false); </code> But it disable keyboard and mouse control for both sides. And also keyboards and mouse enabled automatically on pressing <code>ctrl+alt+del</code> sequence. That is again a big problem.

Somebody please help me for the issue I am facing. I am also new to visual studio and c++. 

  [1]: http://i.stack.imgur.com/7W2eP.png