Hi,
I am researching if it is possible to pass a handle to the serial port to another process. If I have process A that opened a handle to the serial port and then process A forks a new process B (If even possible) by calling an execultable on the hardrive. Can process A pass the handle as a command line argument to process B or maybe put the address in the registry where process B can access it. Thanks
Amish
child process inherits all handles of the parent. Its not necessary to pass anything from parent to child because child already knows about the open handles.
*nix doesn't have anything called "the registry" -- that's an MS-Windows term. And MS-Windows doesn't "fork" new processes, that's a *nix term. Which operating system are you using anyway?
Last edited by stober; December 16th, 2005 at 04:04 PM.
Sorry,
I forgot to add that, I will be using Windows. I guess I get confused with all the fuctions between linux and windows. Is there anything like fork in windows.
Amish
Bookmarks