Article View: borland.public.cppbuilder.nativeapi
Article #17300Re: Import functions from gll by index.
From: Vladimir Afanasyev
Date: Fri, 28 Mar 2003 09:44
Date: Fri, 28 Mar 2003 09:44
30 lines
2138 bytes
2138 bytes
Hi Mariusz, "Mariusz Grecki" <grecki@dmcs.p.lodz.pl> wrote: >However I wonder how it is made by internals of >Delphi compiler/linker, because I have Delphi program >(rawwrite - written by John Newbigin ) that declares >------------------------ >function LoadLibrary16; external kernel32 index 35; >procedure FreeLibrary16; external kernel32 index 36; >function GetProcAddress16; external kernel32 index 37; >----------------------- >and that imports are done "automagicaly"! I do not know how Delphi do it. May be Delphi "know" that kernel32 it is a "naughty boy" and use own way of mapping these function in virtual space of process. I tryed to work with PE format and you can see my code in codecentral: FindFunction seach functions in dlls on HDD (source) http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=18081 I prepare small article for BDN by they did not publish it. May be my uggly English or another problems. There are a lot Matt Pietrek articles in MSJ/MSDN that you can find in online. Best Regards, Vladimir.
Technical Details
Message-ID:
<3e841979$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e8165eb@newsgroups.borland.com> <3e81f8e3$2@newsgroups.borland.com> <3e82b1fc$1@newsgroups.borland.com> <3e8334b8$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,3166b65da596fd46 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-28 01:48:41 PST From: "Vladimir Afanasyev" <avv@systema.kiev.ua> Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua> Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua> Subject: Re: Import functions from gll by index. Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 62.244.14.114 62.244.14.114 X-Forwarded-For: 192.168.0.147 References: <3e8165eb@newsgroups.borland.com> <3e81f8e3$2@newsgroups.borland.com> <3e82b1fc$1@newsgroups.borland.com> <3e8334b8$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3e841979$1@newsgroups.borland.com> Date: 28 Mar 2003 01:44:25 -0800 X-Trace: newsgroups.borland.com 1048844665 207.105.83.65 (28 Mar 2003 01:44:25 -0800) Lines: 31 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail