blob: 313283137b69d1cf4fe1ceb60d358bea75dac52a (
plain)
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
|
// wds_constants.h
//
// WinDirStat - Directory Statistics
// Copyright (C) 2003-2005 Bernhard Seifert
// Copyright (C) 2004-2016 WinDirStat team (windirstat.info)
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
#ifndef __WDS_CONSTANTS_H_VER__
#define __WDS_CONSTANTS_H_VER__ 2014021723
#if (defined(_MSC_VER) && (_MSC_VER >= 1020)) || defined(__MCPP)
#pragma once
#endif // Check for "#pragma once" support
namespace wds
{
const size_t maxContacts = 5;
typedef struct _demangle_t
{
WCHAR from;
WCHAR to;
} demangle_t;
typedef struct _contact_t
{
LPWSTR name;
LPWSTR mail;
LPWSTR weburl;
LPWSTR description;
} contact_t;
typedef struct _translator_t
{
LCID id;
LPWSTR lngNative;
LPWSTR lngEnglish;
LPWSTR lngISO639_1;
contact_t translators[maxContacts];
} translator_t;
extern translator_t translators[];
extern contact_t authors[];
extern demangle_t translator_demangle_email[];
// Single character constants
const TCHAR chrSharp = _T('#');
const TCHAR chrBracketOpen = _T('(');
const TCHAR chrBracketClose = _T(')');
const TCHAR chrComma = _T(',');
const TCHAR chrDot = _T('.');
const TCHAR chrColon = _T(':');
const TCHAR chrAt = _T('\x40');
const TCHAR chrBackslash = _T('\\');
const TCHAR chrPipe = _T('|');
const TCHAR chrZero = _T('0');
const TCHAR chrSmallA = _T('a');
const TCHAR chrCapA = _T('A');
const TCHAR chrCapB = _T('B');
const TCHAR chrCapC = _T('C');
const TCHAR chrCapZ = _T('Z');
// Constants strings
const LPCTSTR strEmpty = _T("");
const LPCTSTR strBlankSpace = _T(" ");
const LPCTSTR strStar = _T("*");
const LPCTSTR strComma = _T(",");
const LPCTSTR strDot = _T(".");
const LPCTSTR strBackslash = _T("\\");
const LPCTSTR strPipe = _T("|");
const LPCTSTR strDollar = _T("$");
const LPCTSTR strPercent = _T("%");
const LPCTSTR strExplorerKey = _T("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer");
#define STR_LANG_SUFFIX ".wdslng"
const LPCTSTR strLangSuffix = _T(STR_LANG_SUFFIX);
# define STR_RESOURCE_PREFIX "wdsr"
const LPCTSTR strLangPrefix = _T(STR_RESOURCE_PREFIX);
const LPCTSTR strInvalidAttributes = _T("??????");
const LPCTSTR strAttributeReadonly = _T("R");
const LPCTSTR strAttributeHidden = _T("H");
const LPCTSTR strAttributeSystem = _T("S");
const LPCTSTR strAttributeArchive = _T("A");
const LPCTSTR strAttributeCompressed = _T("R");
const LPCTSTR strAttributeEncrypted = _T("E");
const int iLangCodeLength = 4;
const int iNumDriveLetters = (chrCapZ - chrCapA) + 1;
}
#endif // __WDS_CONSTANTS_H_VER__
|