Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test_5_1_14.lua « test - github.com/windirstat/lua-winreg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a5fb4093f9e1ebfb9c2073b6c1ed7c0ad0d9eca5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
local winreg = require "winreg"

local p = [[HKEY_LOCAL_MACHINE\SOFTWARE]]

local key64 = assert(winreg.openkey(p, 'r64'))
local key32 = assert(winreg.openkey(p, 'r32'))

function DumpKeys(hkey)
  for name in hkey:enumvalue() do
    result, type = hkey:getvalue(name)
    print(name, result, type)
  end
end

print('X64:')
DumpKeys(key64)
print("---------------------------------")
print('X32:')
DumpKeys(key32)
print("---------------------------------")