Files
hakril-PythonForWindows/docs/build/html/service.html
T
2020-03-29 22:14:29 +02:00

173 lines
9.0 KiB
HTML
Raw 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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>2.8. Service &#8212; PythonForWindows 0.5 documentation</title>
<link rel="stylesheet" href="_static/classic.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/mbasic.css" type="text/css" />
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="2.9. Volume The logical drives" href="volume.html" />
<link rel="prev" title="2.7. Network" href="network.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="volume.html" title="2.9. Volume The logical drives"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="network.html" title="2.7. Network"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">PythonForWindows 0.5 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="winobject.html" accesskey="U">2. The <code class="docutils literal notranslate"><span class="pre">windows</span></code> objects</a> &#187;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="service">
<h1>2.8. Service<a class="headerlink" href="#service" title="Permalink to this headline"></a></h1>
<p>The list of services is accessible via <a class="reference internal" href="windows.html#windows.winobject.system.System.services" title="windows.winobject.system.System.services"><code class="xref py py-attr docutils literal notranslate"><span class="pre">windows.system.services</span></code></a></p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">See sample <a class="reference internal" href="sample.html#sample-system"><span class="std std-ref">windows.system</span></a></p>
</div>
<span class="target" id="module-windows.winobject.service"></span><dl class="class">
<dt id="windows.winobject.service.ServiceStatus">
<em class="property">class </em><code class="descclassname">windows.winobject.service.</code><code class="descname">ServiceStatus</code><span class="sig-paren">(</span><em>type</em>, <em>state</em>, <em>control_accepted</em>, <em>flags</em><span class="sig-paren">)</span><a class="headerlink" href="#windows.winobject.service.ServiceStatus" title="Permalink to this definition"></a></dt>
<dd><p><code class="docutils literal notranslate"><span class="pre">type</span></code> might be one of:</p>
<blockquote>
<div><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">SERVICE_KERNEL_DRIVER(0x1L)</span></code></li>
<li><code class="docutils literal notranslate"><span class="pre">SERVICE_FILE_SYSTEM_DRIVER(0x2L)</span></code></li>
<li><code class="docutils literal notranslate"><span class="pre">SERVICE_WIN32_OWN_PROCESS(0x10L)</span></code></li>
<li><code class="docutils literal notranslate"><span class="pre">SERVICE_WIN32_SHARE_PROCESS(0x20L)</span></code></li>
<li><code class="docutils literal notranslate"><span class="pre">SERVICE_INTERACTIVE_PROCESS(0x100L)</span></code></li>
</ul>
</div></blockquote>
<p><code class="docutils literal notranslate"><span class="pre">state</span></code> might be one of:</p>
<blockquote>
<div><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">SERVICE_STOPPED(0x1L)</span></code></li>
<li><code class="docutils literal notranslate"><span class="pre">SERVICE_START_PENDING(0x2L)</span></code></li>
<li><code class="docutils literal notranslate"><span class="pre">SERVICE_STOP_PENDING(0x3L)</span></code></li>
<li><code class="docutils literal notranslate"><span class="pre">SERVICE_RUNNING(0x4L)</span></code></li>
<li><code class="docutils literal notranslate"><span class="pre">SERVICE_CONTINUE_PENDING(0x5L)</span></code></li>
<li><code class="docutils literal notranslate"><span class="pre">SERVICE_PAUSE_PENDING(0x6L)</span></code></li>
<li><code class="docutils literal notranslate"><span class="pre">SERVICE_PAUSED(0x7L)</span></code></li>
</ul>
</div></blockquote>
<p><code class="docutils literal notranslate"><span class="pre">flags</span></code> might be one of:</p>
<blockquote>
<div><ul class="simple">
<li><code class="docutils literal notranslate"><span class="pre">0</span></code></li>
<li><code class="docutils literal notranslate"><span class="pre">SERVICE_RUNS_IN_SYSTEM_PROCESS(0x1L)</span></code></li>
</ul>
</div></blockquote>
<dl class="attribute">
<dt id="windows.winobject.service.ServiceStatus.control_accepted">
<code class="descname">control_accepted</code><a class="headerlink" href="#windows.winobject.service.ServiceStatus.control_accepted" title="Permalink to this definition"></a></dt>
<dd><p>Alias for field number 2</p>
</dd></dl>
<dl class="attribute">
<dt id="windows.winobject.service.ServiceStatus.flags">
<code class="descname">flags</code><a class="headerlink" href="#windows.winobject.service.ServiceStatus.flags" title="Permalink to this definition"></a></dt>
<dd><p>Alias for field number 3</p>
</dd></dl>
<dl class="attribute">
<dt id="windows.winobject.service.ServiceStatus.state">
<code class="descname">state</code><a class="headerlink" href="#windows.winobject.service.ServiceStatus.state" title="Permalink to this definition"></a></dt>
<dd><p>Alias for field number 1</p>
</dd></dl>
<dl class="attribute">
<dt id="windows.winobject.service.ServiceStatus.type">
<code class="descname">type</code><a class="headerlink" href="#windows.winobject.service.ServiceStatus.type" title="Permalink to this definition"></a></dt>
<dd><p>Alias for field number 0</p>
</dd></dl>
</dd></dl>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h4>Previous topic</h4>
<p class="topless"><a href="network.html"
title="previous chapter">2.7. Network</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="volume.html"
title="next chapter">2.9. Volume The logical drives</a></p>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/service.rst.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</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="volume.html" title="2.9. Volume The logical drives"
>next</a> |</li>
<li class="right" >
<a href="network.html" title="2.7. Network"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">PythonForWindows 0.5 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="winobject.html" >2. The <code class="docutils literal notranslate"><span class="pre">windows</span></code> objects</a> &#187;</li>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2015, Clement Rouault.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.5.
</div>
</body>
</html>