25 L" regedit filenames\n" 26 L" regedit /E filename [regpath]\n" 27 L" regedit /D regpath\n" 29 L"filenames - List of registry files names\n" 30 L"filename - Registry file name\n" 31 L"regpath - Name of the registry key\n" 33 L"When is called without any switches adds contents of the specified\n" 34 L"registry files to the registry.\n" 37 L" /E - Exports contents of the specified registry key to the specified\n" 38 L" file. Exports the whole registry if no key is specified.\n" 39 L" /D - Deletes specified registry key\n" 40 L" /S - Silent execution, can be used with any other switch.\n" 41 L" The only existing mode, exists for compatibility with Windows regedit.\n" 42 L" /V - Advanced mode, can be used with any other switch.\n" 43 L" Ignored, exists for compatibility with Windows regedit.\n" 44 L" /L - Location of system.dat file. Can be used with any other switch.\n" 45 L" Ignored. Exists for compatibility with Windows regedit.\n" 46 L" /R - Location of user.dat file. Can be used with any other switch.\n" 47 L" Ignored. Exists for compatibility with Windows regedit.\n" 48 L" /? - Print this help. Any other switches are ignored.\n" 49 L" /C - Create registry from. Not implemented.\n" 51 L"The switches are case-insensitive, can be prefixed either by '-' or '/'.\n" 52 L"This program is command-line compatible with Microsoft Windows\n" 132 (*command_line) +=
pos;
215 if (!reg_key_name[0])
288 while (ch && ((ch ==
L'-') || (ch ==
L'/')))
304 else if (chu ==
L'V')
_Check_return_ _CRTIMP FILE *__cdecl _wfopen(_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode)
int InfoMessageBox(HWND hWnd, UINT uType, LPCWSTR lpTitle, LPCWSTR lpMessage,...)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
static const WCHAR szText[]
void get_file_name(LPWSTR *command_line, LPWSTR file_name)
_Check_return_opt_ _CRTIMP int __cdecl fwprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const wchar_t *_Format,...)
#define IDS_IMPORT_PROMPT
TCHAR szTitle[MAX_LOADSTRING]
#define MB_ICONINFORMATION
BOOL PerformRegAction(REGEDIT_ACTION action, LPWSTR s, BOOL silent)
GLsizeiptr const GLvoid GLenum usage
#define memcpy(s1, s2, n)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
BOOL ProcessCmdLine(LPWSTR lpCmdLine)
BOOL export_registry_key(WCHAR *file_name, WCHAR *reg_key_name, DWORD format)
static void error_unknown_switch(WCHAR chu, LPWSTR s)
BOOL import_registry_file(FILE *reg_file)
void delete_registry_key(WCHAR *reg_key_name)