author | mb |
Wed, 04 Dec 2013 15:00:32 +0100 | |
changeset 10 | 67b71eb218aa |
parent 7 | 903480cebdfb |
permissions | -rw-r--r-- |
mb@7 | 1 |
// The following are message definitions. |
mb@7 | 2 |
// |
mb@7 | 3 |
// Values are 32 bit values laid out as follows: |
mb@7 | 4 |
// |
mb@7 | 5 |
// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 |
mb@7 | 6 |
// 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 |
mb@7 | 7 |
// +---+-+-+-----------------------+-------------------------------+ |
mb@7 | 8 |
// |Sev|C|R| Facility | Code | |
mb@7 | 9 |
// +---+-+-+-----------------------+-------------------------------+ |
mb@7 | 10 |
// |
mb@7 | 11 |
// where |
mb@7 | 12 |
// |
mb@7 | 13 |
// Sev - is the severity code |
mb@7 | 14 |
// |
mb@7 | 15 |
// 00 - Success |
mb@7 | 16 |
// 01 - Informational |
mb@7 | 17 |
// 10 - Warning |
mb@7 | 18 |
// 11 - Error |
mb@7 | 19 |
// |
mb@7 | 20 |
// C - is the Customer code flag |
mb@7 | 21 |
// |
mb@7 | 22 |
// R - is a reserved bit |
mb@7 | 23 |
// |
mb@7 | 24 |
// Facility - is the facility code |
mb@7 | 25 |
// |
mb@7 | 26 |
// Code - is the facility's status code |
mb@7 | 27 |
// |
mb@7 | 28 |
// |
mb@7 | 29 |
// Define the facility codes |
mb@7 | 30 |
// |
mb@7 | 31 |
#define FACILITY_SYSTEM 0x0 |
mb@7 | 32 |
#define FACILITY_STUBS 0x3 |
mb@7 | 33 |
#define FACILITY_RUNTIME 0x2 |
mb@7 | 34 |
#define FACILITY_IO_ERROR_CODE 0x4 |
mb@7 | 35 |
|
mb@7 | 36 |
|
mb@7 | 37 |
// |
mb@7 | 38 |
// Define the severity codes |
mb@7 | 39 |
// |
mb@7 | 40 |
#define STATUS_SEVERITY_WARNING 0x2 |
mb@7 | 41 |
#define STATUS_SEVERITY_SUCCESS 0x0 |
mb@7 | 42 |
#define STATUS_SEVERITY_INFORMATIONAL 0x1 |
mb@7 | 43 |
#define STATUS_SEVERITY_ERROR 0x3 |
mb@7 | 44 |
|
mb@7 | 45 |
|
mb@7 | 46 |
// |
mb@7 | 47 |
// MessageId: SVC_ERROR |
mb@7 | 48 |
// |
mb@7 | 49 |
// MessageText: |
mb@7 | 50 |
// |
mb@10 | 51 |
// %2. |
mb@7 | 52 |
// |
mb@7 | 53 |
#define SVC_ERROR ((DWORD)0xC0020001L) |
mb@7 | 54 |
|
mb@7 | 55 |
// A message file must end with a period on its own line |
mb@7 | 56 |
// followed by a blank line. |