Re: can I call a function exported by a DLL in the remote process?



hi,Volodymyr,
as you memtioned ,

You may always pass the name of dll from process >"A" to process "B", so
that "B" will load it legally using LoadLibrary and call the exports.

I want to call those exports in process A,so I can not use getProcAddress()
to get handles of exports.

you ask about the goal...let me put it this way.
there is a running process B, process A called createRemoteThread() to
inject a DLL named c.dll to B;
c.dll has exports including fun1(),fun2(),fun3()...

remember c.dll is loaded in process B. I want to call those export in
A,maybe frequently,but execute in B's context and change something in B.

so...is that possible?

Thank you again,Volodymyr,you also solved my problem in another forum
topic:)



"Volodymyr M. Shcherbyna" <v_scherbina@xxxxxxxxxxxxxxx> дÈëÏûÏ¢ÐÂÎÅ:u0bskP6mIHA.980@xxxxxxxxxxxxxxxxxxxxxxx
Let's start from the goal. What are you trying to achieve? You may always
pass the name of dll from process "A" to process "B", so that "B" will
load it legally using LoadLibrary and call the exports.

--
V.
This posting is provided "AS IS" with no warranties, and confers no
rights.
"Ryanivanka" <sarah.hhyy@xxxxxxxxx> wrote in message
news:%23LHms52mIHA.5024@xxxxxxxxxxxxxxxxxxxxxxx
can I call a function exported by a DLL in a remote process?
I mean...there is a DLL loaded in a thread in process A,i want to call a
export function in that DLL in process B ,is that possible?

the DLL is a win32 compoment.I can change it to COM or whatever you
suggest.Is there anyway I can do that?
Thank you very much.

regards,
Ryan





.



Relevant Pages

  • RE: 193 Is not a valid application. ERROR_BAD_EXE_FORMAT
    ... DLL and what the OS can load. ... Another cause is missing exports from other ... > I have no idea why I get this error or what it means since the .exe is ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Convert C-Builder program to Delphi?
    ... > quite separate from the function declaration itself. ... >this DLL ... >way the only place anything needs to be changed is in the #define macro. ... Exports SomeDLL_Open Name 'SomeDLL_Open'; ...
    (comp.lang.pascal.delphi.misc)
  • Re: Convert C-Builder program to Delphi?
    ... > quite separate from the function declaration itself. ... >this DLL ... >way the only place anything needs to be changed is in the #define macro. ... Exports SomeDLL_Open Name 'SomeDLL_Open'; ...
    (comp.lang.cpp)
  • RE: Exporting function from an .exe to be used by loaded .dll
    ... CE will only load and resolve exports from a module with the IMAGE_FILE_DLL ... This design won't work under CE. ... > exports one function and the dll uses it. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Export C++ class from a Borland DLL and use it in Microsoft VC
    ... Borland uses a different C runtime than Visual Studio. ... Of course, it is not impossible to use a DLL across compilers, even across different languages. ... You still need to use pure extern "C" exports, but the functions themselves can accept and return C++ classes. ... You must either not use enums in your interface, or modify Borland's compiler settings for your particular cpp file. ...
    (microsoft.public.dotnet.languages.vc)