winprefs v0.3.2
A registry exporter for programmers.
Loading...
Searching...
No Matches
Functions
registry.h File Reference
#include "io.h"
#include "macros.h"
+ Include dependency graph for registry.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

DLL_EXPORT bool save_preferences (bool commit, const wchar_t *deploy_key, const wchar_t *output_dir, const wchar_t *output_file, int max_depth, HKEY hk, const wchar_t *specified_path, enum OUTPUT_FORMAT format, writer_t *writer)
 Starts the registry exporting process.
 
DLL_EXPORT bool export_single_value (HKEY top_key, const wchar_t *reg_path, enum OUTPUT_FORMAT format, writer_t *writer)
 Print a single registry value name to standard output.
 

Function Documentation

◆ export_single_value()

DLL_EXPORT bool export_single_value ( HKEY top_key,
const wchar_t * reg_path,
enum OUTPUT_FORMAT format,
writer_t * writer )

Print a single registry value name to standard output.

Parameters
top_keyHandle to the top key (such as HKEY_CURRENT_USER).
reg_pathRegistry path to a key or a value name.
formatOutput format.
writerWriter to use. Optional.
Returns
true if successful, false otherwise.

Definition at line 105 of file registry.c.

◆ save_preferences()

DLL_EXPORT bool save_preferences ( bool commit,
const wchar_t * deploy_key,
const wchar_t * output_dir,
const wchar_t * output_file,
int max_depth,
HKEY hk,
const wchar_t * specified_path,
enum OUTPUT_FORMAT format,
writer_t * writer )

Starts the registry exporting process.

Parameters
commitIf the changes should be commited with Git. Does not apply if output directory is - meaning standard output.
deploy_keyRelative path to SSH deploy key.
output_dirOutput directory.
output_fileOutput filename.
max_depthMaximum depth to traverse.
hkStarting registry key.
specified_pathA direct path to a key (and not a value name).
formatOutput format.
writerWriter to use. Optional.
Returns
Pointer to string with branch name. Must be freed on caller side.

Definition at line 37 of file registry.c.