title: Visual Studio forcing desktop APIs
body: <p>I'm new in Visual Studio and I tried to compile a code which uses the VirtualProtect function. Compilation failed, I was expecting a linking issue first but after further investigation, even the function's constants weren't initialized, so the problem seems to came from the header.
  I've found the header file of VirtualProtect function (memoryapi.h included by winbase.h included by windows.h), and the function's declaration depend to this statement :</p>
  
  <pre><code>#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)    
  </code></pre>
  
  <p>It seems it's a macro used to define what APIs the compiler should use according to the platform.
  Then, how can I change the configuration of my project to set it as a pure desktop app ? I don't know why VS insists to create a Windows Phone version of everything I'm compiling...</p>