You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121 lines
2.6 KiB
121 lines
2.6 KiB
/*++
|
|
|
|
Copyright (c) 1998 Specialix International Ltd.
|
|
|
|
Abstract:
|
|
|
|
Constant definitions for the I/O error code log values.
|
|
|
|
--*/
|
|
|
|
#ifndef IO8_LOG_H
|
|
#define IO8_LOG_H
|
|
|
|
//
|
|
// Status values are 32 bit values layed 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| Facility | Code |
|
|
// +---+-+-------------------------+-------------------------------+
|
|
//
|
|
// where
|
|
//
|
|
// Sev - is the severity code
|
|
//
|
|
// 00 - Success
|
|
// 01 - Informational
|
|
// 10 - Warning
|
|
// 11 - Error
|
|
//
|
|
// C - is the Customer code flag
|
|
//
|
|
// Facility - is the facility code
|
|
//
|
|
// Code - is the facility's status code
|
|
//
|
|
|
|
|
|
//
|
|
// Values are 32 bit values layed 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_SERIAL_ERROR_CODE 0x6
|
|
#define FACILITY_RPC_STUBS 0x3
|
|
#define FACILITY_RPC_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: SPX_SEVERITY_SUCCESS
|
|
//
|
|
// MessageText:
|
|
//
|
|
// %2
|
|
//
|
|
#define SPX_SEVERITY_SUCCESS ((NTSTATUS)0x00060001L)
|
|
|
|
//
|
|
// MessageId: SPX_SEVERITY_INFORMATIONAL
|
|
//
|
|
// MessageText:
|
|
//
|
|
// %2
|
|
//
|
|
#define SPX_SEVERITY_INFORMATIONAL ((NTSTATUS)0x40060002L)
|
|
|
|
//
|
|
// MessageId: SPX_SEVERITY_WARNING
|
|
//
|
|
// MessageText:
|
|
//
|
|
// %2
|
|
//
|
|
#define SPX_SEVERITY_WARNING ((NTSTATUS)0x80060003L)
|
|
|
|
//
|
|
// MessageId: SPX_SEVERITY_ERROR
|
|
//
|
|
// MessageText:
|
|
//
|
|
// %2
|
|
//
|
|
#define SPX_SEVERITY_ERROR ((NTSTATUS)0xC0060004L)
|
|
|
|
|
|
#endif // End of IO8_LOG.H
|