Creating a python win32 service

后端 未结 2 625
长情又很酷
长情又很酷 2020-12-01 04:02

I am currently trying to create a win32 service using pywin32. My main point of reference has been this tutorial:

http://code.activestate.com/recipes/551780/

2条回答
  •  天命终不由人
    2020-12-01 04:47

    I've never used these APIs, but digging through the code, it looks like the class passed in is used to register the name of the class in the registry, so you can't do any initialization of your own. But there's a method called GetServiceCustomOption that may help:

    http://mail.python.org/pipermail/python-win32/2006-April/004518.html

提交回复
热议问题