Popular recipes tagged "registry" but not "win32api"http://code.activestate.com/recipes/tags/registry-win32api/2012-11-19T08:49:26-08:00ActiveState Code RecipesRetrieve codecs (Ruby) 2012-11-19T08:49:26-08:00greg zakharovhttp://code.activestate.com/recipes/users/4184115/http://code.activestate.com/recipes/578340-retrieve-codecs/ <p style="color: grey"> Ruby recipe 578340 by <a href="/recipes/users/4184115/">greg zakharov</a> (<a href="/recipes/tags/codecs/">codecs</a>, <a href="/recipes/tags/ironruby/">ironruby</a>, <a href="/recipes/tags/registry/">registry</a>). </p> <p>On WinXP (there is no other Windows in my VMWare Player :) you can do it with Ruby in the next way:</p> <p>require 'win32/registry'</p> <p>Win32::Registry::HKEY_CLASSES_ROOT.open( 'CLSID{083863F1-70DE-11d0-BD40-00A0C911CE86}\Instance' ) do |reg| reg.each_key do |key| val = reg.open(key) puts val['FriendlyName'] end end</p> <p>But what about extended information, aah? I'm talking about script which shows additional data such as CLSID and codec location. With IronRuby it can be done so easy.</p> Reading all subvalues of key (Ruby) 2012-11-19T08:41:11-08:00greg zakharovhttp://code.activestate.com/recipes/users/4184115/http://code.activestate.com/recipes/578337-reading-all-subvalues-of-key/ <p style="color: grey"> Ruby recipe 578337 by <a href="/recipes/users/4184115/">greg zakharov</a> (<a href="/recipes/tags/registry/">registry</a>). </p> <p>With Ruby you can make wonders ;) This snippet shows how to read all subvalues of a key at one time.</p> collections.MutableMapping wrapper around _winreg (Python) 2010-09-01T12:20:06-07:00Daniel Stutzbachhttp://code.activestate.com/recipes/users/4174048/http://code.activestate.com/recipes/577381-collectionsmutablemapping-wrapper-around-_winreg/ <p style="color: grey"> Python recipe 577381 by <a href="/recipes/users/4174048/">Daniel Stutzbach</a> (<a href="/recipes/tags/registry/">registry</a>, <a href="/recipes/tags/winreg/">winreg</a>, <a href="/recipes/tags/_winreg/">_winreg</a>). </p> <p>The _winreg module is a thin wrapper around the Windows C API to the Windows Registry. As a thin wrapper, it's not very Pythonic. This recipe defines a class using the MutableMapping ABC to create a dictionary-like interface to the Windows Registry.</p> Win Registry module (Python) 2010-07-20T14:30:04-07:00Louis RIVIEREhttp://code.activestate.com/recipes/users/4035877/http://code.activestate.com/recipes/502268-win-registry-module/ <p style="color: grey"> Python recipe 502268 by <a href="/recipes/users/4035877/">Louis RIVIERE</a> (<a href="/recipes/tags/registry/">registry</a>, <a href="/recipes/tags/system/">system</a>, <a href="/recipes/tags/windows/">windows</a>). Revision 5. </p> <p>_winreg module wrapper. Provides easy access, walking and creation/modification of keys and values. Tested with Win98 and XP (admin)</p>