Files
2025-05-15 09:32:55 +02:00

463 lines
34 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en" data-content_root="./">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<title>1. The windows module &#8212; PythonForWindows 1.0.3 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/classic.css?v=def86cc0" />
<link rel="stylesheet" type="text/css" href="_static/css/mbasic.css?v=957880af" />
<script src="_static/documentation_options.js?v=baaebd52"></script>
<script src="_static/doctools.js?v=9a2dae69"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="2. The windows objects" href="winobject.html" />
<link rel="prev" title="Welcome to PythonForWindowss documentation!" href="index.html" />
</head><body>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="winobject.html" title="2. The windows objects"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="index.html" title="Welcome to PythonForWindowss documentation!"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">PythonForWindows 1.0.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><span class="section-number">1. </span>The <code class="docutils literal notranslate"><span class="pre">windows</span></code> module</a></li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<section id="the-windows-module">
<h1><span class="section-number">1. </span>The <code class="docutils literal notranslate"><span class="pre">windows</span></code> module<a class="headerlink" href="#the-windows-module" title="Link to this heading"></a></h1>
<p>The <code class="docutils literal notranslate"><span class="pre">windows</span></code> module is the module installed by <code class="file docutils literal notranslate"><span class="pre">setup.py</span></code>.</p>
<p>This module exports some objects representing the current state of the system.
It also offers some submodules aimed to help the interfacing with <code class="docutils literal notranslate"><span class="pre">Windows</span></code> and native code execution.</p>
<dl class="simple">
<dt>The defaults objects accessible in <code class="docutils literal notranslate"><span class="pre">windows</span></code> are:</dt><dd><ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">system</span></code> of type <a class="reference internal" href="#windows.winobject.system.System" title="windows.winobject.system.System"><code class="xref py py-class docutils literal notranslate"><span class="pre">windows.winobject.system.System</span></code></a></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">current_process</span></code> of type <a class="reference internal" href="process.html#windows.winobject.process.CurrentProcess" title="windows.winobject.process.CurrentProcess"><code class="xref py py-class docutils literal notranslate"><span class="pre">windows.winobject.process.CurrentProcess</span></code></a></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">current_thread</span></code> of type <a class="reference internal" href="process.html#windows.winobject.process.CurrentThread" title="windows.winobject.process.CurrentThread"><code class="xref py py-class docutils literal notranslate"><span class="pre">windows.winobject.process.CurrentThread</span></code></a></p></li>
</ul>
</dd>
<dt>The submodules that you might use by themself are:</dt><dd><ul class="simple">
<li><p><a class="reference internal" href="generated.html#module-windows.generated_def" title="windows.generated_def"><code class="xref py py-mod docutils literal notranslate"><span class="pre">windows.generated_def</span></code></a></p></li>
<li><p><a class="reference internal" href="native_exec.html#module-windows.native_exec" title="windows.native_exec"><code class="xref py py-mod docutils literal notranslate"><span class="pre">windows.native_exec</span></code></a></p></li>
<li><p><a class="reference internal" href="winproxy.html#module-windows.winproxy" title="windows.winproxy"><code class="xref py py-mod docutils literal notranslate"><span class="pre">windows.winproxy</span></code></a></p></li>
<li><p><a class="reference internal" href="security.html#module-windows.security" title="windows.security"><code class="xref py py-mod docutils literal notranslate"><span class="pre">windows.security</span></code></a></p></li>
<li><p><a class="reference internal" href="wintrust.html#module-windows.wintrust" title="windows.wintrust"><code class="xref py py-mod docutils literal notranslate"><span class="pre">windows.wintrust</span></code></a></p></li>
<li><p><a class="reference internal" href="crypto.html#module-windows.crypto" title="windows.crypto"><code class="xref py py-mod docutils literal notranslate"><span class="pre">windows.crypto</span></code></a></p></li>
<li><p><a class="reference internal" href="utils.html#module-windows.utils" title="windows.utils"><code class="xref py py-mod docutils literal notranslate"><span class="pre">windows.utils</span></code></a></p></li>
<li><p><a class="reference internal" href="debug.html#module-windows.debug" title="windows.debug"><code class="xref py py-mod docutils literal notranslate"><span class="pre">windows.debug</span></code></a></p></li>
<li><p><a class="reference internal" href="alpc.html#module-windows.alpc" title="windows.alpc"><code class="xref py py-mod docutils literal notranslate"><span class="pre">windows.alpc</span></code></a></p></li>
<li><p><a class="reference internal" href="pipe.html#module-windows.pipe" title="windows.pipe"><code class="xref py py-mod docutils literal notranslate"><span class="pre">windows.pipe</span></code></a></p></li>
<li><p><a class="reference internal" href="rpc.html#module-windows.rpc" title="windows.rpc"><code class="xref py py-mod docutils literal notranslate"><span class="pre">windows.rpc</span></code></a></p></li>
<li><p><a class="reference internal" href="com.html#module-windows.com" title="windows.com"><code class="xref py py-mod docutils literal notranslate"><span class="pre">windows.com</span></code></a></p></li>
</ul>
</dd>
</dl>
<section id="the-system-object">
<span id="object-system"></span><h2><span class="section-number">1.1. </span>The <code class="docutils literal notranslate"><span class="pre">system</span></code> object<a class="headerlink" href="#the-system-object" title="Link to this heading"></a></h2>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>See sample <a class="reference internal" href="sample.html#sample-system"><span class="std std-ref">windows.system</span></a></p>
</div>
<dl class="py class" id="module-windows.winobject.system">
<dt class="sig sig-object py" id="windows.winobject.system.System">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">windows.winobject.system.</span></span><span class="sig-name descname"><span class="pre">System</span></span><a class="reference internal" href="_modules/windows/winobject/system.html#System"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#windows.winobject.system.System" title="Link to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>The state of the current <code class="docutils literal notranslate"><span class="pre">Windows</span></code> system <code class="docutils literal notranslate"><span class="pre">Python</span></code> is running on</p>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.bitness">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">bitness</span></span><a class="headerlink" href="#windows.winobject.system.System.bitness" title="Link to this definition"></a></dt>
<dd><p>The bitness of the system</p>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code> 32 or 64</p>
</dd>
</dl>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.build_number">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">build_number</span></span><a class="headerlink" href="#windows.winobject.system.System.build_number" title="Link to this definition"></a></dt>
<dd><p>Return the <cite>CurrentBuildNumber</cite></p>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.computer_name">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">computer_name</span></span><a class="headerlink" href="#windows.winobject.system.System.computer_name" title="Link to this definition"></a></dt>
<dd><p>The name of the computer</p>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></p>
</dd>
</dl>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.device_manager">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">device_manager</span></span><a class="headerlink" href="#windows.winobject.system.System.device_manager" title="Link to this definition"></a></dt>
<dd><p>An object to query the device&amp;driver configured on the computer.</p>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p><a class="reference internal" href="device_manager.html#windows.winobject.device_manager.DeviceManager" title="windows.winobject.device_manager.DeviceManager"><code class="xref py py-class docutils literal notranslate"><span class="pre">DeviceManager</span></code></a></p>
</dd>
</dl>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.display_version">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">display_version</span></span><a class="headerlink" href="#windows.winobject.system.System.display_version" title="Link to this definition"></a></dt>
<dd><p>Return the <cite>DisplayVersion</cite> (22H2, 23H2, …) is it exists, else None</p>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.environ">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">environ</span></span><a class="headerlink" href="#windows.winobject.system.System.environ" title="Link to this definition"></a></dt>
<dd><p>A unicode version of os.environ
Same as os.environ on py3
Custom dict built on GetEnvironmentStringsW() on py2</p>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code> {<code class="xref py py-class docutils literal notranslate"><span class="pre">unicode</span></code>: <code class="xref py py-class docutils literal notranslate"><span class="pre">unicode</span></code>}</p>
</dd>
</dl>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.etw">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">etw</span></span><a class="headerlink" href="#windows.winobject.system.System.etw" title="Link to this definition"></a></dt>
<dd><p>An object to interact with ETW (Event Tracing for Windows)</p>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p><a class="reference internal" href="etw.html#windows.winobject.event_trace.EtwManager" title="windows.winobject.event_trace.EtwManager"><code class="xref py py-class docutils literal notranslate"><span class="pre">EtwManager</span></code></a></p>
</dd>
</dl>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.event_log">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">event_log</span></span><a class="headerlink" href="#windows.winobject.system.System.event_log" title="Link to this definition"></a></dt>
<dd><p>An object to open Event channel/publisher and evtx file</p>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p><a class="reference internal" href="evtlog.html#windows.winobject.event_log.EvtlogManager" title="windows.winobject.event_log.EvtlogManager"><code class="xref py py-class docutils literal notranslate"><span class="pre">EvtlogManager</span></code></a></p>
</dd>
</dl>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.handles">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">handles</span></span><a class="headerlink" href="#windows.winobject.system.System.handles" title="Link to this definition"></a></dt>
<dd><p>The list of system handles</p>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p>[<a class="reference internal" href="handle.html#windows.winobject.handle.Handle" title="windows.winobject.handle.Handle"><code class="xref py py-class docutils literal notranslate"><span class="pre">Handle</span></code></a>] A list of Hanlde</p>
</dd>
</dl>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.logicaldrives">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">logicaldrives</span></span><a class="headerlink" href="#windows.winobject.system.System.logicaldrives" title="Link to this definition"></a></dt>
<dd><p>List of logical drives [C:, …]</p>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p>[<a class="reference internal" href="volume.html#windows.winobject.volume.LogicalDrive" title="windows.winobject.volume.LogicalDrive"><code class="xref py py-class docutils literal notranslate"><span class="pre">LogicalDrive</span></code></a>] A list of LogicalDrive</p>
</dd>
</dl>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.modules">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">modules</span></span><a class="headerlink" href="#windows.winobject.system.System.modules" title="Link to this definition"></a></dt>
<dd><p>The list of system modules</p>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p>[<a class="reference internal" href="system_module.html#windows.winobject.system_module.SystemModule" title="windows.winobject.system_module.SystemModule"><code class="xref py py-class docutils literal notranslate"><span class="pre">SystemModule</span></code></a>] A list of <a class="reference internal" href="system_module.html#windows.winobject.system_module.SystemModule" title="windows.winobject.system_module.SystemModule"><code class="xref py py-class docutils literal notranslate"><span class="pre">SystemModule</span></code></a> or <a class="reference internal" href="system_module.html#windows.winobject.system_module.SystemModuleWow64" title="windows.winobject.system_module.SystemModuleWow64"><code class="xref py py-class docutils literal notranslate"><span class="pre">SystemModuleWow64</span></code></a></p>
</dd>
</dl>
</dd></dl>
<dl class="py attribute">
<dt class="sig sig-object py" id="windows.winobject.system.System.network">
<span class="sig-name descname"><span class="pre">network</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">&lt;windows.winobject.network.Network</span> <span class="pre">object&gt;</span></em><a class="headerlink" href="#windows.winobject.system.System.network" title="Link to this definition"></a></dt>
<dd><p>Object of class <a class="reference internal" href="network.html#windows.winobject.network.Network" title="windows.winobject.network.Network"><code class="xref py py-class docutils literal notranslate"><span class="pre">windows.winobject.network.Network</span></code></a></p>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.object_manager">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">object_manager</span></span><a class="headerlink" href="#windows.winobject.system.System.object_manager" title="Link to this definition"></a></dt>
<dd><p>An object to query the objects in the kernel object manager.</p>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p><a class="reference internal" href="object_manager.html#windows.winobject.object_manager.ObjectManager" title="windows.winobject.object_manager.ObjectManager"><code class="xref py py-class docutils literal notranslate"><span class="pre">ObjectManager</span></code></a></p>
</dd>
</dl>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.processes">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">processes</span></span><a class="headerlink" href="#windows.winobject.system.System.processes" title="Link to this definition"></a></dt>
<dd><p>The list of running processes</p>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p>[<a class="reference internal" href="process.html#windows.winobject.process.WinProcess" title="windows.winobject.process.WinProcess"><code class="xref py py-class docutils literal notranslate"><span class="pre">WinProcess</span></code></a>] A list of Process</p>
</dd>
</dl>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.product_type">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">product_type</span></span><a class="headerlink" href="#windows.winobject.system.System.product_type" title="Link to this definition"></a></dt>
<dd><p>The product type, value might be:</p>
<blockquote>
<div><ul class="simple">
<li><p>VER_NT_WORKSTATION(0x1L)</p></li>
<li><p>VER_NT_DOMAIN_CONTROLLER(0x2L)</p></li>
<li><p>VER_NT_SERVER(0x3L)</p></li>
</ul>
</div></blockquote>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="xref py py-class docutils literal notranslate"><span class="pre">long</span></code> or <code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code> (or subclass)</p>
</dd>
</dl>
</dd></dl>
<dl class="py attribute">
<dt class="sig sig-object py" id="windows.winobject.system.System.registry">
<span class="sig-name descname"><span class="pre">registry</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">&lt;windows.winobject.registry.Registry</span> <span class="pre">object&gt;</span></em><a class="headerlink" href="#windows.winobject.system.System.registry" title="Link to this definition"></a></dt>
<dd><p>Object of class <a class="reference internal" href="registry.html#windows.winobject.registry.Registry" title="windows.winobject.registry.Registry"><code class="xref py py-class docutils literal notranslate"><span class="pre">windows.winobject.registry.Registry</span></code></a></p>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.services">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">services</span></span><a class="headerlink" href="#windows.winobject.system.System.services" title="Link to this definition"></a></dt>
<dd><p>An object to query, list and explore services</p>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p><a class="reference internal" href="service.html#windows.winobject.service.ServiceManager" title="windows.winobject.service.ServiceManager"><code class="xref py py-class docutils literal notranslate"><span class="pre">ServiceManager</span></code></a></p>
</dd>
</dl>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.task_scheduler">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">task_scheduler</span></span><a class="headerlink" href="#windows.winobject.system.System.task_scheduler" title="Link to this definition"></a></dt>
<dd><p>An object able to manage scheduled tasks on the local system</p>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p><a class="reference internal" href="task_scheduler.html#windows.winobject.task_scheduler.TaskService" title="windows.winobject.task_scheduler.TaskService"><code class="xref py py-class docutils literal notranslate"><span class="pre">TaskService</span></code></a></p>
</dd>
</dl>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.threads">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">threads</span></span><a class="headerlink" href="#windows.winobject.system.System.threads" title="Link to this definition"></a></dt>
<dd><p>The list of running threads</p>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p>[<a class="reference internal" href="process.html#windows.winobject.process.WinThread" title="windows.winobject.process.WinThread"><code class="xref py py-class docutils literal notranslate"><span class="pre">WinThread</span></code></a>] A list of Thread</p>
</dd>
</dl>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.version">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">version</span></span><a class="headerlink" href="#windows.winobject.system.System.version" title="Link to this definition"></a></dt>
<dd><p>The version of the system</p>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p>(<code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code>, <code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code>) (Major, Minor)</p>
</dd>
</dl>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.version_name">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">version_name</span></span><a class="headerlink" href="#windows.winobject.system.System.version_name" title="Link to this definition"></a></dt>
<dd><p>The name of the system version, values are:</p>
<blockquote>
<div><ul class="simple">
<li><p>Windows Server 2025</p></li>
<li><p>Windows 11 Version 24H2</p></li>
<li><p>Windows 11 Version 23H2</p></li>
<li><p>Windows 11 Version 22H2</p></li>
<li><p>Windows 11 Version 21H2</p></li>
<li><p>Windows 10 Version 22H2</p></li>
<li><p>Windows 10 Version 21H2</p></li>
<li><p>Windows Server 2022</p></li>
<li><p>Windows 10 Version 21H1</p></li>
<li><p>Windows 10 Version 20H2</p></li>
<li><p>Windows 10 Version 2004</p></li>
<li><p>Windows 10 Version 1909</p></li>
<li><p>Windows 10 Version 1903</p></li>
<li><p>Windows Server 2019</p></li>
<li><p>Windows 10 Version 1809</p></li>
<li><p>Windows 10 Version 1803</p></li>
<li><p>Windows 10 Version 1709</p></li>
<li><p>Windows 10 Version 1703</p></li>
<li><p>Windows 10 Version 1607</p></li>
<li><p>Windows 10 Version 1511</p></li>
<li><p>Windows 10 Version 1507</p></li>
<li><p>Windows Server 2016</p></li>
<li><p>Windows Server 2012 R2</p></li>
<li><p>Windows 8.1</p></li>
<li><p>Windows Server 2012</p></li>
<li><p>Windows 8</p></li>
<li><p>Windows Server 2008</p></li>
<li><p>Windows 7</p></li>
<li><p>Windows Server 2008</p></li>
<li><p>Windows Vista</p></li>
<li><p>Windows XP Professional x64 Edition</p></li>
<li><p>Unknown: version (5.2) + is_workstation + bitness == 32 (dont even know if possible..)</p></li>
<li><p>Windows Server 2003 R2</p></li>
<li><p>Windows Server 2003</p></li>
<li><p>Windows XP</p></li>
<li><p>Windows 2000</p></li>
<li><p>“Unknown Windows 10+ &lt;versionstr={0} | is_workstation={1}&gt;”.format(self.versionstr, is_workstation)</p></li>
<li><p>“Unknown Windows &lt;version={0} | is_workstation={1}&gt;”.format(version, is_workstation)</p></li>
</ul>
</div></blockquote>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p><code class="xref py py-class docutils literal notranslate"><span class="pre">unicode</span></code></p>
</dd>
</dl>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.system.System.wmi">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">wmi</span></span><a class="headerlink" href="#windows.winobject.system.System.wmi" title="Link to this definition"></a></dt>
<dd><p>An object to perform wmi requests to various namespaces</p>
<dl class="field-list simple">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p><a class="reference internal" href="wmi.html#windows.winobject.wmi.WmiManager" title="windows.winobject.wmi.WmiManager"><code class="xref py py-class docutils literal notranslate"><span class="pre">WmiManager</span></code></a></p>
</dd>
</dl>
</dd></dl>
</dd></dl>
</section>
</section>
<div class="clearer"></div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<div>
<h3><a href="index.html">Table of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">1. The <code class="docutils literal notranslate"><span class="pre">windows</span></code> module</a><ul>
<li><a class="reference internal" href="#the-system-object">1.1. The <code class="docutils literal notranslate"><span class="pre">system</span></code> object</a><ul>
<li><a class="reference internal" href="#windows.winobject.system.System"><code class="docutils literal notranslate"><span class="pre">System</span></code></a><ul>
<li><a class="reference internal" href="#windows.winobject.system.System.bitness"><code class="docutils literal notranslate"><span class="pre">bitness</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.build_number"><code class="docutils literal notranslate"><span class="pre">build_number</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.computer_name"><code class="docutils literal notranslate"><span class="pre">computer_name</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.device_manager"><code class="docutils literal notranslate"><span class="pre">device_manager</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.display_version"><code class="docutils literal notranslate"><span class="pre">display_version</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.environ"><code class="docutils literal notranslate"><span class="pre">environ</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.etw"><code class="docutils literal notranslate"><span class="pre">etw</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.event_log"><code class="docutils literal notranslate"><span class="pre">event_log</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.handles"><code class="docutils literal notranslate"><span class="pre">handles</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.logicaldrives"><code class="docutils literal notranslate"><span class="pre">logicaldrives</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.modules"><code class="docutils literal notranslate"><span class="pre">modules</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.network"><code class="docutils literal notranslate"><span class="pre">network</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.object_manager"><code class="docutils literal notranslate"><span class="pre">object_manager</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.processes"><code class="docutils literal notranslate"><span class="pre">processes</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.product_type"><code class="docutils literal notranslate"><span class="pre">product_type</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.registry"><code class="docutils literal notranslate"><span class="pre">registry</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.services"><code class="docutils literal notranslate"><span class="pre">services</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.task_scheduler"><code class="docutils literal notranslate"><span class="pre">task_scheduler</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.threads"><code class="docutils literal notranslate"><span class="pre">threads</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.version"><code class="docutils literal notranslate"><span class="pre">version</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.version_name"><code class="docutils literal notranslate"><span class="pre">version_name</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.system.System.wmi"><code class="docutils literal notranslate"><span class="pre">wmi</span></code></a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div>
<h4>Previous topic</h4>
<p class="topless"><a href="index.html"
title="previous chapter">Welcome to PythonForWindowss documentation!</a></p>
</div>
<div>
<h4>Next topic</h4>
<p class="topless"><a href="winobject.html"
title="next chapter"><span class="section-number">2. </span>The <code class="xref py py-mod docutils literal notranslate"><span class="pre">windows</span></code> objects</a></p>
</div>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/windows.rst.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<search id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="Go" />
</form>
</div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="winobject.html" title="2. The windows objects"
>next</a> |</li>
<li class="right" >
<a href="index.html" title="Welcome to PythonForWindowss documentation!"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">PythonForWindows 1.0.3 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><span class="section-number">1. </span>The <code class="docutils literal notranslate"><span class="pre">windows</span></code> module</a></li>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2015-2020, Clement Rouault.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.3.7.
</div>
</body>
</html>