Pass a value during injection.

c++ / delphi package - dll injection and api hooking
Post Reply
andya
Posts: 17
Joined: Sat Dec 09, 2006 1:34 am

Pass a value during injection.

Post by andya »

Hi
Is it possible to set a value in the DLL while it is being injected? What I want to do is the following:
I have a service Svc, which injects a dll using InjectLibrary. I want the service to set some value in the dll, so that when the dll talks back to the service ( on the pipe) , the service knows that the request is coming from the dll and not some other program.
The dll can use the value as a authentication token to talk to the service.

Thanks for your help,
Post Reply