title: GetProcAddress doesn't work for functions other than void
body: <p>I have a problem with GetProcAddress:
  I wrote a simple DLL with just one function in it:</p>
  
  <pre><code>extern "C" LRESULT WINAPI Function(HWND Hwnd, UINT Message,
                                     WPARAM wParam, LPARAM lParam)
  {
      Beep(1000, 1000);
      return CallNextHookEx(0, Message, wParam, lParam);
  }
  </code></pre>
  
  <p>When I try to get function's address GetProcAddress fails with the ErrorCode 127 (ERROR_PROC_NOT_FOUND). However, if I use void as the function type it works perfectly. I can't really figure out why it behaves like this. Any suggestions would be greatly appreciated!</p>
  
  <p>BTW: DependencyWalker shows that the function's name is indeed "Function" no changes have been applied.</p>