DIP 45 - approval discussion
Daniel Murphy
yebblies at nospamgmail.com
Fri Nov 15 00:00:24 PST 2013
"Walter Bright" <newshound2 at digitalmars.com> wrote in message
news:l64imh$27na$1 at digitalmars.com...
>
> Also, at least on Windows, you can call functions in a DLL without saying
> dllimport on them and suffering a layer of indirection. The magic happens
> in the import library, which provides the relevant thunk. It's about 15
> years since I worked on this stuff, so I might be a bit fuzzy on the
> details.
The symbol in the import library just translates to an import table
indirection.
The trick you may have been thinking of is system dlls (kernel32.dll,
user32.dll etc) are always loaded at the same address, so a little hackery
will let you bypass the import table.
More information about the Digitalmars-d
mailing list