diff --git a/rosapps/sysutils/regexpl/ArgumentParser.cpp b/rosapps/sysutils/regexpl/ArgumentParser.cpp index 95a024ad740..c73bcf97d41 100644 --- a/rosapps/sysutils/regexpl/ArgumentParser.cpp +++ b/rosapps/sysutils/regexpl/ArgumentParser.cpp @@ -1,8 +1,8 @@ -/* $Id: ArgumentParser.cpp,v 1.3 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: ArgumentParser.cpp,v 1.4 2001/01/13 23:53:46 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/rosapps/sysutils/regexpl/ArgumentParser.h b/rosapps/sysutils/regexpl/ArgumentParser.h index 4495f2f8402..00ef2b5042f 100644 --- a/rosapps/sysutils/regexpl/ArgumentParser.h +++ b/rosapps/sysutils/regexpl/ArgumentParser.h @@ -1,3 +1,5 @@ +/* $Id: ArgumentParser.h,v 1.2 2001/01/13 23:53:46 narnaoud Exp $ */ + // ArgumentParser.h: interface for the CArgumentParser class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/Completion.cpp b/rosapps/sysutils/regexpl/Completion.cpp index 2d389618dd6..a41706d9066 100644 --- a/rosapps/sysutils/regexpl/Completion.cpp +++ b/rosapps/sysutils/regexpl/Completion.cpp @@ -1,8 +1,8 @@ -/* $Id: Completion.cpp,v 1.1 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: Completion.cpp,v 1.2 2001/01/13 23:54:07 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -240,10 +240,10 @@ BOOL CCompletionList::Add(const TCHAR *pszText, BOOL blnIsKey) const TCHAR * CCompletionList::Get(unsigned __int64 nIndex, BOOL& rblnIsKey) { ASSERT(nIndex < m_nCount); - BOOL blnForward; + BOOL blnForward = FALSE; CCompletionMatch *pNode = NULL; - unsigned __int64 nRelativeIndex; + unsigned __int64 nRelativeIndex = 0; if (m_pLastSearched) { diff --git a/rosapps/sysutils/regexpl/Completion.h b/rosapps/sysutils/regexpl/Completion.h index b5a08baa979..f530c057ea3 100644 --- a/rosapps/sysutils/regexpl/Completion.h +++ b/rosapps/sysutils/regexpl/Completion.h @@ -1,9 +1,9 @@ -/* $Id: Completion.h,v 1.1 2001/01/10 01:25:29 narnaoud Exp $ */ +/* $Id: Completion.h,v 1.2 2001/01/13 23:54:07 narnaoud Exp $ */ // Completion.h - declaration for completion related functions -#if !defined(PATTERN_H__INCLUDED_) -#define PATTERN_H__INCLUDED_ +#if !defined(COMLPETION_H__INCLUDED_) +#define COMPLETION_H__INCLUDED_ typedef const TCHAR * (*ReplaceCompletionCallback)(unsigned __int64& rnIndex, const BOOL *pblnForward, const TCHAR *pchContext, const TCHAR *pchBegin); diff --git a/rosapps/sysutils/regexpl/Console.cpp b/rosapps/sysutils/regexpl/Console.cpp index 5724ad23c90..31744446757 100644 --- a/rosapps/sysutils/regexpl/Console.cpp +++ b/rosapps/sysutils/regexpl/Console.cpp @@ -1,8 +1,8 @@ -/* $Id: Console.cpp,v 1.3 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: Console.cpp,v 1.4 2001/01/13 23:54:07 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/rosapps/sysutils/regexpl/Console.h b/rosapps/sysutils/regexpl/Console.h index 4157cd2c66d..4042fe0104e 100644 --- a/rosapps/sysutils/regexpl/Console.h +++ b/rosapps/sysutils/regexpl/Console.h @@ -1,3 +1,5 @@ +/* $Id: Console.h,v 1.4 2001/01/13 23:54:07 narnaoud Exp $ */ + // Console.h: interface for the CConsole class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/Pattern.cpp b/rosapps/sysutils/regexpl/Pattern.cpp index 58e79d31a18..e54849bfa18 100644 --- a/rosapps/sysutils/regexpl/Pattern.cpp +++ b/rosapps/sysutils/regexpl/Pattern.cpp @@ -1,8 +1,8 @@ -/* $Id: Pattern.cpp,v 1.1 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: Pattern.cpp,v 1.2 2001/01/13 23:54:40 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -32,11 +32,15 @@ BOOL PatternMatch(const TCHAR *pszPattern, const TCHAR *pszTry) { if (((*pszTry) == 0) && ((*pszPattern) == 0)) return TRUE; + + if (((*pszTry) == 0) || ((*pszPattern) == 0)) + return FALSE; + pszTry++; pszPattern++; } - if(*pszPattern == _T('*')) + if (*pszPattern == _T('*')) { pszPattern++; while (*pszTry) diff --git a/rosapps/sysutils/regexpl/RegistryExplorer.cpp b/rosapps/sysutils/regexpl/RegistryExplorer.cpp index c3765928b69..2df38ea4b5c 100644 --- a/rosapps/sysutils/regexpl/RegistryExplorer.cpp +++ b/rosapps/sysutils/regexpl/RegistryExplorer.cpp @@ -1,8 +1,8 @@ -/* $Id: RegistryExplorer.cpp,v 1.3 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: RegistryExplorer.cpp,v 1.4 2001/01/13 23:54:40 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/rosapps/sysutils/regexpl/RegistryExplorer.h b/rosapps/sysutils/regexpl/RegistryExplorer.h index e6c804c7d25..e8671f2ddca 100644 --- a/rosapps/sysutils/regexpl/RegistryExplorer.h +++ b/rosapps/sysutils/regexpl/RegistryExplorer.h @@ -1,8 +1,9 @@ +/* $Id: RegistryExplorer.h,v 1.5 2001/01/13 23:53:23 narnaoud Exp $ */ #ifndef _REGISTRY_EXPLORER_H__INCLUDED #define _REGISTRY_EXPLORER_H__INCLUDED -#define CURRENT_VERSION _T("0.20") +#define CURRENT_VERSION _T("0.20+") #define EMAIL _T("registryexplorer@yahoo.com") //#define __L(x) L ## x diff --git a/rosapps/sysutils/regexpl/RegistryKey.cpp b/rosapps/sysutils/regexpl/RegistryKey.cpp index 5429022378f..e96f9f63278 100644 --- a/rosapps/sysutils/regexpl/RegistryKey.cpp +++ b/rosapps/sysutils/regexpl/RegistryKey.cpp @@ -1,8 +1,8 @@ -/* $Id: RegistryKey.cpp,v 1.3 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: RegistryKey.cpp,v 1.4 2001/01/13 23:54:40 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/rosapps/sysutils/regexpl/RegistryKey.h b/rosapps/sysutils/regexpl/RegistryKey.h index 2de780c4275..59fe2716515 100644 --- a/rosapps/sysutils/regexpl/RegistryKey.h +++ b/rosapps/sysutils/regexpl/RegistryKey.h @@ -1,3 +1,5 @@ +/* $Id: RegistryKey.h,v 1.4 2001/01/13 23:54:41 narnaoud Exp $ */ + // RegistryKey.h: interface for the CRegistryKey class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/RegistryTree.cpp b/rosapps/sysutils/regexpl/RegistryTree.cpp index 4d38cd8730e..0efd0b74908 100644 --- a/rosapps/sysutils/regexpl/RegistryTree.cpp +++ b/rosapps/sysutils/regexpl/RegistryTree.cpp @@ -1,8 +1,8 @@ -/* $Id: RegistryTree.cpp,v 1.3 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: RegistryTree.cpp,v 1.4 2001/01/13 23:54:41 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -287,21 +287,21 @@ BOOL CRegistryTree::DeleteSubkeys(CRegistryKey& rKey, const TCHAR *pszKeyPattern BOOL blnKeyDeleted = FALSE; while ((nError = rKey.GetNextSubkeyName()) == ERROR_SUCCESS) { - if (blnRecursive) - { // deltion is recursive, delete subkey subkeys - CRegistryKey Subkey; - // open subkey - nError = rKey.OpenSubkey(DELETE,pszSubkeyName,Subkey); - // delete subkey subkeys - if (DeleteSubkeys(Subkey, PATTERN_MATCH_ALL, TRUE)) - { - AddErrorDescription(_T("Cannot delete subkey(s) of key %s. Subkey deletion failed.\n"),Subkey.GetKeyName()); - return FALSE; - } - } - if (PatternMatch(pszKeyPattern,pszSubkeyName)) { + if (blnRecursive) + { // deltion is recursive, delete subkey subkeys + CRegistryKey Subkey; + // open subkey + nError = rKey.OpenSubkey(DELETE,pszSubkeyName,Subkey); + // delete subkey subkeys + if (DeleteSubkeys(Subkey, PATTERN_MATCH_ALL, TRUE)) + { + AddErrorDescription(_T("Cannot delete subkey(s) of key %s. Subkey deletion failed.\n"),Subkey.GetKeyName()); + return FALSE; + } + } + nError = rKey.DeleteSubkey(pszSubkeyName); if (nError != ERROR_SUCCESS) { @@ -311,6 +311,7 @@ BOOL CRegistryTree::DeleteSubkeys(CRegistryKey& rKey, const TCHAR *pszKeyPattern return FALSE; } blnKeyDeleted = TRUE; + rKey.InitSubkeyEnumeration(pszSubkeyName, dwMaxSubkeyNameLength); // reset iteration } } diff --git a/rosapps/sysutils/regexpl/SecurityDescriptor.cpp b/rosapps/sysutils/regexpl/SecurityDescriptor.cpp index d19289dfdb0..90ba0d16af8 100644 --- a/rosapps/sysutils/regexpl/SecurityDescriptor.cpp +++ b/rosapps/sysutils/regexpl/SecurityDescriptor.cpp @@ -1,8 +1,8 @@ -/* $Id: SecurityDescriptor.cpp,v 1.3 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: SecurityDescriptor.cpp,v 1.4 2001/01/13 23:54:41 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/rosapps/sysutils/regexpl/SecurityDescriptor.h b/rosapps/sysutils/regexpl/SecurityDescriptor.h index 9cec227d14a..0cef15a7f86 100644 --- a/rosapps/sysutils/regexpl/SecurityDescriptor.h +++ b/rosapps/sysutils/regexpl/SecurityDescriptor.h @@ -1,3 +1,5 @@ +/* $Id: SecurityDescriptor.h,v 1.3 2001/01/13 23:54:41 narnaoud Exp $ */ + // SecurityDescriptor.h: interface for the CSecurityDescriptor class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/ShellCommand.cpp b/rosapps/sysutils/regexpl/ShellCommand.cpp index c3702ec6fc9..75db3731b8b 100644 --- a/rosapps/sysutils/regexpl/ShellCommand.cpp +++ b/rosapps/sysutils/regexpl/ShellCommand.cpp @@ -1,8 +1,8 @@ -/* $Id: ShellCommand.cpp,v 1.2 2000/10/24 20:17:41 narnaoud Exp $ +/* $Id: ShellCommand.cpp,v 1.3 2001/01/13 23:55:36 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/rosapps/sysutils/regexpl/ShellCommand.h b/rosapps/sysutils/regexpl/ShellCommand.h index 6f68b3f4a97..cd8fc8b02d0 100644 --- a/rosapps/sysutils/regexpl/ShellCommand.h +++ b/rosapps/sysutils/regexpl/ShellCommand.h @@ -1,3 +1,5 @@ +/* $Id: ShellCommand.h,v 1.2 2001/01/13 23:55:36 narnaoud Exp $ */ + // ShellCommand.h: interface for the CShellCommand class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/ShellCommandChangeKey.cpp b/rosapps/sysutils/regexpl/ShellCommandChangeKey.cpp index 36181961065..98bbcd3fdf4 100644 --- a/rosapps/sysutils/regexpl/ShellCommandChangeKey.cpp +++ b/rosapps/sysutils/regexpl/ShellCommandChangeKey.cpp @@ -1,8 +1,8 @@ -/* $Id: ShellCommandChangeKey.cpp,v 1.3 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: ShellCommandChangeKey.cpp,v 1.4 2001/01/13 23:55:36 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/rosapps/sysutils/regexpl/ShellCommandChangeKey.h b/rosapps/sysutils/regexpl/ShellCommandChangeKey.h index e5e4cb19321..671c72e1a7b 100644 --- a/rosapps/sysutils/regexpl/ShellCommandChangeKey.h +++ b/rosapps/sysutils/regexpl/ShellCommandChangeKey.h @@ -1,3 +1,5 @@ +/* $Id: ShellCommandChangeKey.h,v 1.2 2001/01/13 23:55:36 narnaoud Exp $ */ + // ShellCommandChangeKey.h: interface for the CShellCommandChangeKey class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/ShellCommandConnect.cpp b/rosapps/sysutils/regexpl/ShellCommandConnect.cpp index cde1b7ca6ef..5e6575573e7 100644 --- a/rosapps/sysutils/regexpl/ShellCommandConnect.cpp +++ b/rosapps/sysutils/regexpl/ShellCommandConnect.cpp @@ -1,8 +1,8 @@ -/* $Id: ShellCommandConnect.cpp,v 1.3 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: ShellCommandConnect.cpp,v 1.4 2001/01/13 23:55:36 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/rosapps/sysutils/regexpl/ShellCommandConnect.h b/rosapps/sysutils/regexpl/ShellCommandConnect.h index 3bada8ff4b9..66f0ef91050 100644 --- a/rosapps/sysutils/regexpl/ShellCommandConnect.h +++ b/rosapps/sysutils/regexpl/ShellCommandConnect.h @@ -1,3 +1,5 @@ +/* $Id: ShellCommandConnect.h,v 1.2 2001/01/13 23:55:36 narnaoud Exp $ */ + // ShellCommandConnect.h: interface for the CShellCommandConnect class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/ShellCommandDACL.cpp b/rosapps/sysutils/regexpl/ShellCommandDACL.cpp index 62496a4ab72..6c672fa2176 100644 --- a/rosapps/sysutils/regexpl/ShellCommandDACL.cpp +++ b/rosapps/sysutils/regexpl/ShellCommandDACL.cpp @@ -1,8 +1,8 @@ -/* $Id: ShellCommandDACL.cpp,v 1.3 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: ShellCommandDACL.cpp,v 1.4 2001/01/13 23:55:36 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/rosapps/sysutils/regexpl/ShellCommandDACL.h b/rosapps/sysutils/regexpl/ShellCommandDACL.h index 40a0476d5e9..b98966e5d6f 100644 --- a/rosapps/sysutils/regexpl/ShellCommandDACL.h +++ b/rosapps/sysutils/regexpl/ShellCommandDACL.h @@ -1,3 +1,5 @@ +/* $Id: ShellCommandDACL.h,v 1.2 2001/01/13 23:55:37 narnaoud Exp $ */ + // ShellCommandDACL.h: interface for the CShellCommandDACL class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/ShellCommandDOKA.cpp b/rosapps/sysutils/regexpl/ShellCommandDOKA.cpp index 6a0aa90d381..2ba582d45f2 100644 --- a/rosapps/sysutils/regexpl/ShellCommandDOKA.cpp +++ b/rosapps/sysutils/regexpl/ShellCommandDOKA.cpp @@ -1,8 +1,8 @@ -/* $Id: ShellCommandDOKA.cpp,v 1.2 2000/10/24 20:17:41 narnaoud Exp $ +/* $Id: ShellCommandDOKA.cpp,v 1.3 2001/01/13 23:55:37 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/rosapps/sysutils/regexpl/ShellCommandDOKA.h b/rosapps/sysutils/regexpl/ShellCommandDOKA.h index 874dffdd7fd..8db95f62125 100644 --- a/rosapps/sysutils/regexpl/ShellCommandDOKA.h +++ b/rosapps/sysutils/regexpl/ShellCommandDOKA.h @@ -1,3 +1,5 @@ +/* $Id: ShellCommandDOKA.h,v 1.2 2001/01/13 23:55:37 narnaoud Exp $ */ + // ShellCommandDOKA.h: interface for the CShellCommandDOKA class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/ShellCommandDeleteKey.cpp b/rosapps/sysutils/regexpl/ShellCommandDeleteKey.cpp index a580489d922..e7e7a935e3e 100644 --- a/rosapps/sysutils/regexpl/ShellCommandDeleteKey.cpp +++ b/rosapps/sysutils/regexpl/ShellCommandDeleteKey.cpp @@ -1,8 +1,8 @@ -/* $Id: ShellCommandDeleteKey.cpp,v 1.3 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: ShellCommandDeleteKey.cpp,v 1.4 2001/01/13 23:55:37 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -116,7 +116,10 @@ int CShellCommandDeleteKey::Execute(CConsole &rConsole, CArgumentParser& rArgume ASSERT(pch >= pchKey); const TCHAR *pszPath; - TCHAR *pszPattern = pch+1; + TCHAR *pszPattern = pch; + if (*pch == _T('\\')) + pszPattern++; + if (pch == pchKey) { pszPath = _T("."); diff --git a/rosapps/sysutils/regexpl/ShellCommandDeleteKey.h b/rosapps/sysutils/regexpl/ShellCommandDeleteKey.h index 283450e58d7..2a22509f05a 100644 --- a/rosapps/sysutils/regexpl/ShellCommandDeleteKey.h +++ b/rosapps/sysutils/regexpl/ShellCommandDeleteKey.h @@ -1,3 +1,5 @@ +/* $Id: ShellCommandDeleteKey.h,v 1.2 2001/01/13 23:55:37 narnaoud Exp $ */ + // ShellCommandDeleteKey.h: interface for the CShellCommandDeleteKey class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/ShellCommandDeleteValue.cpp b/rosapps/sysutils/regexpl/ShellCommandDeleteValue.cpp index fdc28eed8db..7b7ada8b4be 100644 --- a/rosapps/sysutils/regexpl/ShellCommandDeleteValue.cpp +++ b/rosapps/sysutils/regexpl/ShellCommandDeleteValue.cpp @@ -1,8 +1,8 @@ -/* $Id: ShellCommandDeleteValue.cpp,v 1.3 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: ShellCommandDeleteValue.cpp,v 1.4 2001/01/13 23:55:37 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,6 +27,7 @@ #include "ph.h" #include "ShellCommandDeleteValue.h" #include "RegistryExplorer.h" +#include "Pattern.h" #define DV_CMD _T("DV") #define DV_CMD_LENGTH COMMAND_LENGTH(DV_CMD) @@ -51,119 +52,134 @@ BOOL CShellCommandDeleteValue::Match(const TCHAR *pszCommand) int CShellCommandDeleteValue::Execute(CConsole &rConsole, CArgumentParser& rArguments) { - rArguments.ResetArgumentIteration(); - TCHAR *pszCommandItself = rArguments.GetNextArgument(); + rArguments.ResetArgumentIteration(); + TCHAR *pszCommandItself = rArguments.GetNextArgument(); - TCHAR *pszParameter; - TCHAR *pszValueFull = NULL; - BOOL blnHelp = FALSE; -// DWORD dwError; + TCHAR *pszParameter; + TCHAR *pszValueFull = NULL; + BOOL blnHelp = FALSE; - if ((_tcsnicmp(pszCommandItself,DV_CMD _T(".."),DV_CMD_LENGTH+2*sizeof(TCHAR)) == 0)|| - (_tcsnicmp(pszCommandItself,DV_CMD _T("\\"),DV_CMD_LENGTH+1*sizeof(TCHAR)) == 0)) - { - pszValueFull = pszCommandItself + DV_CMD_LENGTH; - } - else if (_tcsnicmp(pszCommandItself,DV_CMD _T("/"),DV_CMD_LENGTH+1*sizeof(TCHAR)) == 0) - { - pszParameter = pszCommandItself + DV_CMD_LENGTH; - goto CheckValueArgument; - } + if ((_tcsnicmp(pszCommandItself,DV_CMD _T(".."),DV_CMD_LENGTH+2*sizeof(TCHAR)) == 0)|| + (_tcsnicmp(pszCommandItself,DV_CMD _T("\\"),DV_CMD_LENGTH+1*sizeof(TCHAR)) == 0)) + { + pszValueFull = pszCommandItself + DV_CMD_LENGTH; + } + else if (_tcsnicmp(pszCommandItself,DV_CMD _T("/"),DV_CMD_LENGTH+1*sizeof(TCHAR)) == 0) + { + pszParameter = pszCommandItself + DV_CMD_LENGTH; + goto CheckValueArgument; + } - while((pszParameter = rArguments.GetNextArgument()) != NULL) - { + while((pszParameter = rArguments.GetNextArgument()) != NULL) + { CheckValueArgument: - if ((_tcsicmp(pszParameter,_T("/?")) == 0) - ||(_tcsicmp(pszParameter,_T("-?")) == 0)) - { - blnHelp = TRUE; - break; - } - else if (!pszValueFull) - { - pszValueFull = pszParameter; - } - else - { - rConsole.Write(_T("Bad parameter: ")); - rConsole.Write(pszParameter); - rConsole.Write(_T("\n")); - } - } - - CRegistryKey Key; - TCHAR *pszValueName; - const TCHAR *pszPath; - - if (blnHelp) - { - rConsole.Write(GetHelpString()); - return 0; - } - - if (pszValueFull) - { - if (_tcscmp(pszValueFull,_T("\\")) == 0) - goto CommandNAonRoot; - - TCHAR *pchSep = _tcsrchr(pszValueFull,_T('\\')); - pszValueName = pchSep?(pchSep+1):(pszValueFull); - pszPath = pchSep?pszValueFull:_T("."); - - //if (_tcsrchr(pszValueName,_T('.'))) - //{ - // pszValueName = _T(""); - // pszPath = pszValueFull; - //} - //else - if (pchSep) - *pchSep = 0; - } - else - { - pszValueName = _T(""); - pszPath = _T("."); - } - - { - size_t s = _tcslen(pszValueName); - if (s && (pszValueName[0] == _T('\"'))&&(pszValueName[s-1] == _T('\"'))) + if ((_tcsicmp(pszParameter,_T("/?")) == 0) + ||(_tcsicmp(pszParameter,_T("-?")) == 0)) { - pszValueName[s-1] = 0; - pszValueName++; + blnHelp = TRUE; + break; + } + else if (!pszValueFull) + { + pszValueFull = pszParameter; } - } - - if (!m_rTree.GetKey(pszPath,KEY_SET_VALUE,Key)) - { - rConsole.Write(m_rTree.GetLastErrorDescription()); - goto SkipCommand; - } - - if (!Key.IsRoot()) - { // not root key ??? - LONG nError = Key.DeleteValue(pszValueName); - if (nError != ERROR_SUCCESS) - { - char Buffer[254]; - _stprintf(Buffer,_T("Cannot delete value. Error is %u\n"),(unsigned int)nError); - rConsole.Write(Buffer); - } else { - InvalidateCompletion(); + rConsole.Write(_T("Bad parameter: ")); + rConsole.Write(pszParameter); + rConsole.Write(_T("\n")); } - } // if (pKey) - else - { -CommandNAonRoot: - rConsole.Write(DV_CMD COMMAND_NA_ON_ROOT); - } + } + + CRegistryKey Key; + TCHAR *pszValueNamePattern; + const TCHAR *pszPath; + + if (blnHelp) + { + rConsole.Write(GetHelpString()); + return 0; + } -SkipCommand: - // if (pTree) - // delete pTree; - return 0; + if (pszValueFull) + { + if (_tcscmp(pszValueFull,_T("\\")) == 0) + goto CommandNAonRoot; + + TCHAR *pchSep = _tcsrchr(pszValueFull,_T('\\')); + pszValueNamePattern = pchSep?(pchSep+1):(pszValueFull); + pszPath = pchSep?pszValueFull:_T("."); + + if (pchSep) + *pchSep = 0; + } + else + { + pszValueNamePattern = _T(""); + pszPath = _T("."); + } + + { + size_t s = _tcslen(pszValueNamePattern); + if (s && (pszValueNamePattern[0] == _T('\"'))&&(pszValueNamePattern[s-1] == _T('\"'))) + { + pszValueNamePattern[s-1] = 0; + pszValueNamePattern++; + } + } + + if (!m_rTree.GetKey(pszPath,KEY_QUERY_VALUE|KEY_SET_VALUE,Key)) + { + rConsole.Write(m_rTree.GetLastErrorDescription()); + return 0; + } + + if (!Key.IsRoot()) + { // not root key ??? + TCHAR Buffer[254]; + DWORD dwMaxValueNameLength; + LONG nError = Key.GetMaxValueNameLength(dwMaxValueNameLength); + if (nError != ERROR_SUCCESS) + { + _stprintf(Buffer,_T("Cannot query info about %s key. Error is %u\n"),Key.GetKeyName(),(unsigned int)nError); + rConsole.Write(Buffer); + return 0; + } + + TCHAR *pszValueName = new TCHAR[dwMaxValueNameLength]; + if (!pszValueName) + { + rConsole.Write("Out of memory."); + return 0; + } + + Key.InitValueEnumeration(pszValueName,dwMaxValueNameLength,NULL,0,NULL); + + while ((nError = Key.GetNextValue()) == ERROR_SUCCESS) + { + if (PatternMatch(pszValueNamePattern,pszValueName)) + { + nError = Key.DeleteValue(pszValueName); + if (nError != ERROR_SUCCESS) + { + _stprintf(Buffer,_T("Cannot delete value. Error is %u\n"),(unsigned int)nError); + rConsole.Write(Buffer); + } + else + { + InvalidateCompletion(); + } + Key.InitValueEnumeration(pszValueName,dwMaxValueNameLength,NULL,0,NULL); // reset iteration + } + } + } // if (pKey) + else + { +CommandNAonRoot: + rConsole.Write(DV_CMD COMMAND_NA_ON_ROOT); + } + + return 0; } const TCHAR * CShellCommandDeleteValue::GetHelpString() @@ -171,7 +187,7 @@ const TCHAR * CShellCommandDeleteValue::GetHelpString() return DV_CMD_SHORT_DESC _T("Syntax: ") DV_CMD _T(" [][] [/?]\n\n") _T(" - Optional relative path of key which value will be delete.\n") - _T(" - Name of key's value. Default is key's default value.\n") + _T(" - Name pattern of key's value. Default is key's default value.\n") _T(" /? - This help.\n\n"); } diff --git a/rosapps/sysutils/regexpl/ShellCommandDeleteValue.h b/rosapps/sysutils/regexpl/ShellCommandDeleteValue.h index 14d703ad198..7fb1a18ddc3 100644 --- a/rosapps/sysutils/regexpl/ShellCommandDeleteValue.h +++ b/rosapps/sysutils/regexpl/ShellCommandDeleteValue.h @@ -1,3 +1,5 @@ +/* $Id: ShellCommandDeleteValue.h,v 1.2 2001/01/13 23:55:37 narnaoud Exp $ */ + // ShellCommandDeleteValue.h: interface for the CShellCommandDeleteValue class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/ShellCommandDir.cpp b/rosapps/sysutils/regexpl/ShellCommandDir.cpp index fa405dafcd0..e2787811c7a 100644 --- a/rosapps/sysutils/regexpl/ShellCommandDir.cpp +++ b/rosapps/sysutils/regexpl/ShellCommandDir.cpp @@ -1,8 +1,8 @@ -/* $Id: ShellCommandDir.cpp,v 1.3 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: ShellCommandDir.cpp,v 1.4 2001/01/13 23:55:37 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,6 +29,7 @@ #include "ShellCommandDir.h" #include "RegistryTree.h" #include "RegistryKey.h" +#include "Pattern.h" // *** THIS SHOULD GO IN A MINGW/ROS HEADER (tchar.h ???) - Begin #if 1 // #ifndef _ui64tot ??? @@ -74,9 +75,9 @@ int CShellCommandDir::Execute(CConsole &rConsole, CArgumentParser& rArguments) rArguments.ResetArgumentIteration(); BOOL blnDo = TRUE,blnBadParameter, blnHelp = FALSE; - const TCHAR *pszParameter; - const TCHAR *pszCommandItself = rArguments.GetNextArgument(); - const TCHAR *pszKey = NULL; + TCHAR *pszParameter; + TCHAR *pszCommandItself = rArguments.GetNextArgument(); + TCHAR *pszKey = NULL; if ((_tcsnicmp(pszCommandItself,DIR_CMD _T(".."),DIR_CMD_LENGTH+2*sizeof(TCHAR)) == 0)|| (_tcsnicmp(pszCommandItself,DIR_CMD _T("\\"),DIR_CMD_LENGTH+1*sizeof(TCHAR)) == 0)) @@ -116,9 +117,50 @@ CheckDirArgument: } } + const TCHAR *pszPattern = PATTERN_MATCH_ALL; + const TCHAR *pszPath = _T("."); + + if (pszKey) + { + pszPath = pszKey; + + TCHAR *pch = pszKey; + while(*pch) // search end of string + pch++; + + if (pch > pszKey) // last non-null char + pch--; + + if (*pch != _T('\\')) + { + while ((pch > pszKey) && (*pch != _T('\\'))) + pch--; + + if (*pch == _T('\\')) + { + pszPattern = pch+1; + + if (pch > pszKey) + { + ASSERT(*pch == _T('\\')); + *pch = 0; + } + else if (*pch == _T('\\')) + { + pszPath = _T("\\"); + } + } + else + { + pszPattern = pszKey; + pszPath = _T("."); + } + } + } + CRegistryKey Key; - if (!m_rTree.GetKey(pszKey?pszKey:_T("."),KEY_ENUMERATE_SUB_KEYS|KEY_QUERY_VALUE,Key)) + if (!m_rTree.GetKey(pszPath,KEY_ENUMERATE_SUB_KEYS|KEY_QUERY_VALUE,Key)) { const TCHAR *pszErrorMsg = m_rTree.GetLastErrorDescription(); rConsole.Write(pszErrorMsg); @@ -165,10 +207,13 @@ CheckDirArgument: Key.InitSubkeyEnumeration(pszSubkeyNameBuffer,dwMaxSubkeyNameLength); while ((nError = Key.GetNextSubkeyName()) == ERROR_SUCCESS) { - rConsole.Write(_T("\t(KEY)\t\t\t\t")); - rConsole.Write(pszSubkeyNameBuffer); - rConsole.Write(_T("\\\n")); - nTotalItems++; + if (PatternMatch(pszPattern,pszSubkeyNameBuffer)) + { + rConsole.Write(_T("\t(KEY)\t\t\t\t")); + rConsole.Write(pszSubkeyNameBuffer); + rConsole.Write(_T("\\\n")); + nTotalItems++; + } } delete pszSubkeyNameBuffer; @@ -199,16 +244,19 @@ CheckDirArgument: unsigned int nTabs; while((nError = Key.GetNextValue(&dwValueNameActualLength)) == ERROR_SUCCESS) { - rConsole.Write(_T("\t")); - pszValueTypeName = CRegistryKey::GetValueTypeName(Type); - nTabs = _tcslen(pszValueTypeName)/nTabSize; - nTabs = (nTabs < 4)?(4-nTabs):1; - rConsole.Write(pszValueTypeName); - while(nTabs--) + if (PatternMatch(pszPattern,pchValueNameBuffer)) + { rConsole.Write(_T("\t")); - rConsole.Write((dwValueNameActualLength == 0)?_T("(Default)"):pchValueNameBuffer); - rConsole.Write(_T("\n")); - nTotalItems++; + pszValueTypeName = CRegistryKey::GetValueTypeName(Type); + nTabs = _tcslen(pszValueTypeName)/nTabSize; + nTabs = (nTabs < 4)?(4-nTabs):1; + rConsole.Write(pszValueTypeName); + while(nTabs--) + rConsole.Write(_T("\t")); + rConsole.Write((dwValueNameActualLength == 0)?_T("(Default)"):pchValueNameBuffer); + rConsole.Write(_T("\n")); + nTotalItems++; + } } delete pchValueNameBuffer; @@ -236,8 +284,9 @@ CheckDirArgument: const TCHAR * CShellCommandDir::GetHelpString() { return DIR_CMD_SHORT_DESC - _T("Syntax: ") DIR_CMD _T(" [] [/?]\n\n") - _T(" - Optional relative path to the key on which command will be executed\n") + _T("Syntax: ") DIR_CMD _T(" [\\][] [/?]\n\n") + _T(" - Optional relative path to the key on which command will be executed\n") + _T(" - Optional pattern. Default is the all matching pattern.") _T(" /? - This help.\n\n") _T("Without parameters, command lists keys and values of current key.\n"); } diff --git a/rosapps/sysutils/regexpl/ShellCommandDir.h b/rosapps/sysutils/regexpl/ShellCommandDir.h index 97e51f239c7..7ef733f81f2 100644 --- a/rosapps/sysutils/regexpl/ShellCommandDir.h +++ b/rosapps/sysutils/regexpl/ShellCommandDir.h @@ -1,3 +1,5 @@ +/* $Id: ShellCommandDir.h,v 1.2 2001/01/13 23:55:37 narnaoud Exp $ */ + // ShellCommandDir.h: interface for the CShellCommandDir class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/ShellCommandExit.cpp b/rosapps/sysutils/regexpl/ShellCommandExit.cpp index d49139fdfce..f1a8fcb0aca 100644 --- a/rosapps/sysutils/regexpl/ShellCommandExit.cpp +++ b/rosapps/sysutils/regexpl/ShellCommandExit.cpp @@ -1,8 +1,8 @@ -/* $Id: ShellCommandExit.cpp,v 1.2 2000/10/24 20:17:41 narnaoud Exp $ +/* $Id: ShellCommandExit.cpp,v 1.3 2001/01/13 23:55:37 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/rosapps/sysutils/regexpl/ShellCommandExit.h b/rosapps/sysutils/regexpl/ShellCommandExit.h index 7b446259167..4bd9dfdc055 100644 --- a/rosapps/sysutils/regexpl/ShellCommandExit.h +++ b/rosapps/sysutils/regexpl/ShellCommandExit.h @@ -1,3 +1,5 @@ +/* $Id: ShellCommandExit.h,v 1.2 2001/01/13 23:55:37 narnaoud Exp $ */ + // ShellCommandExit.h: interface for the CShellCommandExit class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/ShellCommandHelp.cpp b/rosapps/sysutils/regexpl/ShellCommandHelp.cpp index c0b68bebaaf..5bde83df7ce 100644 --- a/rosapps/sysutils/regexpl/ShellCommandHelp.cpp +++ b/rosapps/sysutils/regexpl/ShellCommandHelp.cpp @@ -1,8 +1,8 @@ -/* $Id: ShellCommandHelp.cpp,v 1.3 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: ShellCommandHelp.cpp,v 1.4 2001/01/13 23:55:37 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/rosapps/sysutils/regexpl/ShellCommandHelp.h b/rosapps/sysutils/regexpl/ShellCommandHelp.h index ee0390fdc16..0b43ce40c19 100644 --- a/rosapps/sysutils/regexpl/ShellCommandHelp.h +++ b/rosapps/sysutils/regexpl/ShellCommandHelp.h @@ -1,3 +1,5 @@ +/* $Id: ShellCommandHelp.h,v 1.2 2001/01/13 23:55:37 narnaoud Exp $ */ + // ShellCommandHelp.h: interface for the CShellCommandHelp class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/ShellCommandNewKey.cpp b/rosapps/sysutils/regexpl/ShellCommandNewKey.cpp index 3ba509fdaf7..18c3e281744 100644 --- a/rosapps/sysutils/regexpl/ShellCommandNewKey.cpp +++ b/rosapps/sysutils/regexpl/ShellCommandNewKey.cpp @@ -1,8 +1,8 @@ -/* $Id: ShellCommandNewKey.cpp,v 1.3 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: ShellCommandNewKey.cpp,v 1.4 2001/01/13 23:55:37 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -116,7 +116,10 @@ int CShellCommandNewKey::Execute(CConsole &rConsole, CArgumentParser& rArguments ASSERT(pch >= pszNewKey); const TCHAR *pszPath; - TCHAR *pszSubkeyName = pch+1; + TCHAR *pszSubkeyName = pch; + if (*pch == _T('\\')) + pszSubkeyName++; + if (pch == pszNewKey) { pszPath = _T("."); diff --git a/rosapps/sysutils/regexpl/ShellCommandNewKey.h b/rosapps/sysutils/regexpl/ShellCommandNewKey.h index b254ff5e356..ba9a01cceae 100644 --- a/rosapps/sysutils/regexpl/ShellCommandNewKey.h +++ b/rosapps/sysutils/regexpl/ShellCommandNewKey.h @@ -1,3 +1,5 @@ +/* $Id: ShellCommandNewKey.h,v 1.2 2001/01/13 23:55:37 narnaoud Exp $ */ + // ShellCommandNewKey.h: interface for the CShellCommandNewKey class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/ShellCommandOwner.cpp b/rosapps/sysutils/regexpl/ShellCommandOwner.cpp index 11c0d97b770..28f7862ff39 100644 --- a/rosapps/sysutils/regexpl/ShellCommandOwner.cpp +++ b/rosapps/sysutils/regexpl/ShellCommandOwner.cpp @@ -1,8 +1,8 @@ -/* $Id: ShellCommandOwner.cpp,v 1.3 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: ShellCommandOwner.cpp,v 1.4 2001/01/13 23:55:37 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/rosapps/sysutils/regexpl/ShellCommandOwner.h b/rosapps/sysutils/regexpl/ShellCommandOwner.h index 1ac345fd5e9..d96c50d9a95 100644 --- a/rosapps/sysutils/regexpl/ShellCommandOwner.h +++ b/rosapps/sysutils/regexpl/ShellCommandOwner.h @@ -1,3 +1,5 @@ +/* $Id: ShellCommandOwner.h,v 1.2 2001/01/13 23:55:37 narnaoud Exp $ */ + // ShellCommandOwner.h: interface for the CShellCommandOwner class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/ShellCommandSACL.cpp b/rosapps/sysutils/regexpl/ShellCommandSACL.cpp index 929be091ef0..7ce4f7642f5 100644 --- a/rosapps/sysutils/regexpl/ShellCommandSACL.cpp +++ b/rosapps/sysutils/regexpl/ShellCommandSACL.cpp @@ -1,8 +1,8 @@ -/* $Id: ShellCommandSACL.cpp,v 1.3 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: ShellCommandSACL.cpp,v 1.4 2001/01/13 23:55:37 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/rosapps/sysutils/regexpl/ShellCommandSACL.h b/rosapps/sysutils/regexpl/ShellCommandSACL.h index ee04f2fe272..9089215ee52 100644 --- a/rosapps/sysutils/regexpl/ShellCommandSACL.h +++ b/rosapps/sysutils/regexpl/ShellCommandSACL.h @@ -1,3 +1,5 @@ +/* $Id: ShellCommandSACL.h,v 1.2 2001/01/13 23:55:37 narnaoud Exp $ */ + // ShellCommandSACL.h: interface for the CShellCommandSACL class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/ShellCommandSetValue.cpp b/rosapps/sysutils/regexpl/ShellCommandSetValue.cpp index e5a72afd955..2d1d1612256 100644 --- a/rosapps/sysutils/regexpl/ShellCommandSetValue.cpp +++ b/rosapps/sysutils/regexpl/ShellCommandSetValue.cpp @@ -1,8 +1,8 @@ -/* $Id: ShellCommandSetValue.cpp,v 1.3 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: ShellCommandSetValue.cpp,v 1.4 2001/01/13 23:55:37 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/rosapps/sysutils/regexpl/ShellCommandSetValue.h b/rosapps/sysutils/regexpl/ShellCommandSetValue.h index d25a7deb8b6..47a6353a95f 100644 --- a/rosapps/sysutils/regexpl/ShellCommandSetValue.h +++ b/rosapps/sysutils/regexpl/ShellCommandSetValue.h @@ -1,3 +1,5 @@ +/* $Id: ShellCommandSetValue.h,v 1.2 2001/01/13 23:55:37 narnaoud Exp $ */ + // ShellCommandSetValue.h: interface for the CShellCommandSetValue class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/ShellCommandValue.cpp b/rosapps/sysutils/regexpl/ShellCommandValue.cpp index 05560e38b71..6c107634a87 100644 --- a/rosapps/sysutils/regexpl/ShellCommandValue.cpp +++ b/rosapps/sysutils/regexpl/ShellCommandValue.cpp @@ -1,8 +1,8 @@ -/* $Id: ShellCommandValue.cpp,v 1.3 2001/01/10 01:25:29 narnaoud Exp $ +/* $Id: ShellCommandValue.cpp,v 1.4 2001/01/13 23:55:37 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/rosapps/sysutils/regexpl/ShellCommandValue.h b/rosapps/sysutils/regexpl/ShellCommandValue.h index fea43a6c689..64adbbb1774 100644 --- a/rosapps/sysutils/regexpl/ShellCommandValue.h +++ b/rosapps/sysutils/regexpl/ShellCommandValue.h @@ -1,3 +1,5 @@ +/* $Id: ShellCommandValue.h,v 1.2 2001/01/13 23:55:37 narnaoud Exp $ */ + // ShellCommandValue.h: interface for the CShellCommandValue class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/ShellCommandVersion.cpp b/rosapps/sysutils/regexpl/ShellCommandVersion.cpp index b9fc023a901..09a26b939c3 100644 --- a/rosapps/sysutils/regexpl/ShellCommandVersion.cpp +++ b/rosapps/sysutils/regexpl/ShellCommandVersion.cpp @@ -1,8 +1,8 @@ -/* $Id: ShellCommandVersion.cpp,v 1.2 2000/10/24 20:17:42 narnaoud Exp $ +/* $Id: ShellCommandVersion.cpp,v 1.3 2001/01/13 23:55:37 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/rosapps/sysutils/regexpl/ShellCommandVersion.h b/rosapps/sysutils/regexpl/ShellCommandVersion.h index 20b87ccd292..2c1596b7273 100644 --- a/rosapps/sysutils/regexpl/ShellCommandVersion.h +++ b/rosapps/sysutils/regexpl/ShellCommandVersion.h @@ -1,3 +1,5 @@ +/* $Id: ShellCommandVersion.h,v 1.2 2001/01/13 23:55:37 narnaoud Exp $ */ + // ShellCommandVersion.h: interface for the CShellCommandVersion class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/ShellCommandsLinkedList.cpp b/rosapps/sysutils/regexpl/ShellCommandsLinkedList.cpp index dd6a73d898c..c26d1a0cad1 100644 --- a/rosapps/sysutils/regexpl/ShellCommandsLinkedList.cpp +++ b/rosapps/sysutils/regexpl/ShellCommandsLinkedList.cpp @@ -1,8 +1,8 @@ -/* $Id: ShellCommandsLinkedList.cpp,v 1.2 2000/10/24 20:17:42 narnaoud Exp $ +/* $Id: ShellCommandsLinkedList.cpp,v 1.3 2001/01/13 23:55:37 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/rosapps/sysutils/regexpl/ShellCommandsLinkedList.h b/rosapps/sysutils/regexpl/ShellCommandsLinkedList.h index ef87c9c4a57..4cec3f01ad5 100644 --- a/rosapps/sysutils/regexpl/ShellCommandsLinkedList.h +++ b/rosapps/sysutils/regexpl/ShellCommandsLinkedList.h @@ -1,3 +1,5 @@ +/* $Id: ShellCommandsLinkedList.h,v 1.2 2001/01/13 23:55:37 narnaoud Exp $ */ + // ShellCommandsLinkedList.h: interface for the CShellCommandsLinkedList class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/TextHistory.cpp b/rosapps/sysutils/regexpl/TextHistory.cpp index 8847489b582..df276645b7f 100644 --- a/rosapps/sysutils/regexpl/TextHistory.cpp +++ b/rosapps/sysutils/regexpl/TextHistory.cpp @@ -1,8 +1,8 @@ -/* $Id: TextHistory.cpp,v 1.2 2000/10/24 20:17:42 narnaoud Exp $ +/* $Id: TextHistory.cpp,v 1.3 2001/01/13 23:55:37 narnaoud Exp $ * * regexpl - Console Registry Explorer * - * Copyright (C) 2000 Nedko Arnaoudov + * Copyright (C) 2000,2001 Nedko Arnaoudov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/rosapps/sysutils/regexpl/TextHistory.h b/rosapps/sysutils/regexpl/TextHistory.h index ad7ddf43c2a..39a7c232e1a 100644 --- a/rosapps/sysutils/regexpl/TextHistory.h +++ b/rosapps/sysutils/regexpl/TextHistory.h @@ -1,3 +1,5 @@ +/* $Id: TextHistory.h,v 1.2 2001/01/13 23:55:37 narnaoud Exp $ */ + // TextHistory.h: interface for the CTextHistory class. // ////////////////////////////////////////////////////////////////////// diff --git a/rosapps/sysutils/regexpl/ph.h b/rosapps/sysutils/regexpl/ph.h index 9def17cddbe..e044ffb226e 100644 --- a/rosapps/sysutils/regexpl/ph.h +++ b/rosapps/sysutils/regexpl/ph.h @@ -1,3 +1,5 @@ +/* $Id: ph.h,v 1.3 2001/01/13 23:54:40 narnaoud Exp $ */ + // ph.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently