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)
| 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 |
nothing calls this directly
no test coverage detected