This commit is contained in:
hakril
2016-04-27 00:33:02 +02:00
parent a988ad03e3
commit c2c3fe2dc2
11 changed files with 70 additions and 36 deletions
+9 -8
View File
@@ -421,18 +421,19 @@ Make WMI requests
Ouput::
(cmd λ) python .\samples\wmi_request.py
WMI requester is <windows.winobject.wmi.WmiRequester object at 0x02CAA410>
WMI requester is <windows.winobject.wmi.WmiRequester object at 0x02B37EF0>
Selecting * from 'Win32_Process'
They are <94> processes
They are <92> processes
Looking for ourself via pid
Some info about our process:
* Name -> python.exe
* ProcessId -> 7896
* ProcessId -> 7968
* OSName -> Microsoft Windows 8.1 Pro|C:\Windows|\Device\Harddisk0\Partition2
* UserModeTime -> 1406250
* UserModeTime -> 2812500
* WindowsVersion -> 6.3.9600
* CommandLine -> "C:\Python27\python.exe" .\wmi_request.py
* CommandLine -> python.exe .\samples\wmi_request.py
<Select Caption,FileSystem,FreeSpace from Win32_LogicalDisk>:
* {'Caption': u'C:', 'FreeSpace': u'14729031680', 'FileSystem': u'NTFS'}
* {'Caption': u'D:', 'FreeSpace': u'243872890880', 'FileSystem': u'NTFS'}
* {'Caption': u'E:', 'FreeSpace': u'1073852416', 'FileSystem': u'FAT32'}
* {'Caption': u'C:', 'FreeSpace': u'43991547904', 'FileSystem': u'NTFS'}
* {'Caption': u'E:', 'FreeSpace': u'82776027136', 'FileSystem': u'NTFS'}
* {'Caption': u'F:', 'FreeSpace': u'5711265792', 'FileSystem': u'FAT32'}
* {'Caption': u'G:', 'FreeSpace': None, 'FileSystem': None}
+15
View File
@@ -0,0 +1,15 @@
Service
=======
.. note::
See sample :ref:`sample_system`
.. module:: windows.winobject.service
.. autoclass:: ServiceStatus
:exclude-members: count, index
.. autoclass:: ServiceA
:show-inheritance:
:inherited-members:
+4
View File
@@ -1,6 +1,10 @@
Volume -- The logical drives
============================
.. note::
See sample :ref:`sample_system`
.. module:: windows.winobject.volume
.. autoclass:: LogicalDrive
+4
View File
@@ -23,6 +23,10 @@ The submodules that you might use by themself are:
The ``system`` object
"""""""""""""""""""""
.. note::
See sample :ref:`sample_system`
.. currentmodule:: windows.winobject
.. autoclass:: windows.winobject.system.System