"Walter Bright" <[email protected]> wrote in message 
news:[email protected]...
>
> 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. 


Reply via email to