title: Using Windows Kits 10, where is winapifamily.h?
body: <p>I was trying to use <a href="https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk" rel="nofollow noreferrer">Windows 10 SDK (10.0.10240.0)</a>.
  File <code>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\corecrt.h</code> includes <code>winapifamily.h</code></p>
  
  <pre><code>//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  //
  // Windows API Partitioning and ARM Desktop Support
  //
  //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  #ifndef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
      #ifdef WINAPI_FAMILY
          #include &lt;winapifamily.h&gt;
          #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) 
              #define _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
          #else
              #ifdef WINAPI_FAMILY_PHONE_APP
                  #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP 
                      #define _CRT_USE_WINAPI_FAMILY_PHONE_APP
                  #endif
              #endif
          #endif
      #else
          #define _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
      #endif
  #endif
  </code></pre>
  
  <p>Where can I find <code>winapifamily.h</code>?</p>
  
  <p><strong>Context</strong><br/>
  Our project is normally built with mingw+gcc or Android toolchains (gcc or llvm), and with minimum changes (to CMake files and source code) we are targeting a build with:</p>
  
  <ul>
  <li><a href="https://cmake.org/download/" rel="nofollow noreferrer">CMake</a> with <a href="https://ninja-build.org/" rel="nofollow noreferrer">ninja</a> generator</li>
  <li><a href="http://releases.llvm.org/download.html" rel="nofollow noreferrer">LLVM 32bit for Windows</a>, version <a href="http://releases.llvm.org/3.9.1/LLVM-3.9.1-win32.exe" rel="nofollow noreferrer">3.9.1</a></li>
  <li><a href="https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk" rel="nofollow noreferrer">Windows SDK 10</a></li>
  <li>Visual Studio 2015 (still not clear to me if this is really necessary)</li>
  </ul>