Files
2025-01-07 18:29:36 +01:00

207 lines
11 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>2.9. Volume The logical drives &#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.10. WMI Make request to WMI" href="wmi.html" />
<link rel="prev" title="2.8. Service" href="service.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="wmi.html" title="2.10. WMI Make request to WMI"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="service.html" title="2.8. Service"
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-1"><a href="winobject.html" accesskey="U"><span class="section-number">2. </span>The <code class="xref py py-mod docutils literal notranslate"><span class="pre">windows</span></code> objects</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><span class="section-number">2.9. </span>Volume The logical drives</a></li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<section id="volume-the-logical-drives">
<h1><span class="section-number">2.9. </span>Volume The logical drives<a class="headerlink" href="#volume-the-logical-drives" title="Link to this heading"></a></h1>
<p>The list of logical drives is accessible via <a class="reference internal" href="windows.html#windows.winobject.system.System.logicaldrives" title="windows.winobject.system.System.logicaldrives"><code class="xref py py-attr docutils literal notranslate"><span class="pre">windows.system.logicaldrives</span></code></a></p>
<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.volume">
<dt class="sig sig-object py" id="windows.winobject.volume.LogicalDrive">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">windows.winobject.volume.</span></span><span class="sig-name descname"><span class="pre">LogicalDrive</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">name</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/windows/winobject/volume.html#LogicalDrive"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#windows.winobject.volume.LogicalDrive" title="Link to this definition"></a></dt>
<dd><dl class="py data">
<dt class="sig sig-object py" id="windows.winobject.volume.LogicalDrive.name">
<span class="sig-name descname"><span class="pre">name</span></span><a class="headerlink" href="#windows.winobject.volume.LogicalDrive.name" title="Link to this definition"></a></dt>
<dd><p>Name of the logical drive</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.volume.LogicalDrive.handle">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">handle</span></span><a class="headerlink" href="#windows.winobject.volume.LogicalDrive.handle" title="Link to this definition"></a></dt>
<dd><p>An handle on the object</p>
<dl class="field-list">
<dt class="field-odd">Type<span class="colon">:</span></dt>
<dd class="field-odd"><p>HANDLE</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>The handle is automaticaly closed when the object is destroyed</p>
</div>
</dd>
</dl>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="windows.winobject.volume.LogicalDrive.path">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">path</span></span><a class="headerlink" href="#windows.winobject.volume.LogicalDrive.path" title="Link to this definition"></a></dt>
<dd><p>The target path of the device</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.volume.LogicalDrive.type">
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">type</span></span><a class="headerlink" href="#windows.winobject.volume.LogicalDrive.type" title="Link to this definition"></a></dt>
<dd><p>The type of drive, values are:</p>
<blockquote>
<div><ul class="simple">
<li><p>DRIVE_UNKNOWN(0x0L)</p></li>
<li><p>DRIVE_NO_ROOT_DIR(0x1L)</p></li>
<li><p>DRIVE_REMOVABLE(0x2L)</p></li>
<li><p>DRIVE_FIXED(0x3L)</p></li>
<li><p>DRIVE_REMOTE(0x4L)</p></li>
<li><p>DRIVE_CDROM(0x5L)</p></li>
<li><p>DRIVE_RAMDISK(0x6L)</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 method">
<dt class="sig sig-object py" id="windows.winobject.volume.LogicalDrive.wait">
<span class="sig-name descname"><span class="pre">wait</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">timeout</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">INFINITE(0xffffffff)</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#windows.winobject.volume.LogicalDrive.wait" title="Link to this definition"></a></dt>
<dd><p>Wait for the object</p>
</dd></dl>
</dd></dl>
</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="#">2.9. Volume The logical drives</a><ul>
<li><a class="reference internal" href="#windows.winobject.volume.LogicalDrive"><code class="docutils literal notranslate"><span class="pre">LogicalDrive</span></code></a><ul>
<li><a class="reference internal" href="#windows.winobject.volume.LogicalDrive.name"><code class="docutils literal notranslate"><span class="pre">name</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.volume.LogicalDrive.handle"><code class="docutils literal notranslate"><span class="pre">handle</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.volume.LogicalDrive.path"><code class="docutils literal notranslate"><span class="pre">path</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.volume.LogicalDrive.type"><code class="docutils literal notranslate"><span class="pre">type</span></code></a></li>
<li><a class="reference internal" href="#windows.winobject.volume.LogicalDrive.wait"><code class="docutils literal notranslate"><span class="pre">wait()</span></code></a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div>
<h4>Previous topic</h4>
<p class="topless"><a href="service.html"
title="previous chapter"><span class="section-number">2.8. </span>Service</a></p>
</div>
<div>
<h4>Next topic</h4>
<p class="topless"><a href="wmi.html"
title="next chapter"><span class="section-number">2.10. </span>WMI Make request to WMI</a></p>
</div>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/volume.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="wmi.html" title="2.10. WMI Make request to WMI"
>next</a> |</li>
<li class="right" >
<a href="service.html" title="2.8. Service"
>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-1"><a href="winobject.html" ><span class="section-number">2. </span>The <code class="xref py py-mod docutils literal notranslate"><span class="pre">windows</span></code> objects</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><span class="section-number">2.9. </span>Volume The logical drives</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>