How can I disable the mouse and Keyboard?What API will I use?

thx.....
xnor