-
Notifications
You must be signed in to change notification settings - Fork 1
/
EvLogMessages.h
95 lines (86 loc) · 1.93 KB
/
EvLogMessages.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// ***** MZCSvcMessages.mc *****
// See http://msdn.microsoft.com/en-us/library/windows/desktop/dd996906(v=vs.85).aspx
// Header section
// Category definitions.
//
// Values are 32 bit values laid out as follows:
//
// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
// +---+-+-+-----------------------+-------------------------------+
// |Sev|C|R| Facility | Code |
// +---+-+-+-----------------------+-------------------------------+
//
// where
//
// Sev - is the severity code
//
// 00 - Success
// 01 - Informational
// 10 - Warning
// 11 - Error
//
// C - is the Customer code flag
//
// R - is a reserved bit
//
// Facility - is the facility code
//
// Code - is the facility's status code
//
//
// Define the facility codes
//
#define FACILITY_SYSTEM 0x0
#define FACILITY_STUBS 0x3
#define FACILITY_RUNTIME 0x2
#define FACILITY_IO_ERROR_CODE 0x4
//
// Define the severity codes
//
#define STATUS_SEVERITY_WARNING 0x2
#define STATUS_SEVERITY_SUCCESS 0x0
#define STATUS_SEVERITY_INFORMATIONAL 0x1
#define STATUS_SEVERITY_ERROR 0x3
//
// MessageId: CAT_APP
//
// MessageText:
//
// App
//
#define CAT_APP ((DWORD)0x00000001L)
#define CATEGORY_COUNT 1
// Message definitions.
//
// MessageId: MSG_SUCCESS
//
// MessageText:
//
// %1
//
#define MSG_SUCCESS ((DWORD)0x0002E001L)
//
// MessageId: MSG_INFORMATIONAL
//
// MessageText:
//
// %1
//
#define MSG_INFORMATIONAL ((DWORD)0x4002E002L)
//
// MessageId: MSG_WARNING
//
// MessageText:
//
// %1
//
#define MSG_WARNING ((DWORD)0x8002E003L)
//
// MessageId: MSG_ERROR
//
// MessageText:
//
// %1
//
#define MSG_ERROR ((DWORD)0xC002E004L)