Saved searches

Use saved searches to filter your results more quickly

Cancel Create saved search Sign up Reseting focus

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Lua binary module to Access Microsoft(R) Windows(R) Registry

Notifications You must be signed in to change notification settings

moteus/lua-winreg

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Go to file

Folders and files

Last commit message Last commit date

Latest commit

History

View all files

Repository files navigation

winreg

Jas Latrix

Copyright © 2005, 2006 Jas Latrix 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. Load the module via the require function (make sure Lua can find the module), for example:

local winreg = require"winreg" -- prints all the special folders hkey = winreg.openkey[[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]] skey = hkey:openkey([[Explorer\Shell Folders]]) for name in skey:enumvalue() do print("\nname: " .. name .. "\npath: " .. skey:getvalue(name)) end