title: Get resolution of DirectX device
body: <p>Where should I be looking for resolution of DirectX (3D) device? getViewport seems to have Width and Height, yet as far as I know viewport is supposed to be an area, not 2D "canvas" with these attributes.</p>
  
  <p>(I hope "resolution" applies to the device, not D3D directly. Please correct me if this part is wrong.)</p>
  
  <p>Simple MSDN link will be good answer as well, however I already browsed it through and couldn't find it.</p>
  
  <p>Edit: it seems like getDisplayMode will work for fullscreen apps that changes resolution since it returns the display adapter mode, yet I'd like to be able to get the size of d3d window too.</p>