title: Where to find Win32 constants?
body: <p>I have been doing some com interop stuff in c# lately to try and control buttons, comboboxes, textboxes, etc. on another application.  My question is related to the Win32 constants some people would post, example:</p>
  
  <pre><code>const int WM_SETTEXT = 0x000C;
  
  [DllImport("User32.dll", EntryPoint = "SendMessage")]
  private static extern int SendMessage(IntPtr hwnd, int msg, int wParam, int lParam);
  </code></pre>
  
  <p>Where do I find the WM_SETTEXT constant ?  I have looked up certian functions on MSDN but they don't always explicitly say what the constant value is.  For example, looking for the CBN_SELCHANGE constant on MSDN gives this page <a href="https://msdn.microsoft.com/en-us/library/bb775821(VS.85).aspx" rel="nofollow noreferrer">CBN_SELCHANGED MSDN</a>.  So, where is the best place to get this information?  </p>