-
Notifications
You must be signed in to change notification settings - Fork 1
/
Res.rc
55 lines (52 loc) · 1.79 KB
/
Res.rc
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
#include <winver.h>
#include <winuser.h>
#include "Version.h"
//Note on VERSIONINFO
//According to MSDN https://msdn.microsoft.com/en-us/library/windows/desktop/aa381058.aspx required StringFileInfo fields are:
//CompanyName, FileDescription, FileVersion, InternalName, ProductName, ProductVersion and OriginalFilename
//But actually Windows does nothing if some of these fields (or VERSIONINFO altogether) are absent
//Moreover, since Vista Details tab (ex Version tab) of file properties dialog shows only limited number of StringFileInfo entries, even omitting some "required" ones
//FILEFLAGS is complete bogus - Details/Version dialog never displays anything regarding those flags, they are totally ignored by Windows
VS_VERSION_INFO VERSIONINFO
FILEVERSION SNK_VSVI_VERSION
PRODUCTVERSION SNK_VSVI_VERSION
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS 0x0
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE VFT2_UNKNOWN
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904B0"
BEGIN
#ifdef HIDDEN
#ifdef _WIN64
VALUE "FileDescription", "Search and Kill (x64 windowless)"
#else
VALUE "FileDescription", "Search and Kill (windowless)"
#endif
VALUE "InternalName", "SnKh"
VALUE "OriginalFilename", "SnKh.exe"
#else
#ifdef _WIN64
VALUE "FileDescription", "Search and Kill (x64)"
#else
VALUE "FileDescription", "Search and Kill"
#endif
VALUE "InternalName", "SnK"
VALUE "OriginalFilename", "SnK.exe"
#endif
VALUE "ProductName", "Search and Kill"
VALUE "FileVersion", SNK_STR_VERSION
VALUE "CompanyName", "Lcferrum"
VALUE "LegalCopyright", "Copyright (c) " SNK_CRIGHT_YEARS " Lcferrum"
VALUE "ProductVersion", SNK_STR_VERSION
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "SnK.manifest"