Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Block Input

Status
Not open for further replies.

Niphyr

Programmer
Jul 21, 2003
85
AU
I'm finding it hard to find an example of a 'BlockInput' block of code.

Not block input as in into a particular application, but like the VB API blockinput which blocks all keyboard input system wide and freezes mouse.

I'm guessing being an API i could use it in C, not a clue how though.

-Niph

------------------------------
------------------------------
 
How about BlockInput( true) when you need to block the input and BlockInput( false) when you need to unblock it?

From MSDN: "Note that only the thread that blocked input can successfully unblock input." ( link: )

Please read the documentation in the on-line MSDN, it specifies the cases when the system automatically unblocks the input and how does BlockInput(...) affects the (a)asynchronous key state.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top