title: How to add winapi to Lua for Windows
body: <p>I've installed Lua for Windows "batteries included" 5.1.4-46.
  It doesn't have everything I want.
  I'm trying to re-write AutoIt scripts that I use on my personal PC.
  I can't find an easy way to access the windows registry.
  The <a href="http://stevedonovan.github.io/winapi/api.html" rel="nofollow">WinAPI module by Steve Donovan</a> looks like it will give me what I want.
  I also want to be able to retrieve file attributes in order to determine if a directory is a junction.</p>
  
  <p>I realize my real issues are not WinAPI, but if I learn how to add it to Lua for Windows, I can hopefully add other Lua addons.
  How do I add WinAPI to the Lua installation from Lua for Windows?</p>
  
  <p>Edit:  I've found a binary winapi.dll for Lua 5.1 lua for windows.
  <a href="http://lua-users.org/lists/lua-l/2012-01/msg00263.html" rel="nofollow">enter link description here</a></p>
  
  <p>I copied it to the "Lua\5.1\clibs" folder.  I added require("winapi") to the top of a short program.  I had to exit and restart SciTE editor and now it appears to be working.</p>