1 /* $Id: ShellCommandExit.cpp,v 1.3 2001/01/13 23:55:37 narnaoud Exp $
3 * regexpl - Console Registry Explorer
5 * Copyright (C) 2000,2001 Nedko Arnaoudov <nedkohome@atia.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; see the file COPYING. If not, write to
19 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
23 // ShellCommandExit.cpp: implementation of the CShellCommandExit class.
25 //////////////////////////////////////////////////////////////////////
28 #include "ShellCommandExit.h"
29 #include "RegistryExplorer.h"
31 #define EXIT_CMD _T("EXIT")
32 #define EXIT_CMD_SHORT_DESC EXIT_CMD _T(" command termiantes current instance of Registry Explorer.\n")
33 //////////////////////////////////////////////////////////////////////
34 // Construction/Destruction
35 //////////////////////////////////////////////////////////////////////
37 CShellCommandExit::CShellCommandExit()
42 CShellCommandExit::~CShellCommandExit()
47 BOOL
CShellCommandExit::Match(const TCHAR
*pchCommand
)
49 return _tcsicmp(pchCommand
,EXIT_CMD
) == 0;
52 int CShellCommandExit::Execute(CConsole
&rConsole
, CArgumentParser
& rArguments
)
54 rConsole
.Write(GOODBYE_MSG
);
58 const TCHAR
* CShellCommandExit::GetHelpString()
60 return EXIT_CMD_SHORT_DESC
_T("Syntax: ") EXIT_CMD
_T("\n");
63 const TCHAR
* CShellCommandExit::GetHelpShortDescriptionString()
65 return EXIT_CMD_SHORT_DESC
;