Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regkey:set_value only writes part of string #22

Open
cubenicke opened this issue Sep 25, 2015 · 0 comments
Open

regkey:set_value only writes part of string #22

cubenicke opened this issue Sep 25, 2015 · 0 comments

Comments

@cubenicke
Copy link

Simple sample to illustrate the issue with only part of strings written.

require "winapi"

local key, err = winapi.open_reg_key([[HKEY_USERS\S-1-5-21-3530694592-716403133-1610703870-44512\Software\Microsoft\Windows\CurrentVersion\Policies\System]], true)

if not key then return print('bad key',err) end

local str= [[c:\photo\img_4826.jpg]]

key:set_value('wallpaper', str, winapi.REG_SZ)

print(key:get_value('wallpaper', winapi.REG_SZ))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant