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

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

Here is a good article.

http://rvelthuis.de/articles/articles-cobjs.html

Duuno if there are 64bit restrictions.

Just link the .LIB file into your delphi source.

This might need some tweaking.
Code:
{$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