ReactOS 0.4.15-dev-7958-gcd0bb1a
reg.h
Go to the documentation of this file.
1/*
2 * Copyright 2017 Hugh McMaster
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#ifndef __REG_H__
20#define __REG_H__
21
22#include <stdlib.h>
23#include <windows.h>
24#include "resource.h"
25
26#define MAX_SUBKEY_LEN 257
27
28/* reg.c */
31 const WCHAR *name;
32};
33
34extern const struct reg_type_rels type_rels[8];
35
36void output_writeconsole(const WCHAR *str, DWORD wlen);
37void WINAPIV output_message(unsigned int id, ...);
38void WINAPIV output_string(const WCHAR *fmt, ...);
39BOOL ask_confirm(unsigned int msgid, WCHAR *reg_info);
41WCHAR *build_subkey_path(WCHAR *path, DWORD path_len, WCHAR *subkey_name, DWORD subkey_len);
44BOOL is_char(const WCHAR s, const WCHAR c);
45BOOL is_switch(const WCHAR *s, const WCHAR c);
46
47/* add.c */
48int reg_add(int argc, WCHAR *argvW[]);
49
50/* copy.c */
51int reg_copy(int argc, WCHAR *argvW[]);
52
53/* delete.c */
54int reg_delete(int argc, WCHAR *argvW[]);
55
56/* export.c */
57int reg_export(int argc, WCHAR *argvW[]);
58
59/* import.c */
60int reg_import(int argc, WCHAR *argvW[]);
61
62/* query.c */
63int reg_query(int argc, WCHAR *argvW[]);
64
65#endif /* __REG_H__ */
static int argc
Definition: ServiceArgs.c:12
void output_writeconsole(const WCHAR *str, DWORD wlen)
Definition: reg.c:53
WCHAR * get_long_key(HKEY root, WCHAR *path)
Definition: reg.c:208
int reg_import(int argc, WCHAR *argvW[])
Definition: import.c:980
BOOL is_char(const WCHAR s, const WCHAR c)
Definition: reg.c:267
BOOL is_switch(const WCHAR *s, const WCHAR c)
Definition: reg.c:272
int reg_add(int argc, WCHAR *argvW[])
Definition: add.c:227
HKEY path_get_rootkey(const WCHAR *path)
Definition: reg.c:165
int reg_export(int argc, WCHAR *argvW[])
Definition: export.c:347
WCHAR * build_subkey_path(WCHAR *path, DWORD path_len, WCHAR *subkey_name, DWORD subkey_len)
Definition: reg.c:198
void WINAPIV output_string(const WCHAR *fmt,...)
Definition: reg.c:117
const struct reg_type_rels type_rels[8]
Definition: reg.c:41
BOOL ask_confirm(unsigned int msgid, WCHAR *reg_info)
Definition: reg.c:127
void WINAPIV output_message(unsigned int id,...)
Definition: reg.c:92
int reg_copy(int argc, WCHAR *argvW[])
Definition: copy.c:193
int reg_delete(int argc, WCHAR *argvW[])
Definition: delete.c:134
BOOL parse_registry_key(const WCHAR *key, HKEY *root, WCHAR **path)
Definition: reg.c:234
int reg_query(int argc, WCHAR *argvW[])
Definition: query.c:339
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
GLdouble s
Definition: gl.h:2039
const GLubyte * c
Definition: glext.h:8905
static DWORD path_len
Definition: batch.c:31
const WCHAR * str
#define WINAPIV
Definition: sdbpapi.h:64
Definition: dsound.c:943
Definition: copy.c:22
const WCHAR * name
Definition: reg.h:31
DWORD type
Definition: reg.h:30
__wchar_t WCHAR
Definition: xmlstorage.h:180