title: How do I change the current Windows theme programmatically?
body: <p>I want to allow my users to toggle the current user theme between <a href="https://en.wikipedia.org/wiki/Windows_Aero" rel="noreferrer">Aero</a> and Windows Classic(1). Is there a way that I can do this programatically?</p>
  
  <p>I don't want to pop up the "Display properties", and I'm dubious about just changing the registry. (This requires a log out and a log back in for the changes to take effect).</p>
  
  <p>Application skinning (using the <a href="https://en.wikipedia.org/wiki/Codejock_Software" rel="noreferrer">Codejock</a> libraries) doesn't work either.</p>
  
  <p>Is there a way of doing this?</p>
  
  <p>The application is hosted/run on a <a href="https://en.wikipedia.org/wiki/Windows_Server_2008" rel="noreferrer">Windows Server 2008</a> over <a href="https://en.wikipedia.org/wiki/Remote_Desktop_Protocol" rel="noreferrer">RDP</a>.</p>
  
  <p>(1) The application in question is a hosted "Remote App", and I want users to be able to change the look of the displayed application to match their desktop.</p>