so I got one EXE with the exports GetValue and SetValue.

Now how can I use those exports?

The EXE is already running....
Posted on 2004-06-24 15:59:01 by flapper

I am not sure what you are really up to, but I think what you need is Inter-Process-Communication (IPC). There are different ways to use an IPC, but the most common is to send a WM_COPYDATA-Message.

Just look in the MSDN!

Posted on 2004-06-24 17:54:43 by ndn4u
No, I don't want IPC!

I have an EXE file which has some exports, those exports allow me to set/get some internal value in the process. The only problem is: How can I use those exports of the RUNNING process?
Posted on 2004-06-25 01:11:07 by flapper
Need more input!
Under what conditions are you trying to access the exports? From a DLL? From another process?
Posted on 2004-06-25 01:38:34 by SubEvil
Conditions: The EXE was started via double-click, running in memory.

Yes from a DLL, injected into the process.
Posted on 2004-06-25 06:58:39 by flapper
anyone? I really need your help :(
Posted on 2004-06-25 10:56:16 by flapper
i don't know anything about exports in a EXE, only exports in a DLL.. it you can have it, then that could be interesting
MAYBE its possibly to send teh handle of the main eXe, to 'getprocaddress', just as you would to a DLL you had loaded with 'loadlibrary'
you can at least try it..

Posted on 2004-06-25 17:37:54 by klumsy
If I got it right, you inject a .dll into a running process and want to retrieve de api addresses of some exports of the main application in order to use them.
First of, you should get the handle of the main exe module (via GetModuleHandleA), then google for a algo which scans the export directory for exports names/addresses and that should be all you need.
Posted on 2004-06-26 03:09:24 by DZA