title: LoadLibraryEx: Parameters get lost in 64bit
body: <p>I have a 64bit-DLL which exports the function</p>
  
  <pre><code> __cdecl int (*function)(IN wchar_t* file, OUT VARIANT &amp;htmlFile, IN wchar_t* path);
  </code></pre>
  
  <p>which is implemented as</p>
  
  <pre><code>int CShellWrapperx64Module:function(wchar_t* file, VARIANT &amp;htmlFile, wchar_t* path) {
      VariantInit(&amp;htmlFile);
      htmlFile.vt = VT_BSTR;
      htmlFile.bstrVal = ::SysAllocString(L"");
      return 0;
  }
  </code></pre>
  
  <p>and a 64bit-DLL which calls the function</p>
  
  <pre><code> function pfunction = (function)GetProcAddress(hMod, MAKEINTRESOURCEA(0x0001));
   TCHAR m_file[MAX_PATH];
   VARIANT vhtml;
   VariantInit(&amp;vhtml);
   pfunction(m_file, vhtml, path);
  </code></pre>
  
  <p>In 32bit-mode the function call succeeds but in 64bit-mode the function-entry-point is reached but the parameters are invalid? What could I do?</p>