Passing data to a process which is running

  • Thread starter Thread starter Prem
  • Start date Start date
P

Prem

Hi all

I am trying to pass data to a process that is already open in C# and
was wondering how to do this. In the old WIN32 way, I would just use
the FindWindow API call and then pass the data to the handle that was
returned. How is this implemented in C# and is there a nice clean way
to do this?

Thanks for all your help in advance.

Prem
 
Hi Prem,

You can do it in the old fashion :) , You just have to P?Invoke a couple of
calls to FindWindow, SendMessage, etc

The options depends of the target process, if the process does not provide
any other way to talk to him ( TCP connection, remoting, etc ) you will have
to use the WIN32 way

What other options can you use?

Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top