dev  

Support CREATE_NO_WINDOW in threadproc/win32/proc.c

bob
Wed, 24 Feb 2010 13:48:43 -0800

Hi,

It would be useful if apr could support CREATE_NO_WINDOW in
threadproc/win32/proc.c similar to the way it handles
DETACHED_PROCESS.

I was thinking of a few ways to solve this.

The first would be an entirely new api,
  apr_status_t apr_proc_nowindow(int value);
If value was true, CREATE_NO_WINDOW is set, otherwise it's not.

The second idea would be to use the value passed to detach,
to determine if DETACHED_PROCESS or CREATE_NO_WINDOW should be used.
They can't be used together according to the win32 api. In this
scenario, I could make it so that if 1 was passed into
apr_proc_detach, then DETACHED_PROCESS is set. Otherwise, if 2 
was passed in CREATE_NO_WINDOW would be set.

Any ideas on if this is wanted and the best way to precede?

Thanks,
Bob
  • Support CREATE_NO_WINDOW in threadproc/win32/proc.c bob