title: tr1::function WINAPI
body: <p>How can I use tr1::function with WINAPI calling convention ? (at least in windows). I can use visual c++ 9 SP1 TR1 or BOOST's one...</p>
  
  <pre><code>typedef void (WINAPI *GetNativeSystemInfoPtr)(LPSYSTEM_INFO);
  HMODULE h = LoadLibrary (_T("Kernel32.dll"));
  GetNativeSystemInfoPtr fp = (GetNativeSystemInfoPtr) GetProcAddress (h,"GetNativeSystemInfo");
  SYSTEM_INFO info;
  fp(&amp;info); //works!
  
  // This doesn't compile 
  function&lt; void WINAPI (LPSYSTEM_INFO) &gt; fb = (GetNativeSystemInfoPtr) GetProcAddress (h,"GetNativeSystemInfo");
  </code></pre>