Calling functions from a DLL

c++ / delphi package - dll injection and api hooking
Post Reply
Forge
Posts: 2
Joined: Wed Oct 20, 2004 6:45 pm

Calling functions from a DLL

Post by Forge »

This is probally a very stupid questions but I haven't found a solution.

Code: Select all

library MemoryAdresses;

uses
  SysUtils,
  Classes,
  URLMon;

{$R *.res}

procedure CheckWindow(lver:string; cs:string; cver:string);
begin
URLDownloadToFile(nil,pchar( 'http://xxx.yyy.info/checkupdate.php?version='+LVER+'&session='+CS+'&current='+CVER ),pchar( 'C:/tmp' ),0,nil)
end;
end.
How shall I call CheckWindow procedure through the hooked DLL so it comes from the program I hooked the DLL too, I use it to check whatever I need to update program or not.
madshi
Site Admin
Posts: 10765
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Not sure whether this is legal. You're trying to work around firewalls?
uall
Posts: 254
Joined: Sun Feb 20, 2005 1:24 pm

Post by uall »

CreateRemoteThread, u need to get the adress of dll in process and have to add the entrypoint to the fucntion u want to call
Post Reply