• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 190
  • Last Modified:

Transfer data between processes

I use CreateProcess(...) to create a new process. How can pass  parameters to the new process? How can I get some data back?
0
zwye
Asked:
zwye
1 Solution
 
chensuCommented:
You can pass the parameters with the 2nd parameter of CreateProcess. The easiest way to pass data back is to send a WM_COPYDATA message.

Using WM_COPYDATA for IPC
http://msdn.microsoft.com/library/psdk/winbase/ipc_34o3.htm 

Inter-Process Communication Using WM_COPYDATA
http://codeguru.developer.com/win32/ipcdemo.shtml
0
 
zwyeAuthor Commented:
Edited text of question.
0
 
jhanceCommented:
There are many ways, pipes, network connections, shared memory, mailslots, semaphores, disk files, window messages, etc.  What is the best way depends on what you're trying to do.
0
 
nv3prasadCommented:
I agree with jhance
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now