Python, NT Services and COM

Bill Bell bill-bell at bill-bell.hamilton.on.ca
Wed May 30 17:20:07 EDT 2001


mwright at pro-ns.net (Mark Wright) wrote:
> Is it possible to provide a COM interface to an NT Service in Python?
> I've got an application that I'd like to run as a service, and I'd
> like to provide a COM interface for administrative and monitoring
> purposes.  I don't understand how Python controls object lifetimes
> (the standard COM server examples hide the details).  (Truth be told,
> I don't understand how ATL does it either)

How about creating a local server COM 'facade' for the NT Service? 
Ie, when SCM asks service to start its main thread invokes a 
method in the COM interface (thereby starting the COM server) and 
then the COM server talks to the Service via a named pipe (if 
scalability is not a big deal).

Bill




More information about the Python-list mailing list