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

186 lines
11 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>14. windows.generated_def generated Windows defines and structures &#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="14.1. WinDef" href="windef_generated.html" />
<link rel="prev" title="13. windows.rpc ALPC-based Windows RPC" href="rpc.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="windef_generated.html" title="14.1. WinDef"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="rpc.html" title="13. windows.rpc ALPC-based Windows RPC"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">PythonForWindows 0.5 documentation</a> &#187;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="module-windows.generated_def">
<span id="windows-generated-def-generated-windows-defines-and-structures"></span><h1>14. <code class="docutils literal notranslate"><span class="pre">windows.generated_def</span></code> generated Windows defines and structures<a class="headerlink" href="#module-windows.generated_def" title="Permalink to this headline"></a></h1>
<p><a class="reference internal" href="#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> contains <code class="docutils literal notranslate"><span class="pre">Python</span></code> files generated by <code class="docutils literal notranslate"><span class="pre">ctypes_generation/</span></code>.</p>
<p>Those generated files includes:</p>
<blockquote>
<div><ul class="simple">
<li>some Windows structures and enums</li>
<li>some Windows defines including some <code class="docutils literal notranslate"><span class="pre">NTSTATUS</span></code></li>
<li>some Windows function prototypes</li>
</ul>
</div></blockquote>
<p>Each value in <code class="docutils literal notranslate"><span class="pre">windef</span></code> and <code class="docutils literal notranslate"><span class="pre">ntstatus</span></code> is a <a class="reference internal" href="#windows.generated_def.Flag" title="windows.generated_def.Flag"><code class="xref py py-class docutils literal notranslate"><span class="pre">Flag</span></code></a> or a <a class="reference internal" href="#windows.generated_def.StrFlag" title="windows.generated_def.StrFlag"><code class="xref py py-class docutils literal notranslate"><span class="pre">StrFlag</span></code></a>.</p>
<p>Here is every generated definition by type:</p>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="windef_generated.html">14.1. WinDef</a></li>
<li class="toctree-l1"><a class="reference internal" href="ntstatus_generated.html">14.2. Ntstatus</a></li>
<li class="toctree-l1"><a class="reference internal" href="winstructs_generated.html">14.3. Winstructs</a></li>
<li class="toctree-l1"><a class="reference internal" href="winstructs_generated.html#winenums">14.4. WinEnums</a></li>
<li class="toctree-l1"><a class="reference internal" href="winerror_generated.html">14.5. WinError</a></li>
</ul>
</div>
<dl class="class">
<dt id="windows.generated_def.Flag">
<em class="property">class </em><code class="descclassname">windows.generated_def.</code><code class="descname">Flag</code><a class="reference internal" href="_modules/windows/generated_def/flag.html#Flag"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#windows.generated_def.Flag" title="Permalink to this definition"></a></dt>
<dd><p>A <a class="reference external" href="https://docs.python.org/2.7/library/functions.html#long" title="(in Python v2.7)"><code class="xref py py-class docutils literal notranslate"><span class="pre">long</span></code></a> with a name</p>
</dd></dl>
<dl class="class">
<dt id="windows.generated_def.StrFlag">
<em class="property">class </em><code class="descclassname">windows.generated_def.</code><code class="descname">StrFlag</code><a class="headerlink" href="#windows.generated_def.StrFlag" title="Permalink to this definition"></a></dt>
<dd><p>A <a class="reference external" href="https://docs.python.org/2.7/library/functions.html#str" title="(in Python v2.7)"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></a> with a name</p>
</dd></dl>
<div class="section" id="example">
<h2>14.6. Example<a class="headerlink" href="#example" title="Permalink to this headline"></a></h2>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">windows.generated_def</span>
<span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">windows.generated_def</span> <span class="kn">as</span> <span class="nn">gdef</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">gdef</span>
<span class="go">&lt;module &#39;windows.generated_def&#39; from &#39;c:\users\hakril\documents\work\pythonforwindows\windows\generated_def\__init__.pyc&#39;&gt;</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">gdef</span><span class="o">.</span><span class="n">PAGE_EXECUTE_READWRITE</span>
<span class="go">PAGE_EXECUTE_READWRITE(0x40L)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">gdef</span><span class="o">.</span><span class="n">PAGE_EXECUTE_READWRITE</span> <span class="o">==</span> <span class="mh">0x40</span>
<span class="go">True</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">gdef</span><span class="o">.</span><span class="n">PAGE_EXECUTE_READWRITE</span> <span class="o">+</span> <span class="mi">1</span>
<span class="go">65L</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">gdef</span><span class="o">.</span><span class="n">STATUS_ACCESS_VIOLATION</span>
<span class="go">STATUS_ACCESS_VIOLATION(0xc0000005L)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">gdef</span><span class="o">.</span><span class="n">LDR_DATA_TABLE_ENTRY</span>
<span class="go">&lt;class &#39;windows.generated_def.winstructs._LDR_DATA_TABLE_ENTRY&#39;&gt;</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">gdef</span><span class="o">.</span><span class="n">LDR_DATA_TABLE_ENTRY</span><span class="o">.</span><span class="n">_fields_</span>
<span class="go">[(&#39;Reserved1&#39;, &lt;class &#39;windows.generated_def.winstructs.c_void_p_Array_2&#39;&gt;), ...]</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">gdef</span><span class="o">.</span><span class="n">MEMORY_INFORMATION_CLASS</span>
<span class="go">&lt;class &#39;windows.generated_def.winstructs._MEMORY_INFORMATION_CLASS&#39;&gt;</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">gdef</span><span class="o">.</span><span class="n">MEMORY_INFORMATION_CLASS</span><span class="o">.</span><span class="n">values</span>
<span class="go">[_MEMORY_INFORMATION_CLASS.MemoryBasicInformation(0x0L), _MEMORY_INFORMATION_CLASS.MemoryWorkingSetList(0x1L),</span>
<span class="go">_MEMORY_INFORMATION_CLASS.MemorySectionName(0x2L), _MEMORY_INFORMATION_CLASS.MemoryBasicVlmInformation(0x3L),</span>
<span class="go">_MEMORY_INFORMATION_CLASS.MemoryWorkingSetListEx(0x4L)]</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">gdef</span><span class="o">.</span><span class="n">MemoryBasicInformation</span>
<span class="go">_MEMORY_INFORMATION_CLASS.MemoryBasicInformation(0x0L)</span>
</pre></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h3><a href="index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">14. <code class="docutils literal notranslate"><span class="pre">windows.generated_def</span></code> generated Windows defines and structures</a><ul>
<li><a class="reference internal" href="#example">14.6. Example</a></li>
</ul>
</li>
</ul>
<h4>Previous topic</h4>
<p class="topless"><a href="rpc.html"
title="previous chapter">13. <code class="docutils literal notranslate"><span class="pre">windows.rpc</span></code> ALPC-based Windows RPC</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="windef_generated.html"
title="next chapter">14.1. WinDef</a></p>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/generated.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="windef_generated.html" title="14.1. WinDef"
>next</a> |</li>
<li class="right" >
<a href="rpc.html" title="13. windows.rpc ALPC-based Windows RPC"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">PythonForWindows 0.5 documentation</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>