Developed by: John Walker, JSW Technology
Distributed by: Aonix
Copyright John Walker & JSW Technology 2001.
All Rights Reserved.
The information contained herein is subject to change without notice.
ObjectAda is a trademark of Aonix
Microsoft, Visual C++, Win32 and Windows NT are trademarks of Microsoft, Inc.
Last updated: 7 December 2001
This upgrade adds support for ImageHlp to Ada Bindings to Win32 (WinAPI) Version 4.1 which is distributed with ObjectAda OpenPack Version 7.2.1 by Aonix. It can be installed as described below (see Installation).
*** WARNING ***
ImageHlp.ads includes some hand edits to avoid releasing WinAPI.ads. At the next full release of WinAPI the following declarations will move into package WinAPI:
AddressOfAddressOfIMAGE_SECTION_HEADER AddressOfPIMAGE_SECTION_HEADER
Go back to Ada Binding to Win32 (WinAPI)
Go back to start of JSW Technology Home Page
The upgrade can be downloaded using winapi412.zip (710 KB).
The sources can be extracted directly into an ObjectAda installation. For example, assuming ObjectAda is installed in c:\program files\aonix\objectada then the files can be extracted as follows:
>c: >cd \"program files"\aonix\objectada\winapi >..\bin\unzip winapi412.zipNote that unzip.exe is supplied with ObjectAda in objectada\bin.
That should have installed the following files:
objectada\winapi\v4.1\binding\ascii\src\wincon.ada objectada\winapi\v4.1\binding\ascii\src\imagehlp.ads objectada\winapi\v4.1\binding\ascii\src\imagehlp.adb objectada\winapi\v4.1\binding\ascii\lib\vc60sp4.lrf objectada\winapi\v4.1\binding\unicode\src\wincon.ada objectada\winapi\v4.1\binding\unicode\src\imagehlp.ads objectada\winapi\v4.1\binding\unicode\src\imagehlp.adb objectada\winapi\v4.1\binding\unicode\lib\vc60sp4.lrf objectada\winapi\v4.1\samples\version\version.ada
Having installed the sources they can be compiled as follows:
>cd v4.1\binding\ascii\lib >adaopts -p ..\..\..\..\..\lib\rts >..\..\..\..\..\bin\adacomp ..\src\wincon.ada >..\..\..\..\..\bin\adacomp ..\src\imagehlp.ads >..\..\..\..\..\bin\adacomp ..\src\imagehlp.adb >cd ..\..\unicode\lib >adaopts -p ..\..\..\..\..\lib\rts >..\..\..\..\..\bin\adacomp ..\src\wincon.ada >..\..\..\..\..\bin\adacomp ..\src\imagehlp.ads >..\..\..\..\..\bin\adacomp ..\src\imagehlp.adb
The packages can now be with'ed into any program which is linked to the WinAPI library.
The sample, Version, illustrates the use of the new package ImageHlp.