title: how to use __stdcall to qualify C++ lambda?
body: <p><strong>Foreword--I love C++ lambda, if possible I will use it everywhere.</strong></p>
  
  <p>Now I have a lambda requirement, I need to a __stdcall lambda. But I get the following error message:</p>
  
  <pre><code> error C2664: 'EnumWindows' : cannot convert parameter 1 from '`anonymous-namespace'::&lt;lambda1&gt;' to 'WNDENUMPROC'
  1&gt;          No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
  </code></pre>
  
  <p>Anybody can help me?
  Here is my code(<strong>EnumWindowsProc is in the function scope</strong>):</p>
  
  <pre><code>        auto EnumWindowsProc = 
              [&amp;](HWND hwnd, LPARAM lParam) mutable -&gt; bool
          {
              return true;
          };
          EnumWindows(EnumWindowsProc, NULL);
  </code></pre>