开发者

How to send arguments to a process that started before?

How do I send arguments to a process that started before?

Suppose we started process "Name.开发者_JAVA技巧exe" before, and we know its process ID is X. In order not to open a new process, I want to send an argument to this process. How can I do this?

What is the most secure way so I will find the date received from my application, not hackers?


It depends on how this process reads these parameters (its protocol for inter-process comunications).

  • If it uses named pipes - use pipes.
  • If it watches for certain files - create files and write to them
  • If it uses sockets - use sockets to operate
  • If it listens for queue - use MSMQ or other API for queueing

For example, you can start from Choosing a Transport (MSDN).


In addition to the above:

  1. Named mutex
  2. WCF service
  3. Database
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜