解决方案 »

  1.   

    用tool help系列函数可以获取。
    msdn上有完整例子:Taking a Snapshot and Viewing Processes你的要求可能稍有不同但是改改例子还是很容易的,不过就是用列表记录下所以进程信息,然后判断里面theParentProcessId == 你需要的父进程id的那些进程而已
      

  2.   

    CreateProcess functionCreates a new process and its primary thread. The new process runs in the security context of the calling process.
    If the calling process is impersonating another user, the new process uses the token for the calling process, not the impersonation token. To run the new process in the security context of the user represented by the impersonation token, use the CreateProcessAsUser or CreateProcessWithLogonW function.
      

  3.   

    进程A中,通过CreateProcess创建了进程B,则进程B就是进程A的子进程。
    >>>不是这样的,进程A和进程B是同级的,不存在进程Bj进程A的子进程这一说。
      

  4.   

    进程中只有线程,不可能进程中还有进程。所以 LZ 想要的,至少在 WinCE 下是不支持的。可以考虑在进程中创建线程来满足 LZ 的要求。
      

  5.   

    linux  的 fork 可以产生子进程.
      

  6.   

    查进程映射获取PROCESSENTRY32结构体,里面有th32ParentProcessID,就是你这里所说的东西了链接