title: Changing SECONDARY Monitor screen resolution in c#
body: <p>I need to change secondary monitor screen resolution dynamically.</p>
  
  <p>I found the following resource which calls Win API. The problem is, it only set the primary monitor. I believe I have to change the dmDeviceName, but I am not sure how to pass it.</p>
  
  <p><a href="http://gallery.technet.microsoft.com/scriptcenter/2a631d72-206d-4036-a3f2-2e150f297515" rel="nofollow">http://gallery.technet.microsoft.com/scriptcenter/2a631d72-206d-4036-a3f2-2e150f297515</a></p>
  
  <pre><code>dm.dmDeviceName //what is the input to this?
  dm.dmPelsWidth = width; 
  dm.dmPelsHeight = height; 
  int iRet = User_32.ChangeDisplaySettings(ref dm, User_32.CDS_TEST); 
  </code></pre>