Chromium Embedded 如何检测我们是否 运行 作为子进程?

How in Chromium Embedded detect if we are running as subprocess?

当为 Chromium Embedded Framework 3 子进程使用单个可执行文件时,程序如何检测它是 运行 作为主要可执行文件还是作为子进程?

我发现主进程使用命令行开关 --type=zygote 运行,但子进程不是。

是否总是正确的(用伪语言):

if (command line switch --type=zygote not found) {
    we are in subprocess
}

?

是的,我相信是的,我们成功地使用了那个技术。

          if ( wcsstr(lpCmdLine, L"type") == NULL ){
             //  we have no subprocess type so we are the main process
          }