Process id of subprocesses

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Process id of subprocesses

Postby digory » Wed Apr 19, 2017 7:34 am

How can I retrieve the Windows process ids of the subprocesses spawned by CEF?
digory
Expert
 
Posts: 118
Joined: Wed Oct 26, 2016 3:13 am

Re: Process id of subprocesses

Postby fddima » Wed Apr 19, 2017 7:55 am

You can handle OnBrowserCreated in CefRendererProcessHandler and send own message to main process.

PS: This for acquiring renderers, but this is not suitable for to gather utility processes (like gpu, crash handler, etc). If you need gather all PIDs you always can rely on OS functions to get this list.
fddima
Master
 
Posts: 788
Joined: Tue Dec 07, 2010 6:10 am

Re: Process id of subprocesses

Postby digory » Wed Apr 19, 2017 8:40 am

Thanks for the reply. I need the PIDs of all the sub-processes. I tried with Windows API functions to find the child processes, but somehow it didn't work, so I hoped there was an easier way.
digory
Expert
 
Posts: 118
Joined: Wed Oct 26, 2016 3:13 am


Return to Support Forum

Who is online

Users browsing this forum: ElAndLivia and 82 guests