title: Linker error with RegSetKeyValue
body: <p>I am using "RegSetKeyValue" API in my application. I am referring to <a href="http://msdn.microsoft.com/en-us/library/ms724921(VS.85).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms724921(VS.85).aspx</a>. </p>
  
  <p>As told in the article, I have defined _WIN32_WINNT_ as 0x0600 and have included Advapi32.lib in my linker options. </p>
  
  <p>But still I am getting linker error, "unresolved external symbol _RegSetKeyValue".  Please tell me what I am missing here. </p>
  
  <p>Here is my code snippet.</p>
  
  <pre><code>#define _WIN32_WINNT  (0x0600)
  
  #include &lt;windows.h&gt;
  
  int main()
  {
      LONG status;
  
      status = RegSetKeyValue( HKEY_LOCAL_MACHINE,
                               "SOFTWARE\\7-Zip",
                               "path",
                               REG_SZ,
                               "C:\\newfolder\\path",
                               strlen("C:\\chethan\\path")+1);
      return 0;
  }
  </code></pre>
  
  <p><strong><em>PS: I am using VC++ 6.0 for this (even tried on Visual studio 2005, same error there too!).</em></strong></p>