httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Wannamaker" <...@raleigh.ibm.com>
Subject RE: Tip for 2.0 Win32 Service code.
Date Thu, 08 Jun 2000 11:56:38 GMT
Er, or you could always just try an AllocConsole(),
which is what we already do in 1.3.

-K

-----Original Message-----
From: TOKILEY@aol.com [mailto:TOKILEY@aol.com]
Sent: Thursday, June 08, 2000 1:59 AM
To: new-httpd@apache.org
Subject: Tip for 2.0 Win32 Service code.



Just upacked 2.04a a few minutes ago and noticed that
the Win32 Service Startup is still jumping through hoops
because of the way the Win32 Service Control Manager will
'call' the 'main()' body with no command line parameters when
it is trying to 'start' the Service.

This is a classic problem with Win32 console applications
like Apache that might want to retain some kind of 'normal'

[snip]

BTW: If you want to be REALLY sure it's the SCM calling then you can always
simply
make further calls to NtQueryInformationProcess() on NT or
'GetThreadContext()' for
Win 9x and find out EXACTLY who is 'calling you'. You can even narrow it
down
to
HOW you are being called ( NET START, or Control Panel, or
StartServiceCtrlDispather() )
though it doesn't really matter from an execution standpoint.

Kevin Kiley
CTO, RemoteCommunications, Inc.
http://www.RemoteCommunications.com - Corporate page
http://www.rctp.com - Online HTTP Content Compression Server.



Mime
View raw message