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:
- Named mutex
- WCF service
- Database
精彩评论