2017-08-18 11:29:54 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2017 Hugh McMaster
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __REG_H__
|
|
|
|
#define __REG_H__
|
|
|
|
|
|
|
|
#include "resource.h"
|
|
|
|
|
2017-08-18 11:30:04 +02:00
|
|
|
#define ARRAY_SIZE(A) (sizeof(A)/sizeof(*A))
|
2017-12-05 12:25:16 +01:00
|
|
|
#define MAX_SUBKEY_LEN 257
|
2017-08-18 11:30:04 +02:00
|
|
|
|
|
|
|
/* reg.c */
|
|
|
|
void *heap_xalloc(size_t size);
|
|
|
|
void *heap_xrealloc(void *buf, size_t size);
|
2017-12-03 07:50:15 +01:00
|
|
|
void output_writeconsole(const WCHAR *str, DWORD wlen);
|
2017-11-02 10:21:30 +01:00
|
|
|
void WINAPIV output_message(unsigned int id, ...);
|
2017-12-03 07:50:15 +01:00
|
|
|
BOOL ask_confirm(unsigned int msgid, WCHAR *reg_info);
|
2017-08-18 11:30:04 +02:00
|
|
|
HKEY path_get_rootkey(const WCHAR *path);
|
2017-12-03 07:50:24 +01:00
|
|
|
WCHAR *build_subkey_path(WCHAR *path, DWORD path_len, WCHAR *subkey_name, DWORD subkey_len);
|
2017-12-03 07:50:11 +01:00
|
|
|
BOOL parse_registry_key(const WCHAR *key, HKEY *root, WCHAR **path, WCHAR **long_key);
|
2017-08-18 11:30:04 +02:00
|
|
|
|
|
|
|
/* import.c */
|
2017-08-18 11:29:54 +02:00
|
|
|
int reg_import(const WCHAR *filename);
|
|
|
|
|
2017-12-03 07:50:09 +01:00
|
|
|
/* export.c */
|
|
|
|
int reg_export(int argc, WCHAR *argv[]);
|
|
|
|
|
2017-08-18 11:29:54 +02:00
|
|
|
#endif /* __REG_H__ */
|