Creatng 100% separate process from Parent



I'm trying to create a process that is independent of the parent with
CreateProcess().

By independent, when using Process Explorer from sysinternals.com, I don't
want the spawned process to be a "child" under the parent process.

I tried various CreateProcess flags, include CREATE_NEW_PROCESS_GROUP.

When run separately (manually), of course, Process Explorer shows it as a
independent process (as part of the EXPLORER.EXE process).

The reason I want this is because the main process is traditionally an
independent RPC server process and the second RPC client process (a
configuration tool) is typically just run from the start menu.

I added a "Run Configuration" to the server process tray menu and I don't
want any hidden new unforeseen issues by given the user a "convenience" menu
option.

Thanks in advance

---
Hector Santos

.



Relevant Pages

  • Re: Creatng 100% separate process from Parent
    ... > By independent, when using Process Explorer from sysinternals.com, I ... > don't want the spawned process to be a "child" under the parent ... CreateProcess uses the "parent PID" field from the process header to rebuild ... Therefore you simply need to launch the child process in 2 ...
    (microsoft.public.win32.programmer.kernel)
  • Re: processes in xp
    ... 1)The Win32 API's CreateProcess, CreateProcessAsUser etc. do create Child ... processes and as such the calling process is the parent of the child ...
    (microsoft.public.dotnet.languages.csharp)
  • Port 1025 - opened by "System"
    ... Process Explorer: shows "System Pid 8" as the parent of many child ...
    (alt.computer.security)
  • Re: Creatng 100% separate process from Parent
    ... Hector Santos wrote: ... > By independent, when using Process Explorer from sysinternals.com, I don't ... > want the spawned process to be a "child" under the parent process. ... Using standard API there will be no way around this ...
    (microsoft.public.win32.programmer.kernel)
  • "System" - Why is it listening on port 1025?
    ... Process Explorer: shows "System Pid 8" as the parent of many child ...
    (microsoft.public.win2000.security)

Loading