2.8. Service¶
The services manager is accessible via windows.system.services
Note
See sample windows.system & Services
2.8.1. ServiceManager¶
-
class
windows.winobject.service.ServiceManager[source]¶ Bases:
windows.utils.pythonutils.AutoHandleAn object to query, list and explore services
-
__getitem__(key, access=MAXIMUM_ALLOWED(0x2000000))¶ Get a service by its name/index or a list of services via a slice
Returns: Serviceor [Service] – AServiceor list ofService
-
get_service(key, access=MAXIMUM_ALLOWED(0x2000000))[source]¶ Get a service by its name/index or a list of services via a slice
Returns: Serviceor [Service] – AServiceor list ofService
-
handle¶ An handle on the object
Type: HANDLE
Note
The handle is automaticaly closed when the object is destroyed
-
wait(timeout=INFINITE(0xffffffff))¶ Wait for the object
-
2.8.2. Service¶
-
class
windows.winobject.service.Service(handle, name, description=None)[source]¶ Represent a service on the system
-
process¶ The process running the service (if any)
Type: WinProcessorNone
-
security_descriptor¶ The security descriptor of the service
Type: SecurityDescriptor
-
status¶ The status of the service
Type: SERVICE_STATUS_PROCESS
-
value¶ current value
-