Modernize and simplify.
* src/main.cc (get_gpg4win_dir): New. (gpgex_server::root_dir): Remove variable and also all users. (get_locale_dir): Simplify. (get_debug_file): Simplify. (utf8_to_wchar): Remove. * src/client.cc (get_gpgconf_name): Simplify by using only get_gpg4win_dir. (default_uiserver_name): Likewise. * src/gpgex.cc (readDefaultEntry): Use gpgrt_w32_reg_get_string. * configure.ac: Require gpgrt 1.58. * src/registry.c: Remove. * src/registry.h: Remove. * src/Makefile.am (gpgex_SOURCES): Remove files.
GpgEX now uses only its install directory to find the UI-Server and
the gpgconf.exe binary. The use of Registry variables is not anymore
needed for regular operation. Well, except for registering with the
Windows Explorer.
- GnuPG-bug-id: T7040