# trace communication  between  Parent and Child processes on Windows with oneagent SDK

**URL:** <https://community.dynatrace.com/t/trace-communication-between-parent-and-child-processes-on-windows-with-oneagent-sdk/21292>\
**Category:** Open Q&A\
**Tags:** oneagent-sdk\
**Created:** [July 15, 2019, 2:00am UTC](https://community.dynatrace.com/t/trace-communication-between-parent-and-child-processes-on-windows-with-oneagent-sdk/21292 "2019-07-15T02:00:46Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Alram\_Lechner](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@Alram\_Lechner](https://community.dynatrace.com/u/Alram_Lechner)\
**Post date:** [July 15, 2019, 10:39am UTC](https://community.dynatrace.com/t/trace-communication-between-parent-and-child-processes-on-windows-with-oneagent-sdk/21292/4 "2019-07-15T10:39:28Z")

</div>

Hi Aoki!

The fork API in that form exists on Unix like operating systems only. On Windows, the StartProcess API works in a completely other way and doesn’t allow to share an agent between parent and child process therefore.

But that doesn’t mean, that you can’t trace between parent and child processes.

On Windows every process will start their own agent. You need to setup the OneAgent SDK for C/C++ in both processes (parent + child). To trace communication between them use (for example) Outgoing-/Incoming remotecall. You need to transport the tag (received from the OutgoingRemoteCallTracer) over communicationchannel being used by parent- and child process (e. g. named pipe, shared memory, …).

Be aware, that initializing the SDK in every process is a expensive operation and may take some time. If your application starts child processes often (e. g. for every dispachted request; child processes then are short living), it would be better to redesign your application to use child processes that are alive for longer time.

BR

Alram

---

_[View the full topic](https://community.dynatrace.com/t/trace-communication-between-parent-and-child-processes-on-windows-with-oneagent-sdk/21292)._
