title: How to get screen resolution in C++?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2156212/how-to-get-the-monitor-screen-resolution-from-an-hwnd">How to get the Monitor Screen Resolution from an hWnd?</a>  </p>
  </blockquote>
  
  
  
  <p>Is there a way to get the screen resolution in C++?<br>
  I have searched MSDN but with no luck. The closest thing I found was <a href="http://msdn.microsoft.com/en-us/library/dd183413.aspx" rel="noreferrer">ChangeDisplaySettingsEx()</a> but that doesn't seem to have a way to just return the res without changing it.</p>