]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/lib/isc/win32/include/isc/bindevt.h
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ntp / lib / isc / win32 / include / isc / bindevt.h
1 /*
2  * Copyright (C) 2004, 2007  Internet Systems Consortium, Inc. ("ISC")
3  * Copyright (C) 2001  Internet Software Consortium.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for any
6  * purpose with or without fee is hereby granted, provided that the above
7  * copyright notice and this permission notice appear in all copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15  * PERFORMANCE OF THIS SOFTWARE.
16  */
17
18 /* $Id: bindevt.h,v 1.6 2007/06/19 23:47:20 tbox Exp $ */
19
20 #ifndef ISC_BINDEVT_H
21 #define ISC_BINDEVT_H 1
22
23 /*
24  * This is used for the event log for both logging the messages and
25  * later on by the event viewer when looking at the events
26  */
27
28 /*
29  * Values are 32 bit values layed out as follows:
30  *
31  *   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
32  *   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
33  *  +---+-+-+-----------------------+-------------------------------+
34  *  |Sev|C|R|     Facility          |               Code            |
35  *  +---+-+-+-----------------------+-------------------------------+
36  *
37  *  where
38  *
39  *      Sev - is the severity code
40  *
41  *          00 - Success
42  *          01 - Informational
43  *          10 - Warning
44  *          11 - Error
45  *
46  *      C - is the Customer code flag
47  *
48  *      R - is a reserved bit
49  *
50  *      Facility - is the facility code
51  *
52  *      Code - is the facility's status code
53  *
54  *
55  * Define the facility codes
56  */
57  
58
59 /*
60  * Define the severity codes
61  */
62
63
64 /*
65  * MessageId: BIND_ERR_MSG
66  *
67  * MessageText:
68  *
69  *  %1
70  */
71 #define BIND_ERR_MSG            ((DWORD)0xC0000001L)
72
73 /*
74  * MessageId: BIND_WARN_MSG
75  *
76  * MessageText:
77  *
78  *  %1
79  */
80 #define BIND_WARN_MSG           ((DWORD)0x80000002L)
81
82 /*
83  * MessageId: BIND_INFO_MSG
84  *
85  * MessageText:
86  *
87  *  %1
88  */
89 #define BIND_INFO_MSG           ((DWORD)0x40000003L)
90
91 #endif /* ISC_BINDEVT_H */