python win32service - Getting triggered startup information for service
问题 win32 API QueryServiceConfig2 function supports the SERVICE_CONFIG_TRIGGER_INFO structure to get event(s) that trigger the service startup. However, python's win32service.QueryServiceConfig2() does not list such value as a parameter option. Is it possible to get that information with the win32service module? 回答1: Unfortunately, no. Here's a simple code snippet ran under Python 3.5 and PyWin32 v221 : #!/usr/bin/env python3 import win32service if __name__ == "__main__": for name in dir