- Fix KiDispatchException to unmask KI_EXCEPTION_INTERNAL when setting the exception...
[reactos.git] / rosapps / sysutils / regexpl / ShellCommandExit.cpp
1 /* $Id$
2 *
3 * regexpl - Console Registry Explorer
4 *
5 * Copyright (C) 2000-2005 Nedko Arnaudov <nedko@users.sourceforge.net>
6 *
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.
11 *
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.
16 *
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.
21 */
22
23 // ShellCommandExit.cpp: implementation of the CShellCommandExit class.
24 //
25 //////////////////////////////////////////////////////////////////////
26
27 #include "ph.h"
28 #include "ShellCommandExit.h"
29 #include "RegistryExplorer.h"
30
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 //////////////////////////////////////////////////////////////////////
36
37 CShellCommandExit::CShellCommandExit()
38 {
39
40 }
41
42 CShellCommandExit::~CShellCommandExit()
43 {
44
45 }
46
47 BOOL CShellCommandExit::Match(const TCHAR *pchCommand)
48 {
49 return _tcsicmp(pchCommand,EXIT_CMD) == 0;
50 }
51
52 int CShellCommandExit::Execute(CConsole &rConsole, CArgumentParser& rArguments)
53 {
54 rConsole.Write(GOODBYE_MSG);
55 return 0;
56 }
57
58 const TCHAR * CShellCommandExit::GetHelpString()
59 {
60 return EXIT_CMD_SHORT_DESC _T("Syntax: ") EXIT_CMD _T("\n");
61 }
62
63 const TCHAR * CShellCommandExit::GetHelpShortDescriptionString()
64 {
65 return EXIT_CMD_SHORT_DESC;
66 }
67