-
Notifications
You must be signed in to change notification settings - Fork 1
/
exeversion.h
74 lines (64 loc) · 3.71 KB
/
exeversion.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
///////////////////////////////////////////////////////////////////////////////
///
/// Copyright (c) 2016-2018 Oliver Schneider (assarbad.net)
///
/// Permission is hereby granted, free of charge, to any person obtaining a
/// copy of this software and associated documentation files (the "Software"),
/// to deal in the Software without restriction, including without limitation
/// the rights to use, copy, modify, merge, publish, distribute, sublicense,
/// and/or sell copies of the Software, and to permit persons to whom the
/// Software is furnished to do so, subject to the following conditions:
///
/// The above copyright notice and this permission notice shall be included in
/// all copies or substantial portions of the Software.
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
/// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
/// DEALINGS IN THE SOFTWARE.
///
///////////////////////////////////////////////////////////////////////////////
#ifndef __EXEVERSION_H_VER__
#define __EXEVERSION_H_VER__ 2021122021
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif
#include "hgid.h"
// ---------------------------------------------------------------------------
// Several defines have to be given before including this file. These are:
// ---------------------------------------------------------------------------
#define TEXT_AUTHOR Oliver Schneider // author (optional value)
#define PRD_MAJVER 1 // major product version
#define PRD_MINVER 0 // minor product version
#define PRD_PATCH 0 // patch number
#define PRD_BUILD HG_REV_NO // build number for product
#define PRD_BUILD_NUMERIC HG_REV_NO_NUMERIC // build number for product
#define FILE_MAJVER PRD_MAJVER // major file version
#define FILE_MINVER PRD_MINVER // minor file version
#define FILE_PATCH PRD_PATCH // patch number
#define FILE_BUILD PRD_BUILD // build number
#define FILE_BUILD_NUMERIC PRD_BUILD_NUMERIC // build number for product
// clang-format off
#define EXE_YEAR 2021 // current year or timespan (e.g. 2003-2007)
#define TEXT_WEBSITE https:/##/assarbad.net // website
#define TEXT_PRODUCTNAME PEB and TEB investigator // product's name
#define TEXT_FILEDESC Small program to investigate the PEB and TEB // component description
#define TEXT_COMPANY Oliver Schneider (assarbad.net) // company
#define TEXT_MODULE NtPebTeb // module name
#define TEXT_COPYRIGHT Copyright \x00a9 EXE_YEAR TEXT_COMPANY // copyright information
// #define TEXT_SPECIALBUILD // optional comment for special builds
#define TEXT_INTERNALNAME NtPebTeb.exe
// clang-format on
#define _ANSISTRING(text) #text
#define ANSISTRING(text) _ANSISTRING(text)
#define _WIDESTRING(text) L##text
#define WIDESTRING(text) _WIDESTRING(text)
#define PRESET_UNICODE_STRING(symbol, buffer) \
UNICODE_STRING symbol = {sizeof(WIDESTRING(buffer)) - sizeof(WCHAR), sizeof(WIDESTRING(buffer)), WIDESTRING(buffer)};
#define CREATE_XVER(maj, min, patch, build) maj##, ##min##, ##patch##, ##build
#define CREATE_FVER(maj, min, patch, build) maj##.##min##.##patch##.##build
#define CREATE_PVER(maj, min, patch, build) maj##.##min##.##patch
#endif // __EXEVERSION_H_VER__