Latest recipes tagged "win32api"http://code.activestate.com/recipes/tags/win32api/new/2013-10-15T07:30:39-07:00ActiveState Code RecipesGet a value un windows registry (Python)
2013-10-15T07:30:39-07:00Garel Alexhttp://code.activestate.com/recipes/users/2757636/http://code.activestate.com/recipes/578689-get-a-value-un-windows-registry/
<p style="color: grey">
Python
recipe 578689
by <a href="/recipes/users/2757636/">Garel Alex</a>
(<a href="/recipes/tags/registry/">registry</a>, <a href="/recipes/tags/win32api/">win32api</a>, <a href="/recipes/tags/windows/">windows</a>).
</p>
<p>A small function to get a value in windows registry from its key path and value name.</p>
<p>Note that recipe <a href="http://code.activestate.com/recipes/502268/" rel="nofollow">http://code.activestate.com/recipes/502268/</a> gives a more complete solution.</p>
Recursively querying for registry subkeys (Python)
2009-07-28T03:23:29-07:00Heinz Hermannhttp://code.activestate.com/recipes/users/4171265/http://code.activestate.com/recipes/576860-recursively-querying-for-registry-subkeys/
<p style="color: grey">
Python
recipe 576860
by <a href="/recipes/users/4171265/">Heinz Hermann</a>
(<a href="/recipes/tags/regdeletetree/">regdeletetree</a>, <a href="/recipes/tags/registry/">registry</a>, <a href="/recipes/tags/substitute/">substitute</a>, <a href="/recipes/tags/win32api/">win32api</a>).
Revision 2.
</p>
<p>Because the Windows XP API does not support the RegDeleteTree function, the programmer has to query for subkeys of a registry key recursively, before he can delete it. This functions returns all subkeys of a registry key in deleteable order, which means the deepest subkey is the first in the list. </p>