title: How to check current mouse button state using Win32/User32 library?
body: <p>I know how to stimulate clicks using User32 SendInput method and what I need is a similar User32 method but to obtain the current mouse button state. </p>
  
  <p>Something similar to:</p>
  
  <p><code>public static extern bool GetCursorPos(ref System.Drawing.Point lpPoint);</code></p>
  
  <p>Function GetCursorPos gives me the current cursor position. What I need is the left button state (if it's clicked or not). Is there such a function?</p>