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