diff options
author | Alexey Melnichuk <alexeymelnichuck@gmail.com> | 2016-11-05 17:02:14 +0300 |
---|---|---|
committer | Alexey Melnichuk <alexeymelnichuck@gmail.com> | 2016-11-05 17:02:14 +0300 |
commit | 07221a6e2eb9ef08eaee026a7c132b15204413ab (patch) | |
tree | 5011651ec5e90a293c3c0c06f8f85291c20aa20f /README.md | |
parent | 3a1c8ab327cad1771664cc6e5ddb83706f22d93a (diff) |
Add. rockspec and appveyor.yml files.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -10,7 +10,9 @@ All Rights Deserved. Use at your own risk!. Shake well before using. #Introduction
-winreg is a Lua binary module to Access Microsoft(R) Windows(R) Registry. The registry is a system-defined database that applications and Microsoft(R) Windows(R) system components use to store and retrieve configuration data.
+winreg is a Lua binary module to Access Microsoft(R) Windows(R) Registry. The registry is a
+system-defined database that applications and Microsoft(R) Windows(R) system components use to
+store and retrieve configuration data.
Load the module via the require function (make sure Lua can find the module), for example:
```lua
@@ -21,8 +23,8 @@ hkey = winreg.openkey[[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVers skey = hkey:openkey([[Explorer\Shell Folders]])
for name in skey:enumvalue() do
- print("\nname: " .. name
- .. "\npath: " .. skey:getvalue(name))
+ print("\nname: " .. name
+ .. "\npath: " .. skey:getvalue(name))
end
```
|