title: GetLastError returns error 2 in SystemParametersInfo
body: <pre><code>#include &lt;iostream&gt;
  #include &lt;windows.h&gt;
  using namespace std;
  
  int main(){
      LPWSTR test = L"c:/aizen.png";
      int result = SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, test, SPIF_UPDATEINIFILE);
      if(result)
          cout &lt;&lt; "Wallpaper set!";
      else
          cout &lt;&lt; "Error: " &lt;&lt; GetLastError();
      cin &gt;&gt; result;
      return 0;
  }
  </code></pre>
  
  <p>The code is simply meant to change the background wallpaper, but I keep getting Error: 2, which means "file not found". However, the file is there! I'm using microsoft visual studio 2010 and I've tried running as admin, case-sensitive, changing slashes, etc. What am I doing wrong?</p>