Registry Explorer (console tool) by Nedko Arnaoudov added to the system utilities...
[reactos.git] / rosapps / sysutils / regexpl / ShellCommandExit.cpp
1 /* $Id: ShellCommandExit.cpp,v 1.1 2000/10/04 21:04:31 ea Exp $
2 *
3 * regexpl - Console Registry Explorer
4 *
5 * Copyright (c) 1999-2000 Nedko Arnaoudov <nedkohome@atia.com>
6 *
7 * License: GNU GPL
8 *
9 */
10
11 // ShellCommandExit.cpp: implementation of the CShellCommandExit class.
12 //
13 //////////////////////////////////////////////////////////////////////
14
15 #include "ph.h"
16 #include "ShellCommandExit.h"
17 #include "RegistryExplorer.h"
18
19 #define EXIT_CMD _T("EXIT")
20 #define EXIT_CMD_SHORT_DESC EXIT_CMD _T(" command termiantes current instance of Registry Explorer.\n")
21 //////////////////////////////////////////////////////////////////////
22 // Construction/Destruction
23 //////////////////////////////////////////////////////////////////////
24
25 CShellCommandExit::CShellCommandExit()
26 {
27
28 }
29
30 CShellCommandExit::~CShellCommandExit()
31 {
32
33 }
34
35 BOOL CShellCommandExit::Match(const TCHAR *pchCommand)
36 {
37 return _tcsicmp(pchCommand,EXIT_CMD) == 0;
38 }
39
40 int CShellCommandExit::Execute(CConsole &rConsole, CArgumentParser& rArguments)
41 {
42 rConsole.Write(GOODBYE_MSG);
43 return 0;
44 }
45
46 const TCHAR * CShellCommandExit::GetHelpString()
47 {
48 return EXIT_CMD_SHORT_DESC _T("Syntax: ") EXIT_CMD _T("\n");
49 }
50
51 const TCHAR * CShellCommandExit::GetHelpShortDescriptionString()
52 {
53 return EXIT_CMD_SHORT_DESC;
54 }
55