2008-03-19 07:36:28 +01:00
|
|
|
/*
|
|
|
|
* Copyright 2008 Andrew Riedi
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2017-08-18 11:29:54 +02:00
|
|
|
#include "reg.h"
|
2021-03-18 12:36:49 +01:00
|
|
|
#include <wine/debug.h>
|
2008-03-19 07:36:28 +01:00
|
|
|
|
2016-02-09 12:54:03 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(reg);
|
|
|
|
|
2015-10-04 21:14:46 +02:00
|
|
|
static const struct
|
|
|
|
{
|
|
|
|
HKEY key;
|
|
|
|
const WCHAR *short_name;
|
|
|
|
const WCHAR *long_name;
|
|
|
|
}
|
|
|
|
root_rels[] =
|
|
|
|
{
|
2021-03-30 14:00:16 +02:00
|
|
|
{HKEY_LOCAL_MACHINE, L"HKLM", L"HKEY_LOCAL_MACHINE"},
|
|
|
|
{HKEY_CURRENT_USER, L"HKCU", L"HKEY_CURRENT_USER"},
|
|
|
|
{HKEY_CLASSES_ROOT, L"HKCR", L"HKEY_CLASSES_ROOT"},
|
|
|
|
{HKEY_USERS, L"HKU", L"HKEY_USERS"},
|
|
|
|
{HKEY_CURRENT_CONFIG, L"HKCC", L"HKEY_CURRENT_CONFIG"},
|
2015-10-04 21:14:46 +02:00
|
|
|
};
|
|
|
|
|
2021-03-17 13:38:04 +01:00
|
|
|
const struct reg_type_rels type_rels[] =
|
2015-02-19 13:19:12 +01:00
|
|
|
{
|
2021-03-30 14:00:16 +02:00
|
|
|
{REG_NONE, L"REG_NONE"},
|
|
|
|
{REG_SZ, L"REG_SZ"},
|
|
|
|
{REG_EXPAND_SZ, L"REG_EXPAND_SZ"},
|
|
|
|
{REG_BINARY, L"REG_BINARY"},
|
|
|
|
{REG_DWORD, L"REG_DWORD"},
|
|
|
|
{REG_DWORD_LITTLE_ENDIAN, L"REG_DWORD_LITTLE_ENDIAN"},
|
|
|
|
{REG_DWORD_BIG_ENDIAN, L"REG_DWORD_BIG_ENDIAN"},
|
|
|
|
{REG_MULTI_SZ, L"REG_MULTI_SZ"},
|
2015-02-19 13:19:12 +01:00
|
|
|
};
|
|
|
|
|
2017-12-03 07:50:15 +01:00
|
|
|
void output_writeconsole(const WCHAR *str, DWORD wlen)
|
2008-03-19 07:36:28 +01:00
|
|
|
{
|
|
|
|
DWORD count, ret;
|
|
|
|
|
2016-02-09 12:54:02 +01:00
|
|
|
ret = WriteConsoleW(GetStdHandle(STD_OUTPUT_HANDLE), str, wlen, &count, NULL);
|
2008-03-19 07:36:28 +01:00
|
|
|
if (!ret)
|
|
|
|
{
|
|
|
|
DWORD len;
|
|
|
|
char *msgA;
|
|
|
|
|
2011-08-24 14:29:31 +02:00
|
|
|
/* On Windows WriteConsoleW() fails if the output is redirected. So fall
|
|
|
|
* back to WriteFile(), assuming the console encoding is still the right
|
|
|
|
* one in that case.
|
|
|
|
*/
|
2016-02-09 12:54:02 +01:00
|
|
|
len = WideCharToMultiByte(GetConsoleOutputCP(), 0, str, wlen, NULL, 0, NULL, NULL);
|
2021-03-24 09:08:58 +01:00
|
|
|
msgA = malloc(len);
|
2008-03-19 07:36:28 +01:00
|
|
|
|
2016-02-09 12:54:02 +01:00
|
|
|
WideCharToMultiByte(GetConsoleOutputCP(), 0, str, wlen, msgA, len, NULL, NULL);
|
2008-03-19 07:36:28 +01:00
|
|
|
WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), msgA, len, &count, FALSE);
|
2021-03-24 09:08:58 +01:00
|
|
|
free(msgA);
|
2008-03-19 07:36:28 +01:00
|
|
|
}
|
2016-02-09 12:54:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static void output_formatstring(const WCHAR *fmt, __ms_va_list va_args)
|
|
|
|
{
|
2016-02-09 12:54:03 +01:00
|
|
|
WCHAR *str;
|
|
|
|
DWORD len;
|
2008-03-19 07:36:28 +01:00
|
|
|
|
2016-02-09 12:54:03 +01:00
|
|
|
len = FormatMessageW(FORMAT_MESSAGE_FROM_STRING|FORMAT_MESSAGE_ALLOCATE_BUFFER,
|
|
|
|
fmt, 0, 0, (WCHAR *)&str, 0, &va_args);
|
2020-05-13 22:06:51 +02:00
|
|
|
if (len == 0 && GetLastError() != ERROR_NO_WORK_DONE)
|
2016-02-09 12:54:03 +01:00
|
|
|
{
|
|
|
|
WINE_FIXME("Could not format string: le=%u, fmt=%s\n", GetLastError(), wine_dbgstr_w(fmt));
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
output_writeconsole(str, len);
|
|
|
|
LocalFree(str);
|
2008-03-19 07:36:28 +01:00
|
|
|
}
|
|
|
|
|
2017-11-02 10:21:30 +01:00
|
|
|
void WINAPIV output_message(unsigned int id, ...)
|
2008-03-19 07:36:28 +01:00
|
|
|
{
|
2021-03-24 09:09:02 +01:00
|
|
|
WCHAR *fmt = NULL;
|
|
|
|
int len;
|
2016-02-09 12:54:04 +01:00
|
|
|
__ms_va_list va_args;
|
2008-03-19 07:36:28 +01:00
|
|
|
|
2021-03-24 09:09:02 +01:00
|
|
|
if (!(len = LoadStringW(GetModuleHandleW(NULL), id, (WCHAR *)&fmt, 0)))
|
2016-02-09 12:54:04 +01:00
|
|
|
{
|
|
|
|
WINE_FIXME("LoadString failed with %d\n", GetLastError());
|
|
|
|
return;
|
|
|
|
}
|
2021-03-24 09:09:02 +01:00
|
|
|
|
|
|
|
len++;
|
|
|
|
fmt = malloc(len * sizeof(WCHAR));
|
|
|
|
if (!fmt) return;
|
|
|
|
|
|
|
|
LoadStringW(GetModuleHandleW(NULL), id, fmt, len);
|
|
|
|
|
2016-02-09 12:54:04 +01:00
|
|
|
__ms_va_start(va_args, id);
|
|
|
|
output_formatstring(fmt, va_args);
|
|
|
|
__ms_va_end(va_args);
|
2021-03-24 09:09:02 +01:00
|
|
|
|
|
|
|
free(fmt);
|
2016-02-09 12:54:02 +01:00
|
|
|
}
|
|
|
|
|
2021-03-17 13:38:04 +01:00
|
|
|
void WINAPIV output_string(const WCHAR *fmt, ...)
|
2016-02-09 12:54:02 +01:00
|
|
|
{
|
|
|
|
__ms_va_list va_args;
|
|
|
|
|
|
|
|
__ms_va_start(va_args, fmt);
|
|
|
|
output_formatstring(fmt, va_args);
|
|
|
|
__ms_va_end(va_args);
|
2008-03-19 07:36:28 +01:00
|
|
|
}
|
|
|
|
|
2016-02-09 12:54:07 +01:00
|
|
|
/* ask_confirm() adapted from programs/cmd/builtins.c */
|
2017-12-03 07:50:15 +01:00
|
|
|
BOOL ask_confirm(unsigned int msgid, WCHAR *reg_info)
|
2016-02-09 12:54:07 +01:00
|
|
|
{
|
|
|
|
HMODULE hmod;
|
|
|
|
WCHAR Ybuffer[4];
|
|
|
|
WCHAR Nbuffer[4];
|
2016-02-10 12:23:17 +01:00
|
|
|
WCHAR defval[32];
|
2016-02-09 12:54:07 +01:00
|
|
|
WCHAR answer[MAX_PATH];
|
2016-03-02 11:31:19 +01:00
|
|
|
WCHAR *str;
|
2016-02-09 12:54:07 +01:00
|
|
|
DWORD count;
|
|
|
|
|
|
|
|
hmod = GetModuleHandleW(NULL);
|
|
|
|
LoadStringW(hmod, STRING_YES, Ybuffer, ARRAY_SIZE(Ybuffer));
|
|
|
|
LoadStringW(hmod, STRING_NO, Nbuffer, ARRAY_SIZE(Nbuffer));
|
2016-02-10 12:23:17 +01:00
|
|
|
LoadStringW(hmod, STRING_DEFAULT_VALUE, defval, ARRAY_SIZE(defval));
|
2016-02-09 12:54:07 +01:00
|
|
|
|
2016-05-24 14:48:15 +02:00
|
|
|
str = (reg_info && *reg_info) ? reg_info : defval;
|
2016-03-02 11:31:19 +01:00
|
|
|
|
2016-02-09 12:54:07 +01:00
|
|
|
while (1)
|
|
|
|
{
|
2016-03-02 11:31:19 +01:00
|
|
|
output_message(msgid, str);
|
2016-02-09 12:54:07 +01:00
|
|
|
output_message(STRING_YESNO);
|
|
|
|
ReadConsoleW(GetStdHandle(STD_INPUT_HANDLE), answer, ARRAY_SIZE(answer), &count, NULL);
|
2019-04-01 11:44:50 +02:00
|
|
|
answer[0] = towupper(answer[0]);
|
2016-02-09 12:54:07 +01:00
|
|
|
if (answer[0] == Ybuffer[0])
|
|
|
|
return TRUE;
|
|
|
|
if (answer[0] == Nbuffer[0])
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-04 21:14:46 +02:00
|
|
|
static inline BOOL path_rootname_cmp(const WCHAR *input_path, const WCHAR *rootkey_name)
|
2014-11-19 08:54:41 +01:00
|
|
|
{
|
2019-04-01 11:44:50 +02:00
|
|
|
DWORD length = lstrlenW(rootkey_name);
|
2014-11-19 08:54:41 +01:00
|
|
|
|
2019-04-01 11:44:50 +02:00
|
|
|
return (!wcsnicmp(input_path, rootkey_name, length) &&
|
2015-10-04 21:14:46 +02:00
|
|
|
(input_path[length] == 0 || input_path[length] == '\\'));
|
2014-11-19 08:54:41 +01:00
|
|
|
}
|
|
|
|
|
2017-08-18 11:30:04 +02:00
|
|
|
HKEY path_get_rootkey(const WCHAR *path)
|
2009-01-28 14:14:07 +01:00
|
|
|
{
|
2015-10-04 21:14:46 +02:00
|
|
|
DWORD i;
|
|
|
|
|
|
|
|
for (i = 0; i < ARRAY_SIZE(root_rels); i++)
|
|
|
|
{
|
|
|
|
if (path_rootname_cmp(path, root_rels[i].short_name) ||
|
|
|
|
path_rootname_cmp(path, root_rels[i].long_name))
|
|
|
|
return root_rels[i].key;
|
|
|
|
}
|
|
|
|
|
|
|
|
return NULL;
|
2009-01-28 14:14:07 +01:00
|
|
|
}
|
|
|
|
|
2015-02-19 13:19:10 +01:00
|
|
|
static BOOL sane_path(const WCHAR *key)
|
|
|
|
{
|
2019-04-01 11:44:50 +02:00
|
|
|
unsigned int i = lstrlenW(key);
|
2015-02-19 13:19:11 +01:00
|
|
|
|
|
|
|
if (i < 3 || (key[i - 1] == '\\' && key[i - 2] == '\\'))
|
|
|
|
{
|
2016-02-09 12:54:04 +01:00
|
|
|
output_message(STRING_INVALID_KEY);
|
2015-02-19 13:19:11 +01:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2015-02-19 13:19:10 +01:00
|
|
|
if (key[0] == '\\' && key[1] == '\\' && key[2] != '\\')
|
|
|
|
{
|
2016-02-09 12:54:04 +01:00
|
|
|
output_message(STRING_NO_REMOTE);
|
2015-02-19 13:19:10 +01:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2017-12-03 07:50:24 +01:00
|
|
|
WCHAR *build_subkey_path(WCHAR *path, DWORD path_len, WCHAR *subkey_name, DWORD subkey_len)
|
2016-04-25 13:26:38 +02:00
|
|
|
{
|
|
|
|
WCHAR *subkey_path;
|
|
|
|
|
2021-03-24 09:08:58 +01:00
|
|
|
subkey_path = malloc((path_len + subkey_len + 2) * sizeof(WCHAR));
|
2021-03-30 14:00:16 +02:00
|
|
|
swprintf(subkey_path, path_len + subkey_len + 2, L"%s\\%s", path, subkey_name);
|
2017-08-01 14:30:51 +02:00
|
|
|
|
2016-04-25 13:26:38 +02:00
|
|
|
return subkey_path;
|
|
|
|
}
|
|
|
|
|
2021-04-05 15:24:11 +02:00
|
|
|
WCHAR *get_long_key(HKEY root, WCHAR *path)
|
2016-06-15 04:31:05 +02:00
|
|
|
{
|
2021-04-21 15:24:48 +02:00
|
|
|
int i, len, path_len;
|
2016-06-15 04:31:05 +02:00
|
|
|
WCHAR *long_key;
|
|
|
|
|
2021-04-21 15:24:48 +02:00
|
|
|
for (i = 0; i < ARRAY_SIZE(root_rels); i++)
|
2016-06-15 04:31:05 +02:00
|
|
|
{
|
|
|
|
if (root == root_rels[i].key)
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2019-04-01 11:44:50 +02:00
|
|
|
len = lstrlenW(root_rels[i].long_name);
|
2016-06-15 04:31:05 +02:00
|
|
|
|
|
|
|
if (!path)
|
|
|
|
{
|
2021-03-24 09:08:58 +01:00
|
|
|
long_key = malloc((len + 1) * sizeof(WCHAR));
|
2019-04-01 11:44:50 +02:00
|
|
|
lstrcpyW(long_key, root_rels[i].long_name);
|
2016-06-15 04:31:05 +02:00
|
|
|
return long_key;
|
|
|
|
}
|
|
|
|
|
2021-04-21 15:24:48 +02:00
|
|
|
path_len = lstrlenW(path);
|
|
|
|
|
|
|
|
if (path[path_len - 1] == '\\')
|
|
|
|
{
|
|
|
|
path[path_len - 1] = 0;
|
|
|
|
path_len--;
|
|
|
|
}
|
|
|
|
|
|
|
|
len += path_len + 1; /* add one for the concatenating backslash */
|
2021-03-24 09:08:58 +01:00
|
|
|
long_key = malloc((len + 1) * sizeof(WCHAR));
|
2021-03-30 14:00:16 +02:00
|
|
|
swprintf(long_key, len + 1, L"%s\\%s", root_rels[i].long_name, path);
|
2016-06-15 04:31:05 +02:00
|
|
|
return long_key;
|
|
|
|
}
|
|
|
|
|
2021-04-05 15:24:11 +02:00
|
|
|
BOOL parse_registry_key(const WCHAR *key, HKEY *root, WCHAR **path)
|
2016-06-15 04:30:53 +02:00
|
|
|
{
|
|
|
|
if (!sane_path(key))
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
*root = path_get_rootkey(key);
|
|
|
|
if (!*root)
|
|
|
|
{
|
2021-04-20 15:21:58 +02:00
|
|
|
output_message(STRING_INVALID_SYSTEM_KEY);
|
2016-06-15 04:30:53 +02:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2021-04-20 15:21:59 +02:00
|
|
|
*path = wcschr(key, '\\');
|
|
|
|
|
|
|
|
if (!*path)
|
|
|
|
return TRUE;
|
|
|
|
|
|
|
|
(*path)++;
|
|
|
|
|
|
|
|
if (!**path)
|
|
|
|
{
|
|
|
|
output_message(STRING_INVALID_SYSTEM_KEY);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2016-06-15 04:30:53 +02:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2021-04-01 14:20:48 +02:00
|
|
|
BOOL is_char(const WCHAR s, const WCHAR c)
|
|
|
|
{
|
|
|
|
return (s == c || s == towupper(c));
|
|
|
|
}
|
|
|
|
|
2021-03-18 12:36:48 +01:00
|
|
|
BOOL is_switch(const WCHAR *s, const WCHAR c)
|
2016-06-03 07:23:17 +02:00
|
|
|
{
|
2019-04-01 11:44:50 +02:00
|
|
|
if (lstrlenW(s) > 2)
|
2016-06-03 07:23:17 +02:00
|
|
|
return FALSE;
|
|
|
|
|
2021-04-01 14:20:48 +02:00
|
|
|
return ((s[0] == '/' || s[0] == '-') && is_char(s[1], c));
|
2017-12-05 12:25:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static BOOL is_help_switch(const WCHAR *s)
|
|
|
|
{
|
2021-03-18 12:36:48 +01:00
|
|
|
return (is_switch(s, '?') || is_switch(s, 'h'));
|
2016-06-03 07:23:17 +02:00
|
|
|
}
|
|
|
|
|
2016-06-03 07:23:27 +02:00
|
|
|
enum operations {
|
|
|
|
REG_ADD,
|
|
|
|
REG_DELETE,
|
2017-12-03 07:50:09 +01:00
|
|
|
REG_EXPORT,
|
2021-03-18 12:36:53 +01:00
|
|
|
REG_IMPORT,
|
2016-06-03 07:23:27 +02:00
|
|
|
REG_QUERY,
|
|
|
|
REG_INVALID
|
|
|
|
};
|
|
|
|
|
2016-08-18 13:54:27 +02:00
|
|
|
static enum operations get_operation(const WCHAR *str, int *op_help)
|
2008-03-19 07:36:28 +01:00
|
|
|
{
|
2017-08-18 11:29:54 +02:00
|
|
|
struct op_info { const WCHAR *op; int id; int help_id; };
|
2016-06-03 07:23:27 +02:00
|
|
|
|
2017-08-18 11:29:54 +02:00
|
|
|
static const struct op_info op_array[] =
|
2016-08-18 13:54:27 +02:00
|
|
|
{
|
2021-03-30 14:00:16 +02:00
|
|
|
{ L"add", REG_ADD, STRING_ADD_USAGE },
|
|
|
|
{ L"delete", REG_DELETE, STRING_DELETE_USAGE },
|
|
|
|
{ L"export", REG_EXPORT, STRING_EXPORT_USAGE },
|
|
|
|
{ L"import", REG_IMPORT, STRING_IMPORT_USAGE },
|
|
|
|
{ L"query", REG_QUERY, STRING_QUERY_USAGE },
|
2017-08-18 11:29:54 +02:00
|
|
|
{ NULL, -1, 0 }
|
|
|
|
};
|
2008-03-19 07:36:28 +01:00
|
|
|
|
2017-08-18 11:29:54 +02:00
|
|
|
const struct op_info *ptr;
|
|
|
|
|
|
|
|
for (ptr = op_array; ptr->op; ptr++)
|
2016-08-18 13:54:27 +02:00
|
|
|
{
|
2017-08-18 11:29:54 +02:00
|
|
|
if (!lstrcmpiW(str, ptr->op))
|
|
|
|
{
|
|
|
|
*op_help = ptr->help_id;
|
|
|
|
return ptr->id;
|
|
|
|
}
|
2016-08-18 13:54:27 +02:00
|
|
|
}
|
2016-06-03 07:23:27 +02:00
|
|
|
|
|
|
|
return REG_INVALID;
|
|
|
|
}
|
|
|
|
|
2019-10-17 17:05:47 +02:00
|
|
|
int __cdecl wmain(int argc, WCHAR *argvW[])
|
2016-06-03 07:23:27 +02:00
|
|
|
{
|
2021-03-30 14:00:13 +02:00
|
|
|
int op, op_help;
|
2008-03-19 07:36:28 +01:00
|
|
|
|
2016-05-24 14:48:26 +02:00
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
output_message(STRING_INVALID_SYNTAX);
|
|
|
|
output_message(STRING_REG_HELP);
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2016-06-03 07:23:17 +02:00
|
|
|
if (is_help_switch(argvW[1]))
|
2008-03-19 07:36:28 +01:00
|
|
|
{
|
2016-02-09 12:54:04 +01:00
|
|
|
output_message(STRING_USAGE);
|
2009-06-28 00:45:26 +02:00
|
|
|
return 0;
|
2008-03-19 07:36:28 +01:00
|
|
|
}
|
|
|
|
|
2016-08-18 13:54:27 +02:00
|
|
|
op = get_operation(argvW[1], &op_help);
|
2016-06-03 07:23:27 +02:00
|
|
|
|
2016-06-03 07:23:39 +02:00
|
|
|
if (op == REG_INVALID)
|
|
|
|
{
|
|
|
|
output_message(STRING_INVALID_OPTION, argvW[1]);
|
|
|
|
output_message(STRING_REG_HELP);
|
|
|
|
return 1;
|
|
|
|
}
|
2021-03-18 12:36:50 +01:00
|
|
|
else if (argc == 2) /* Valid operation, no arguments supplied */
|
2016-06-03 07:23:51 +02:00
|
|
|
{
|
|
|
|
output_message(STRING_INVALID_SYNTAX);
|
2019-04-01 11:44:50 +02:00
|
|
|
output_message(STRING_FUNC_HELP, wcsupr(argvW[1]));
|
2016-06-03 07:23:51 +02:00
|
|
|
return 1;
|
|
|
|
}
|
2021-03-18 12:36:50 +01:00
|
|
|
|
|
|
|
if (is_help_switch(argvW[2]))
|
2016-06-03 07:24:00 +02:00
|
|
|
{
|
2016-08-18 13:54:27 +02:00
|
|
|
output_message(op_help);
|
2021-04-08 14:10:54 +02:00
|
|
|
output_message(STRING_REG_VIEW_USAGE);
|
2016-06-03 07:24:00 +02:00
|
|
|
return 0;
|
|
|
|
}
|
2016-06-03 07:23:51 +02:00
|
|
|
|
2021-03-30 14:00:13 +02:00
|
|
|
if (op == REG_ADD)
|
|
|
|
return reg_add(argc, argvW);
|
|
|
|
|
2021-03-30 14:00:12 +02:00
|
|
|
if (op == REG_DELETE)
|
|
|
|
return reg_delete(argc, argvW);
|
|
|
|
|
2017-12-03 07:50:09 +01:00
|
|
|
if (op == REG_EXPORT)
|
|
|
|
return reg_export(argc, argvW);
|
|
|
|
|
2021-03-18 12:36:53 +01:00
|
|
|
if (op == REG_IMPORT)
|
|
|
|
return reg_import(argc, argvW);
|
|
|
|
|
2021-03-30 14:00:13 +02:00
|
|
|
return reg_query(argc, argvW);
|
2008-03-19 07:36:28 +01:00
|
|
|
}
|