winprefs 0.4.1
Dump a registry path to a series of 'reg add' commands.
Loading...
Searching...
No Matches
io.h
1#ifndef IO_H
2#define IO_H
3
4#include "io_writer.h"
5
6enum OUTPUT_FORMAT {
7 OUTPUT_FORMAT_C,
8 OUTPUT_FORMAT_C_SHARP,
9 OUTPUT_FORMAT_POWERSHELL,
10 OUTPUT_FORMAT_REG,
11 OUTPUT_FORMAT_UNKNOWN
12};
13typedef 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
19bool write_output(wchar_t *out, bool use_crlf, writer_t *writer);
20bool 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
37bool 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
Definition io.h:13
Definition io_writer.h:4