httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Wannamaker" <>
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.


-----Original Message-----
From: []
Sent: Thursday, June 08, 2000 1:59 AM
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'


BTW: If you want to be REALLY sure it's the SCM calling then you can always
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
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. - Corporate page - Online HTTP Content Compression Server.

View raw message