title: GetWindowLong(int hWnd, GWL_STYLE) return weird numbers in c#
body: <p>I used GetWindowLong window api to get current window state of a window in c#. </p>
  
  <pre><code>    [DllImport("user32.dll")]
      static extern int GetWindowLong(IntPtr hWnd, int nIndex);
  
  
      Process[] processList = Process.GetProcesses();
      foreach (Process theprocess in processList)
      {
  
          long windowState = GetWindowLong(theprocess.MainWindowHandle, GWL_STYLE);
  
          MessageBox.Show(windowState.ToString());
  
      }
  </code></pre>
  
  <p>I expected to get numbers on <a href="http://www.autohotkey.com/docs/misc/Styles.htm" rel="noreferrer">http://www.autohotkey.com/docs/misc/Styles.htm</a>, but I get numbers like -482344960, -1803550644, and 382554704.</p>
  
  <p>Do I need to convert windowState variable?? if so, to what?</p>