MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / get_services

Method get_services

pydevd_attach_to_process/winappdbg/process.py:836–848  ·  view source on GitHub ↗

Retrieves the list of system services that are currently running in this process. @see: L{System.get_services} @rtype: list( L{win32.ServiceStatusProcessEntry} ) @return: List of service status descriptors.

(self)

Source from the content-addressed store, hash-verified

834 from system import System
835
836 def get_services(self):
837 """
838 Retrieves the list of system services that are currently running in
839 this process.
840
841 @see: L{System.get_services}
842
843 @rtype: list( L{win32.ServiceStatusProcessEntry} )
844 @return: List of service status descriptors.
845 """
846 self.__load_System_class()
847 pid = self.get_pid()
848 return [d for d in System.get_active_services() if d.ProcessId == pid]
849
850 # ------------------------------------------------------------------------------
851

Callers

nothing calls this directly

Calls 3

__load_System_classMethod · 0.95
get_pidMethod · 0.95
get_active_servicesMethod · 0.80

Tested by

no test coverage detected