title: Change Windows 7 Wallpaper with Win32/C++ API (Operation not implemented exception)
body: <p>The following code works on Windows 8.1 (tested) but not on Windows 7.</p>
  
  <pre><code>std::wstring loc = L"C:\\Users\User\\Desktop\\wallpaper.jpg";
  BOOL ret = SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, (PVOID)loc.c_str(), SPIF_UPDATEINIFILE);
  </code></pre>
  
  <p>When I run the program on Windows 7 I get the following exception:</p>
  
  <pre><code>First-chance exception at 0x76E3C41F (KernelBase.dll) in MyApp.exe: 0xC0000002:  The requested operation is not implemented.
  </code></pre>
  
  <p>Has anyone came across this before? 
  I've had a look at <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms724947(v=vs.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/desktop/ms724947(v=vs.85).aspx</a> and searched Google to no luck.</p>