How do you access a hooked dll in Delphi?

How do you access a hooked dll in Delphi? I know how to use DLLs that are in the same folder as my exe, but I want to use an injected DLL to inject data through a process (Firefox).

Tags: , ,

One Response to “How do you access a hooked dll in Delphi?”

  1. Mike U says:

    There are 2 methods:

    1. Project, Import Type Library. You need to know it’s name. If it’s not in the list, select Add. Then Create Unit. Add the name of the unit (SomeUnit_TLB) to your form’s uses clause. Look at the unit to discover the names of the classes available to you. Declare the class like this: clsSomeClass : CoSomeClassName;, instanciate the class like this: clsSomeClass := SomeClassName.Create;. Now if you type clsSomeClass followed by a period you get code completion on that classes properties and methods.

    2. Make sure the dll is registered. Discover it’s classes and thier properties and methods somehow. Declare the class like this: clsSomeClass : Variant;, instanciate the class like this: clsSomeClass := CreateOleObject(’DllName.SomeClassName’);. Then use the properties and methods of the class, but you won’t get code completion.

Trackbacks/Pingbacks


Leave a Reply

Security Code:

Categories