<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div data-html-editor-font-wrapper="true" style="font-family: arial, sans-serif; font-size: 13px;">Normally, a forwarded function gets a special export entry which records the name of the DLL that has the real implementation and the name or ordinal of the target function. That way, when the loader resolves imports, it can resolve them directly to the real implementation instead of to a thunk in the imported DLL, like you'd have otherwise. But on Windows, a number of functions that would otherwise be forwarded to kernelbase from kernel32 instead use these thunks that call the target in kernelbase--presumably because existing programs abuse hotpatching to hook functions that were in kernel32. For these cases, winebuild supports a special option on a forwarded export which causes it to generate this thunk.<br><br>November 29, 2021 7:08 PM, "Mohamad Al-Jaf" <<a target="_blank" tabindex="-1" href="mailto:mohamadaljaf@gmail.com?to=%22Mohamad%20Al-Jaf%22%20<mohamadaljaf@gmail.com>">mohamadaljaf@gmail.com</a>> wrote:<br> <blockquote><div><div><div dir="ltr"><div>E-mail resend: Forgot to reply-all.</div><div></div>Interesting, why do you think this? How does one know how to find out if forwarding or importing is more appropriate? Also, what exactly is the difference between the two?</div> <div><div dir="ltr">On Mon, Nov 29, 2021 at 3:11 AM Nikolay Sivov <<a rel="external nofollow noopener noreferrer" target="_blank" tabindex="-1" href="mailto:nsivov@codeweavers.com">nsivov@codeweavers.com</a>> wrote:</div><blockquote style="margin: 0px 0px 0px 0.8ex;border-left: 1px solid rgb(204,204,204);padding-left: 1ex">It's possible it should be using -import for this function.<br> </blockquote></div></div></div></blockquote><br><br><signature>Chip</signature></div></body></html>