title: warning C4229: anachronism used : modifiers on data are ignored
body: <p>The segment below is part of a larger function in a larger file.  I have reduced it to what I think are the essentials for explaining my current problem.</p>
  
  <p>I am using Visual Studio 2010.</p>
  
  <p>The line with the call to RegConnectRegistryA is causing the compiler to warn me thusly:  "warning C4229: anachronism used : modifiers on data are ignored".  That is the only warning or error in the compiler output.  The build does succeed, and the executable runs as expected.  But I do want to get rid of that warning.  (I think it's been there for many months, to be honest.)</p>
  
  <pre><code>extern "C" __declspec(dllexport) void whoOpsRegistryGetREG_SZ(
      LPCSTR szServer, 
      LPCSTR szKey, 
      LPCSTR szValue, 
      char* szReturn, 
      int iSize) 
  {
      HKEY hKey;
      LONG WINAPI lReturn = ::RegConnectRegistryA(
          szServer, 
          HKEY_LOCAL_MACHINE, 
          &amp;hKey);
  }
  </code></pre>
  
  <p>What I read in other posts leads me to believe that it is somehow related to the #includes.  So here they are.  If you need the contents of any of the header files in quotes, let me know.</p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;windows.h&gt;
  #include &lt;initguid.h&gt;
  #include &lt;ole2.h&gt;
  #include &lt;mstask.h&gt;
  #include &lt;msterr.h&gt;
  #include &lt;objidl.h&gt;
  #include &lt;wchar.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;stdarg.h&gt;
  #include &lt;lm.h&gt;
  #include "whoOpsPrivate.h"
  #include "whoOps.h"
  #include "jni.h"
  #include "whoOps_TaskScheduler.h"
  #include "whoOps_ServiceMangler.h"
  #include "whoOps_RegistryRaptor.h"
  #include "../../cyclOps.h"
  </code></pre>
  
  <p>Thanks!</p>