View Single Post
Old 11-05-2009, 00:34
redbull redbull is offline
Join Date: Mar 2004
Posts: 160
Rept. Given: 17
Rept. Rcvd 5 Times in 4 Posts
Thanks Given: 3
Thanks Rcvd at 6 Times in 6 Posts
redbull Reputation: 5

Have you tried linking the c library in delphi and using external far calls?

Here is a good article.

Duuno if there are 64bit restrictions.

Just link the .LIB file into your delphi source.

This might need some tweaking.
{$LINK 'distorm.lib'}

function distorm_decode64(codeOffset: LongInt;code:pchar; codeLen: Integer;DecodeType:shortint; DecodeRestult : array of _DecodedInst; maxInstructions:integer; var usedInstructionsCount:integer) : Integer; cdecl; external;
Give it a shot with other libraries if Distorm does not do it for you.
Reply With Quote
The Following User Says Thank You to redbull For This Useful Post:
Indigo (07-19-2019)