-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add windows resource information capability (#13017)
* Add windows resource information capability - Add detailed information for Windows agent binaries and libraries. - Add version.rc file with default values and allowing to set some of them by defines - Add version.rc customization by bump_version.sh * Update src/win32/version.rc Co-authored-by: Dword <octa.tala@gmail.com>
- Loading branch information
Showing
7 changed files
with
131 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* | ||
* Copyright (C) 2015, Wazuh Inc. | ||
* | ||
* This program is free software; you can redistribute it | ||
* and/or modify it under the terms of the GNU General Public | ||
* License (version 2) as published by the FSF - Free Software | ||
* Foundation. | ||
*/ | ||
|
||
#include <winver.h> | ||
#include <ntdef.h> | ||
|
||
#ifdef RC_INVOKED | ||
|
||
#define Q(x) #x | ||
#define QUOTE(x) Q(x) | ||
|
||
#ifndef VER_PRODUCTVERSION | ||
#define VER_PRODUCTVERSION 4,4,0,0 | ||
#endif | ||
|
||
#ifndef VER_PRODUCTVERSION_STR | ||
#define VER_PRODUCTVERSION_STR v4.4.0 | ||
#endif | ||
|
||
#ifndef VER_FILEFLAGS | ||
#define VER_FILEFLAGS 0 | ||
#endif | ||
|
||
#ifndef VER_TYPE | ||
#define VER_TYPE VFT_UNKNOWN | ||
#endif | ||
|
||
VS_VERSION_INFO VERSIONINFO | ||
FILEVERSION VER_PRODUCTVERSION | ||
PRODUCTVERSION VER_PRODUCTVERSION | ||
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK | ||
FILEFLAGS VER_FILEFLAGS | ||
FILEOS VOS_NT | ||
FILETYPE VER_TYPE | ||
BEGIN | ||
BLOCK "StringFileInfo" | ||
BEGIN | ||
BLOCK "040904b0" | ||
BEGIN | ||
VALUE "CompanyName", "Wazuh Inc." | ||
VALUE "FileDescription", "Wazuh Windows Agent internal file" | ||
VALUE "FileVersion", QUOTE(VER_PRODUCTVERSION_STR) | ||
VALUE "LegalCopyright", "Copyright (C) 2015, Wazuh Inc." | ||
VALUE "ProductName", "Wazuh Windows Agent" | ||
VALUE "ProductVersion", QUOTE(VER_PRODUCTVERSION_STR) | ||
VALUE "Info", "https://www.wazuh.com" | ||
VALUE "Licence", "GPLv2" | ||
END | ||
END | ||
BLOCK "VarFileInfo" | ||
BEGIN | ||
VALUE "Translation", 0x409, 1200 | ||
END | ||
END | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters