let hProcess = OpenProcess(PROCESS_ALL_ACCESS, false, castDWORD)
how to send a command to the hProcess and get the output?
thank you very much!!!
You mean, sending an inputStream to an application that was not started from your application? I think that isn't possible - in any language.
There is shared-memory and sockets to send data to other applications. Databases usually work like this. But you can only feed the input pipe of applications you started as subprocess as far as I know.
and how to inputstream to subprocess(if pass through the subprocess pid),
the inputstream() only accept a process
inputStream(p: Process)