]> git.eshelyaron.com Git - emacs.git/commit
Allow access to MS-Windows Registry from Lisp programs
authorEli Zaretskii <eliz@gnu.org>
Tue, 29 May 2018 17:52:17 +0000 (20:52 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 29 May 2018 17:52:17 +0000 (20:52 +0300)
commit5be83e343f9f0f3487793b54ff95bc89ee6b824a
treede6c30ce8ef10deb795a9d391a9769acda6c92f0
parentfd6f08840eb095465dfe555785eee228306ab876
Allow access to MS-Windows Registry from Lisp programs

* src/w32.c (g_b_init_reg_open_key_ex_w)
(g_b_init_reg_query_value_ex_w)
(g_b_init_expand_environment_strings_w): New init flags.
(globals_of_w32): Initialize them at startup.
(RegOpenKeyExW_Proc, RegQueryValueExW_Proc)
(ExpandEnvironmentStringsW_Proc): New function typedefs.
(reg_open_key_ex_w, reg_query_value_ex_w)
(expand_environment_strings_w): New wrapper function.
(w32_read_registry): New function.
* src/w32fns.c (Fw32_read_registry) [WINDOWSNT]: New primitive.
(syms_of_w32fns) [WINDOWSNT]: Defsubr it.  DEFSYM "HKLM", "HKCU",
etc. root keys.

* etc/NEWS: Mention the new primitive.
etc/NEWS
src/w32.c
src/w32.h
src/w32fns.c