title: reading windows registry with lua
body: <p>I'm using Lua for Windows.
  Windows 8.1
  Lua 5.1</p>
  
  <p>I've added Steve Donovan's winapi module to it.
  I want to be able to read/write from the Windows registry.
  I'm getting inconsistent results with the winapi module.</p>
  
  <p>I can read <code>[[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers]]</code> using <code>winapi.open_reg_key</code>; this is in the examples file with winapi.
  If I remove "\Servers", sometimes it works, sometimes it returns null and "operation completed successfully".</p>
  
  <p>I really want to read my own key at <code>[[HKEY_LOCAL_MACHINE\SOFTWARE\LastName\MyStuff]]</code>.
  If I rename the "MyStuff" key and then use <code>winapi.create_reg_key</code>, it fails, but open_reg_key works when I rename the key back.
  I'm really at a loss.</p>
  
  <p>Is there some other binary I can use to access the windows registry?</p>