-
Notifications
You must be signed in to change notification settings - Fork 195
/
HashCheck.rc
149 lines (136 loc) · 7.45 KB
/
HashCheck.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
//
// NOTE: This file is encoded in UTF-8.
//
/**
* Why does this resource script require version 6 or newer of the Resource
* Compiler? Microsoft's Resource Compiler (even the latest version from the
* Longhorn SDK) will fail with a fatal error if #pragma code_page is used to
* declare that the encoding of the resource script is double-byte Unicode
* (UTF-16). This behavior is very puzzling considering that version 5 of the
* Resource Compiler found in Visual Studio 2002 thru 2005 can compile Unicode
* resource scripts only if they are in the UTF-16 encoding. So the Resource
* Compiler forces the use of UTF-16, yet it does not support declaring that the
* code page is UTF-16. This is not a problem in Visual Studio 2002 thru 2005,
* but in Visual Studio 6, the use of UTF-16 without the proper declaration
* results in strange messages being printed by the development environment
* during compilation. As a result, it was decided that UTF-8 would be used
* (which is supported only by version 6 or higher), since the Resource Compiler
* does not reject the UTF-8 #pragma code_page declaration as it strangely and
* mysteriously does with UTF-16. If you do not plan on compiling with VS6, you
* can simply convert from UTF-8 to UTF-16 and eliminate the #pragma code_page
* declaration to enable compilation with older versions of the Resource
* Compiler.
**/
#include <winresrc.h>
#include "HashCheckResources.h"
#include "version.h"
// Remove the following line if using UTF-16 instead of UTF-8
#pragma code_page(65001)
#ifdef _DEBUG
#define MY_VS_FF_DEBUG VS_FF_DEBUG
#else
#define MY_VS_FF_DEBUG 0x0L
#endif
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
VS_VERSION_INFO VERSIONINFO
FILEVERSION HASHCHECK_VERSION_FULL
PRODUCTVERSION HASHCHECK_VERSION_FULL
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS MY_VS_FF_DEBUG
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_DLL
FILESUBTYPE VFT2_UNKNOWN
{
BLOCK "StringFileInfo"
{
BLOCK "040904b0" // English (U.S.)
{
VALUE "FileDescription", HASHCHECK_NAME_STR
VALUE "FileVersion", HASHCHECK_VERSION_STR ARCH_NAME_TAIL
VALUE "LegalCopyright", "Copyright © " HASHCHECK_COPYRIGHT_STR
VALUE "OriginalFilename", HASHCHECK_FILENAME_STR
}
}
BLOCK "VarFileInfo"
{
VALUE "Translation", 0x0409, 0x04b0 // English (U.S.)
}
}
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDD_HASHSAVE DIALOGEX 0, 0, 300, 28
STYLE DS_MODALFRAME | DS_SHELLFONT | DS_CENTER | WS_POPUPWINDOW | WS_CAPTION | WS_MINIMIZEBOX
EXSTYLE WS_EX_APPWINDOW
FONT 8, "MS Shell Dlg"
{
CONTROL "", IDC_PROG_TOTAL, "msctls_progress32", PBS_SMOOTH, 7, 7, 178, 6
CONTROL "", IDC_PROG_FILE, "msctls_progress32", PBS_SMOOTH, 7, 15, 178, 6
PUSHBUTTON "", IDC_PAUSE, 189, 7, 50, 14, WS_TABSTOP | WS_GROUP
PUSHBUTTON "", IDC_CANCEL, 243, 7, 50, 14, WS_TABSTOP
}
IDD_HASHPROP DIALOGEX 0, 0, 227, 218
STYLE DS_SHELLFONT | WS_CAPTION
FONT 8, "MS Shell Dlg"
{
GROUPBOX "", IDC_STATUSBOX, 7, 158, 213, 32, WS_GROUP
CONTROL "", IDC_PROG_TOTAL, "msctls_progress32", PBS_SMOOTH, 13, 169, 201, 6
CONTROL "", IDC_PROG_FILE, "msctls_progress32", PBS_SMOOTH, 13, 177, 201, 6
EDITTEXT IDC_SEARCHBOX 13, 169, 147, 14, WS_TABSTOP | WS_DISABLED | NOT WS_VISIBLE | ES_AUTOHSCROLL
PUSHBUTTON "", IDC_FIND_NEXT 164, 169, 50, 14, WS_TABSTOP | WS_DISABLED | NOT WS_VISIBLE
PUSHBUTTON "", IDC_PAUSE, 62, 197, 50, 14, WS_TABSTOP | WS_GROUP
PUSHBUTTON "", IDC_STOP, 116, 197, 50, 14, WS_TABSTOP
PUSHBUTTON "", IDC_SAVE, 116, 197, 50, 14, WS_TABSTOP | WS_DISABLED | NOT WS_VISIBLE
PUSHBUTTON "", IDC_OPTIONS, 170, 197, 50, 14, WS_TABSTOP
EDITTEXT IDC_RESULTS, 7, 7, 213, 144, WS_TABSTOP | WS_GROUP | WS_HSCROLL | WS_VSCROLL | ES_MULTILINE | ES_NOHIDESEL | ES_READONLY
}
IDD_HASHVERF DIALOGEX 0, 0, 400, 250
STYLE DS_MODALFRAME | DS_SHELLFONT | DS_CENTER | WS_POPUPWINDOW | WS_CAPTION | WS_MINIMIZEBOX
EXSTYLE WS_EX_APPWINDOW
FONT 8, "MS Shell Dlg"
{
CONTROL "", IDC_LIST, "SysListView32", WS_TABSTOP | WS_GROUP | WS_BORDER | LVS_OWNERDATA | LVS_REPORT | LVS_SHOWSELALWAYS, 7, 7, 386, 170
GROUPBOX "", IDC_SUMMARY, 7, 184, 386, 38, WS_GROUP
LTEXT "", IDC_MATCH_LABEL, 13, 195, 56, 8
RTEXT "", IDC_MATCH_RESULTS, 73, 195, 104, 8
LTEXT "", IDC_MISMATCH_LABEL, 13, 207, 56, 8
RTEXT "", IDC_MISMATCH_RESULTS, 73, 207, 104, 8
LTEXT "", IDC_UNREADABLE_LABEL, 223, 195, 56, 8
RTEXT "", IDC_UNREADABLE_RESULTS, 283, 195, 104, 8
LTEXT "", IDC_PENDING_LABEL, 223, 207, 56, 8
RTEXT "", IDC_PENDING_RESULTS, 283, 207, 104, 8
CONTROL "", IDC_PROG_TOTAL, "msctls_progress32", PBS_SMOOTH, 7, 229, 224, 6
CONTROL "", IDC_PROG_FILE, "msctls_progress32", PBS_SMOOTH, 7, 237, 224, 6
PUSHBUTTON "", IDC_PAUSE, 235, 229, 50, 14, WS_TABSTOP | WS_GROUP
PUSHBUTTON "", IDC_STOP, 289, 229, 50, 14, WS_TABSTOP
DEFPUSHBUTTON "", IDC_EXIT, 343, 229, 50, 14, WS_TABSTOP
}
IDD_OPTIONS DIALOGEX 10, 10, 200, 264
STYLE DS_MODALFRAME | DS_SHELLFONT | WS_POPUPWINDOW | WS_CAPTION
FONT 8, "MS Shell Dlg"
{
GROUPBOX "", IDC_OPT_CM, 7, 7, 186, 58, WS_GROUP
AUTORADIOBUTTON "", IDC_OPT_CM_ALWAYS, 13, 20, 174, 10, WS_TABSTOP
AUTORADIOBUTTON "", IDC_OPT_CM_EXTENDED, 13, 34, 174, 10
AUTORADIOBUTTON "", IDC_OPT_CM_NEVER, 13, 48, 174, 10
GROUPBOX "", IDC_OPT_ENCODING, 7, 72, 186, 58, WS_GROUP
AUTORADIOBUTTON "", IDC_OPT_ENCODING_UTF8, 13, 85, 174, 10, WS_TABSTOP
AUTORADIOBUTTON "", IDC_OPT_ENCODING_UTF16, 13, 99, 174, 10
AUTORADIOBUTTON "", IDC_OPT_ENCODING_ANSI, 13, 113, 174, 10
GROUPBOX "", IDC_OPT_CHK, 7, 137, 186, 58, WS_GROUP
AUTOCHECKBOX "C&RC-32",IDC_OPT_CHK_CRC32, 13, 150, 54, 10, WS_TABSTOP
AUTOCHECKBOX "MD5",IDC_OPT_CHK_MD5, 13, 164, 54, 10, WS_TABSTOP
AUTOCHECKBOX "SHA-1",IDC_OPT_CHK_SHA1, 13, 178, 54, 10, WS_TABSTOP
AUTOCHECKBOX "SHA-256",IDC_OPT_CHK_SHA256, 73, 150, 54, 10, WS_TABSTOP
AUTOCHECKBOX "SHA-512",IDC_OPT_CHK_SHA512, 73, 164, 54, 10, WS_TABSTOP
AUTOCHECKBOX "SHA3-256",IDC_OPT_CHK_SHA3_256,133,150, 54, 10, WS_TABSTOP
AUTOCHECKBOX "SHA3-512",IDC_OPT_CHK_SHA3_512,133,164, 54, 10, WS_TABSTOP
GROUPBOX "", IDC_OPT_FONT, 7, 202, 186, 34, WS_GROUP
CTEXT "", IDC_OPT_FONT_PREVIEW, 13, 215, 100, 14, SS_CENTERIMAGE | SS_SUNKEN
PUSHBUTTON "", IDC_OPT_FONT_CHANGE, 117, 215, 70, 14, WS_TABSTOP
CONTROL "<a href=""https://github.com/gurnec/HashCheck"">HashCheck</a>", IDC_OPT_LINK, "SysLink", WS_TABSTOP | WS_GROUP, 13, 244, 70, 10
DEFPUSHBUTTON "", IDC_OK, 89, 243, 50, 14, WS_TABSTOP | WS_GROUP
PUSHBUTTON "", IDC_CANCEL, 143, 243, 50, 14, WS_TABSTOP
}
IDR_RT_MANIFEST RT_MANIFEST "HashCheck.manifest"
IDI_FILETYPE ICON "HashCheck.ico"
IDI_MENUBITMAP BITMAP "HashCheck.bmp"
#include "HashCheckTranslations.rc"