@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The GetInputState API !!!!C# Signature: [DllImport("user32.dll")] static extern bool GetInputState(); !!!!User-Defined Types: None. !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: This function can greatly boost the performance of any application. When calling Application.DoEvents() to make the UI responsive, it generally decreases application performance. With this function, we make sure there is at least one event (keyboard or mouse) that needs to be processed before calling Application.DoEvents(). (VB2TheMax.com : Francesco Balena) public bool CheckEvents() { if ( !GetInputState() ) return false; else { Application.DoEvents(); return true; } } !!!!Alternative Managed API: Do you know one? Please contribute it! Documentation: GetInputState@msdn on MSDN
Edit user32.GetInputState
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.