Thanks for answering, here are a couple more questions.
> -----Original Message-----
> From: Mark Hammond [mailto:[EMAIL PROTECTED]]
> You need to exit the service "normally". When reporting the
> service stop
> status, you report an error code.
How do I do that? Should I override SvcRun and call
self.ReportServiceStatus(win32service.SERVICE_STOP_PENDING) but add
parameters for win32ExitCode or svcExitCode?
Wouldn't it be better if the serviceframework always returned an error code
if the process exited because of an unhandled exception? This would make it
real easy to have self restarting services.
> > How can one expose a COM object from an NT service so that
> one can make an
> > application that displays a GUI for the service and connects to
> > the service
> > via COM?
>
> Not too sure. You could try using the "running object table". I have
> generally used named pipes in this situation.
Would the code perhaps be something like the code in the py file that runs
COM objects out of process?
Sorry for asking this much but I am haven't written any services in C/C++,
I'd better read up on it there.
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython