LocalService support
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
With this module you can create out-of-process COM
server in NT Service.
Usage:
class MyCOMObject1:
_reg_clsid_ = ...
_reg_...
class MyCOMService(localservice.LocalCOMService):
_svc_com_servers_ = [MyCOMObject1, ...]
if __name__=='__main__':
localservice.ProcessCommandLine(MyCOMService)
Logged In: YES
user_id=14198
Did you mean to include an attachment?
Logged In: YES
user_id=39274
Sorry - forgot to click on checkbox
localservice.py
Logged In: YES
user_id=14198
Thanks Michael. A few comments:
* Could you please change 'Granted for inclusion in pywin32
(https://sourceforge.net/projects/pywin32/).' to something
like 'Released under the terms of the pywin32 license' or
something - that makes it clear that people who are
currently free to redistribute pywin32 components are also
free to redistribute this.
* Is there any reason we can't leverage the existing service
command-line support? It seems a shame to clone so much
code. I'd be willing to consider changing win32serviceutil
so we can take advantage of customized command-line options
etc. The 'optparse' module is a better choice than getopt
these days.
* Its not clear why 'serve' is needed, and there aren't any
comments for it.
* Why are InitHook() functions rather than just class members?
Thanks,
Mark
Logged In: YES
user_id=14198
Just checking if this is still alive...
No word from submitter.