The state of the current ``Windows`` system ``Python`` is running on
| 30 | from windows.dbgprint import dbgprint |
| 31 | |
| 32 | class System(object): |
| 33 | """The state of the current ``Windows`` system ``Python`` is running on""" |
| 34 | |
| 35 | # Setup these in a fixedproperty ? |
| 36 | network = network.Network() |
| 37 | """Object of class :class:`windows.winobject.network.Network`""" |
| 38 | registry = registry.Registry() |
| 39 | """Object of class :class:`windows.winobject.registry.Registry`""" |
| 40 | |
| 41 | @property |
| 42 | def processes(self): |
| 43 | """The list of running processes |
| 44 | |
| 45 | :type: [:class:`~windows.winobject.process.WinProcess`] -- A list of Process |
| 46 | """ |
| 47 | return self.enumerate_processes() |
| 48 | |
| 49 | @property |
| 50 | def threads(self): |
| 51 | """The list of running threads |
| 52 | |
| 53 | :type: [:class:`~windows.winobject.process.WinThread`] -- A list of Thread |
| 54 | """ |
| 55 | return self.enumerate_threads_setup_owners() |
| 56 | |
| 57 | @property |
| 58 | def logicaldrives(self): |
| 59 | """List of logical drives [C:\, ...] |
| 60 | |
| 61 | :type: [:class:`~windows.winobject.volume.LogicalDrive`] -- A list of LogicalDrive |
| 62 | """ |
| 63 | return volume.enum_logical_drive() |
| 64 | |
| 65 | @utils.fixedpropety |
| 66 | def services(self): |
| 67 | """An object to query, list and explore services |
| 68 | |
| 69 | :type: :class:`~windows.winobject.service.ServiceManager` |
| 70 | """ |
| 71 | return service.ServiceManager() |
| 72 | |
| 73 | @property |
| 74 | def handles(self): |
| 75 | """The list of system handles |
| 76 | |
| 77 | :type: [:class:`~windows.winobject.handle.Handle`] -- A list of Hanlde""" |
| 78 | return handle.enumerate_handles() |
| 79 | |
| 80 | @property |
| 81 | def modules(self): |
| 82 | """The list of system modules |
| 83 | |
| 84 | :type: [:class:`~windows.winobject.system_module.SystemModule`] -- A list of :class:`~windows.winobject.system_module.SystemModule` or :class:`~windows.winobject.system_module.SystemModuleWow64` |
| 85 | """ |
| 86 | return system_module.enumerate_kernel_modules() |
| 87 | |
| 88 | @utils.fixedpropety |
| 89 | def bitness(self): |