winprefs
0.4.1
Dump a registry path to a series of 'reg add' commands.
Loading...
Searching...
No Matches
native
io.h
1
#ifndef IO_H
2
#define IO_H
3
4
#include "io_writer.h"
5
6
enum
OUTPUT_FORMAT {
7
OUTPUT_FORMAT_C,
8
OUTPUT_FORMAT_C_SHARP,
9
OUTPUT_FORMAT_POWERSHELL,
10
OUTPUT_FORMAT_REG,
11
OUTPUT_FORMAT_UNKNOWN
12
};
13
typedef
struct
_filter_t
{
14
wchar_t
*buf;
15
size_t
buf_size;
// Total wide characters, not bytes.
16
size_t
member_size;
// Size of each member, in wide characters, not bytes.
17
}
filter_t
;
18
19
bool
write_output(
wchar_t
*out,
bool
use_crlf,
writer_t
*writer);
20
bool
do_writes(HKEY hk,
21
long
unsigned
int
n_values,
22
const
wchar_t
*prior_stem,
23
enum
OUTPUT_FORMAT format,
24
writer_t
*writer);
26
37
bool
write_key_filtered_recursive(HKEY hk,
38
const
wchar_t
*stem,
39
int
max_depth,
40
int
depth,
41
const
wchar_t
*prior_stem,
42
enum
OUTPUT_FORMAT format,
43
writer_t
*writer,
44
filter_t
*filter);
45
46
#endif
// IO_H
_filter_t
Definition
io.h:13
writer_t
Definition
io_writer.h:4
Generated by
1.9.8