I am learning to use pywin32, and am trying to use the win32serviceutil modules on 64bit Python 3.6.4
The following code:
import win32serviceutil as service
serviceStatus = service.QueryServiceStatus("WinDefend")
print(serviceStatus)
Returns the following tuple:
(16, 4, 197, 0, 0, 0, 0)
I am utterly new to the windows api and pywin32, what does these 6 values mean? Any documentation on pywin32 and win32 isn't revealing anything.
Edit - I'm running Windows 10
you got SERVICE_STATUS
structure
the concrete values mean next:
dwServiceType=SERVICE_WIN32_OWN_PROCESS(16)
dwCurrentState=SERVICE_RUNNING(4)
dwControlsAccepted=SERVICE_ACCEPT_SESSIONCHANGE|SERVICE_ACCEPT_POWEREVENT|SERVICE_ACCEPT_SHUTDOWN|SERVICE_ACCEPT_STOP (0xc5==197)
dwWin32ExitCode=NO_ERROR (0)
dwServiceSpecificExitCode=0 // This value is ignored because dwWin32ExitCode != ERROR_SERVICE_SPECIFIC_ERROR.
dwCheckPoint=0
dwWaitHint=0