You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by bo...@brasko.net on 2010/02/24 22:48:04 UTC

Support CREATE_NO_WINDOW in threadproc/win32/proc.c

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