httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mladen Turk" <mt...@mappingsoft.com>
Subject [ADDON] Console wrapper for WIN32
Date Sun, 13 Jan 2002 13:24:33 GMT
Hi all,

I've been working on that for some time, and here is some background info on
the subject.

1. To install the Apache you need to execute the apache with something like
"apache.exe -k install -n ApacheRulesTheWeb". Well, running that from some
installation program would popup the console window, just to launch the
apache to install himself.
2. Running apache in the non-service mode also creates the console window.

Well, here is the program that resolves some things about console
applications under WIN32 platform.
The application itself can act depending on command line arguments, and
basically has tree modes:
1. without GUI at all
2. try icon
3. console window dialog (with or without try notification).

So one can for example launch the apache with something like "conwrap -g -t
apache.exe".
The conwrap will launch the apache and put the icon in the try. Right mouse
click on that icon will present the menu option to quit the service, and if
clicked the conwrap will send the apXXXX_shutdown message to the apache, but
only if the command line param was apache.exe.

Other use of conwrap would be typing something like:
conwrap -g -c -s cmd.exe, the conwrap will spawn the command shell and
redirect it through its gui.

The conwrap constantly monitors the status of the child process and exits
when the child exits.
It also has the safe terminate process capability calling CreateRemoteThread
(if running WINNT) to quit the child process.

When called with '-q miliseconds' it will exit after the specified time
frame elapses.

The code itself is less the 30K.

MT.


Mime
View raw message