080ac79e745c4cbe796da637b7898463f89b8aa6
1 /* $Id: ShellCommandExit.cpp,v 1.1 2000/10/04 21:04:31 ea Exp $
3 * regexpl - Console Registry Explorer
5 * Copyright (c) 1999-2000 Nedko Arnaoudov <nedkohome@atia.com>
11 // ShellCommandExit.cpp: implementation of the CShellCommandExit class.
13 //////////////////////////////////////////////////////////////////////
16 #include "ShellCommandExit.h"
17 #include "RegistryExplorer.h"
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 //////////////////////////////////////////////////////////////////////
25 CShellCommandExit::CShellCommandExit()
30 CShellCommandExit::~CShellCommandExit()
35 BOOL
CShellCommandExit::Match(const TCHAR
*pchCommand
)
37 return _tcsicmp(pchCommand
,EXIT_CMD
) == 0;
40 int CShellCommandExit::Execute(CConsole
&rConsole
, CArgumentParser
& rArguments
)
42 rConsole
.Write(GOODBYE_MSG
);
46 const TCHAR
* CShellCommandExit::GetHelpString()
48 return EXIT_CMD_SHORT_DESC
_T("Syntax: ") EXIT_CMD
_T("\n");
51 const TCHAR
* CShellCommandExit::GetHelpShortDescriptionString()
53 return EXIT_CMD_SHORT_DESC
;