title: How To Create lParam Of SendMessage WM_KEYDOWN
body: <p>I'm trying to use <a href="http://msdn.microsoft.com/en-us/library/ms644950%28VS.85%29.aspx" rel="nofollow noreferrer">SendMessage</a> to send a keystroke, and don't really understand the lParam. I understand that the different bits represent each parameter and that they need to be arranged in order.</p>
  
  <p>I've read <a href="https://stackoverflow.com/questions/1169732/wm-keydown-how-to-use-it">this question</a> &amp; <a href="http://msdn.microsoft.com/en-us/library/ms646280%28VS.85%29.aspx" rel="nofollow noreferrer">this</a>, so I know which order the bits need to be in, I just don't know how to do it...</p>
  
  <p><strong>How would I create the following lParam?</strong></p>
  
  <pre><code>repeat cound = 0,
  scan code = {Don't know what this is?},
  extended key = 1,
  reserved = 0,
  context code = 0,
  previous key state = 1,
  transition state = 0
  </code></pre>