Go to the source code of this file.
|
void * | heap_xalloc (size_t size) |
|
void * | heap_xrealloc (void *buf, size_t size) |
|
void | output_writeconsole (const WCHAR *str, DWORD wlen) |
|
void WINAPIV | output_message (unsigned int id,...) |
|
BOOL | ask_confirm (unsigned int msgid, WCHAR *reg_info) |
|
HKEY | path_get_rootkey (const WCHAR *path) |
|
WCHAR * | build_subkey_path (WCHAR *path, DWORD path_len, WCHAR *subkey_name, DWORD subkey_len) |
|
BOOL | parse_registry_key (const WCHAR *key, HKEY *root, WCHAR **path, WCHAR **long_key) |
|
int | reg_import (const WCHAR *filename) |
|
int | reg_export (int argc, WCHAR *argv[]) |
|
◆ MAX_SUBKEY_LEN
Definition at line 24 of file reg.h.
◆ ask_confirm()
Definition at line 172 of file reg.c.
195 if (answer[0] == Ybuffer[0])
197 if (answer[0] == Nbuffer[0])
GLuint GLuint GLsizei count
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
void WINAPIV output_message(unsigned int id,...)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
BOOL WINAPI DECLSPEC_HOTPATCH ReadConsoleW(IN HANDLE hConsoleInput, OUT LPVOID lpBuffer, IN DWORD nNumberOfCharsToRead, OUT LPDWORD lpNumberOfCharsRead, IN PCONSOLE_READCONSOLE_CONTROL pInputControl OPTIONAL)
static PEXPLICIT_ACCESSW *static HMODULE hmod
#define STRING_DEFAULT_VALUE
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
Referenced by get_file_handle(), reg_add(), and reg_delete().
◆ build_subkey_path()
◆ heap_xalloc()
Definition at line 83 of file reg.c.
88 ERR(
"Out of memory!\n");
static void * heap_alloc(size_t len)
GLenum GLuint GLenum GLsizei const GLchar * buf
Referenced by build_subkey_path(), dword_data_state(), escape_string(), export_dword_data(), export_hex_data(), export_hex_data_type(), export_key_name(), export_registry_data(), export_string_data(), export_value_name(), get_lineA(), get_lineW(), get_long_key(), get_regdata(), GetWideString(), GetWideStringN(), header_state(), open_key(), output_writeconsole(), query_all(), query_value(), quoted_value_name_state(), reg_data_to_wchar(), and reg_delete().
◆ heap_xrealloc()
◆ output_message()
Definition at line 147 of file reg.c.
static static const char __ms_va_list
DWORD WINAPI GetLastError(VOID)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
static void output_formatstring(const WCHAR *fmt, __ms_va_list va_args)
#define __ms_va_end(list)
#define __ms_va_start(list, arg)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
Referenced by ask_confirm(), get_file_handle(), get_regdata(), key_name_state(), parse_registry_key(), parse_win31_line_state(), query_value(), reg_add(), reg_delete(), reg_export(), reg_import(), reg_query(), sane_path(), unescape_string(), and wmain().
◆ output_writeconsole()
Definition at line 107 of file reg.c.
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
#define WideCharToMultiByte
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleW(IN HANDLE hConsoleOutput, IN CONST VOID *lpBuffer, IN DWORD nNumberOfCharsToWrite, OUT LPDWORD lpNumberOfCharsWritten, LPVOID lpReserved)
GLuint GLuint GLsizei count
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
UINT WINAPI DECLSPEC_HOTPATCH GetConsoleOutputCP(VOID)
#define STD_OUTPUT_HANDLE
void * heap_xalloc(size_t size)
static BOOL heap_free(void *mem)
Referenced by get_file_handle(), and output_formatstring().
◆ parse_registry_key()
Definition at line 863 of file reg.c.
869 if (*
path) (*path)++;
static WCHAR * get_long_key(HKEY root, WCHAR *path)
void WINAPIV output_message(unsigned int id,...)
#define STRING_INVALID_SYSTEM_KEY
_CONST_RETURN wchar_t *__cdecl wcschr(_In_z_ const wchar_t *_Str, wchar_t _Ch)
static BOOL sane_path(const WCHAR *key)
HKEY path_get_rootkey(const WCHAR *path)
Referenced by reg_export(), and wmain().
◆ path_get_rootkey()
Definition at line 210 of file reg.c.
static BOOL path_rootname_cmp(const WCHAR *input_path, const WCHAR *rootkey_name)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static const struct @2 root_rels[]
Referenced by parse_key_name(), and parse_registry_key().
◆ reg_export()
Definition at line 373 of file export.c.
static BOOL is_overwrite_switch(const WCHAR *s)
GLsizei const GLchar ** path
void WINAPIV output_message(unsigned int id,...)
BOOL parse_registry_key(const WCHAR *key, HKEY *root, WCHAR **path, WCHAR **long_key)
#define STRING_INVALID_KEY
_CRTIMP wchar_t *__cdecl _wcsupr(_Inout_z_ wchar_t *_String)
static HANDLE get_file_handle(WCHAR *filename, BOOL overwrite_file)
#define STRING_INVALID_SYNTAX
static int export_registry_data(HANDLE hFile, HKEY key, WCHAR *path)
static void export_newline(HANDLE hFile)
static void export_file_header(HANDLE hFile)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
#define RegCloseKey(hKey)
Referenced by wmain().
◆ reg_import()
Definition at line 991 of file import.c.
994 static const WCHAR rb_mode[] = {
'r',
'b',0};
static WCHAR * get_lineA(FILE *fp)
static void close_key(struct parser *parser)
_Check_return_ _CRTIMP FILE *__cdecl _wfopen(_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode)
void WINAPIV output_message(unsigned int id,...)
_Check_return_opt_ _CRTIMP size_t __cdecl fread(_Out_writes_bytes_(_ElementSize *_Count) void *_DstBuf, _In_ size_t _ElementSize, _In_ size_t _Count, _Inout_ FILE *_File)
#define STRING_FILE_NOT_FOUND
static WCHAR * get_lineW(FILE *fp)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
static WCHAR *(* get_line)(FILE *)
static const parser_state_func parser_funcs[NB_PARSER_STATES]
static BOOL heap_free(void *mem)
Referenced by wmain().