ReactOS 0.4.15-dev-7953-g1f49173
ShellCommandVersion.cpp
Go to the documentation of this file.
1/*
2 * regexpl - Console Registry Explorer
3 *
4 * Copyright (C) 2000-2005 Nedko Arnaudov <nedko@users.sourceforge.net>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; see the file COPYING. If not, write to
18 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
20 */
21
22// ShellCommandVersion.cpp: implementation of the CShellCommandVersion class.
23//
25
26#include "ph.h"
27#include "ShellCommandVersion.h"
28#include "RegistryExplorer.h"
29
30#define VER_CMD _T("VER")
31#define VER_CMD_SHORT_DESC VER_CMD _T(" command displays information about this program.\n")
32
34// Construction/Destruction
36
38{
39}
40
42{
43}
44
46{
47 return _tcsicmp(pchCommand,VER_CMD) == 0;
48}
49
51{
52 rConsole.Write(HELLO_MSG);
53 rConsole.Write(VER_MSG);
54 return 0;
55}
56
58{
59 return VER_CMD_SHORT_DESC _T("Syntax: ") VER_CMD _T("\n");
60}
61
63{
64 return VER_CMD_SHORT_DESC;
65}
#define VER_MSG
#define HELLO_MSG
#define VER_CMD_SHORT_DESC
#define VER_CMD
BOOL Write(const TCHAR *p, DWORD dwChars=0)
Definition: Console.cpp:90
virtual int Execute(CConsole &rConsole, CArgumentParser &rArguments)
virtual const TCHAR * GetHelpString()
virtual const TCHAR * GetHelpShortDescriptionString()
virtual BOOL Match(const TCHAR *pchCommand)
unsigned int BOOL
Definition: ntddk_ex.h:94
#define _T(x)
Definition: vfdio.h:22
char TCHAR
Definition: xmlstorage.h:189
#define _tcsicmp
Definition: xmlstorage.h:205