Skip to content

Commit 6c7d24e

Browse files
jgautier-anssifabienfl-orc
authored andcommitted
OrcLib: UtiltiesMain: add methods ToolName, ToolVersion, ToolDescription
Open to version definition outside kOrcFileVerStringW. Add default Tool*() functions.
1 parent 45b5605 commit 6c7d24e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/OrcCommand/UtilitiesMain.h

+9-1
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,14 @@ class UtilitiesMain
797797
virtual HRESULT GetConfigurationFromArgcArgv(int argc, const WCHAR* argv[]) = 0;
798798
virtual HRESULT CheckConfiguration() = 0;
799799

800+
//
801+
// Tool Description
802+
//
803+
static LPCWSTR ToolName() { return kOrcMetaNameW; }
804+
static LPCWSTR ToolDescription() { return L"DFIR-ORC Windows artefact collection tool"; }
805+
static LPCWSTR ToolVersion() { return kOrcVersionStringW; }
806+
807+
800808
//
801809
// Output handling
802810
//
@@ -850,7 +858,7 @@ class UtilitiesMain
850858
// TODO: FIXME
851859

852860
Cmd.LoadCommonExtensions();
853-
Cmd.PrintHeader(UtilityT::ToolName(), UtilityT::ToolDescription(), kOrcFileVerStringW);
861+
Cmd.PrintHeader(UtilityT::ToolName(), UtilityT::ToolDescription(), UtilityT::ToolVersion());
854862

855863
try
856864
{

0 commit comments

Comments
 (0)