title: Windows7.1 SDK: C2373: "MonitorFromWindow" Redefinition
body: <p>The error "linkage specification is incompatible with previous "MonitorFromWindow"" in 32 bit build VS10 MCBS is given for the following decl:</p>
  
  <pre><code> int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow)
  {
      HMONITOR MonitorFromWindow(_In_ HWND  hwnd, _In_ DWORD dwFlags);
  
      return DialogBoxW(hInstance, MAKEINTRESOURCEW(lpTemplate), nullptr, DlgProc);
  }
  </code></pre>
  
  <p>Assumed the solution would be similar to the one given <a href="https://stackoverflow.com/questions/3685773/vs2010-compiler-and-cuda-error-linkage-specification-is-incompatible-with-previ">here</a>, but here it might be some problem with the SDK although some kind of header hack is preferred.</p>