⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 msg.h

📁 这是一本介绍WIN2000环境下用WDM进行板卡驱动程序的编写书籍
💻 H
字号:

//File: Msg.mc
//

//
//  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_RPC_STUBS               0x3
#define FACILITY_RPC_RUNTIME             0x2
#define FACILITY_IO_ERROR_CODE           0x4
#define FACILITY_DRIVER_ERROR_CODE       0x7


//
// 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: MSG_LOGGING_ENABLED
//
// MessageText:
//
//  Event logging enabled for LODriver Driver.
//
#define MSG_LOGGING_ENABLED              ((NTSTATUS)0x60070001L)

//
// MessageId: MSG_DRIVER_STARTING
//
// MessageText:
//
//  LODriver Driver has successfully initialized.
//
#define MSG_DRIVER_STARTING              ((NTSTATUS)0x60070002L)

//
// MessageId: MSG_DRIVER_STOPPING
//
// MessageText:
//
//  LODriver Driver has unloaded.
//
#define MSG_DRIVER_STOPPING              ((NTSTATUS)0x60070003L)

//
// MessageId: MSG_ADDING_DEVICE
//
// MessageText:
//
//  LODriver Device has been added: %1 - Symbolic link name: %2.
//
#define MSG_ADDING_DEVICE                ((NTSTATUS)0x60070004L)

//
// MessageId: MSG_STARTING_DEVICE
//
// MessageText:
//
//  LODriver Device has been started: %1.
//
#define MSG_STARTING_DEVICE              ((NTSTATUS)0x60070005L)

//
// MessageId: MSG_STOPPING_DEVICE
//
// MessageText:
//
//  LODriver Device has been stopped: %1.
//
#define MSG_STOPPING_DEVICE              ((NTSTATUS)0x60070006L)

//
// MessageId: MSG_REMOVING_DEVICE
//
// MessageText:
//
//  LODriver Device is being removed: %1.
//
#define MSG_REMOVING_DEVICE              ((NTSTATUS)0x60070007L)

//
// MessageId: MSG_OPENING_HANDLE
//
// MessageText:
//
//  Opening handle to %1.
//
#define MSG_OPENING_HANDLE               ((NTSTATUS)0x60070008L)

//
// MessageId: MSG_CLOSING_HANDLE
//
// MessageText:
//
//  Closing handle to %1.
//
#define MSG_CLOSING_HANDLE               ((NTSTATUS)0x60070009L)

//
// MessageId: MSG_WRITE_REQUEST
//
// MessageText:
//
//  Write request (Dump Data is number of bytes).
//
#define MSG_WRITE_REQUEST                ((NTSTATUS)0x6007000AL)

//
// MessageId: MSG_DEVICE_CONTROL_REQUEST
//
// MessageText:
//
//  Device Control Request (Dump Data is Buffer Size Info).
//
#define MSG_DEVICE_CONTROL_REQUEST       ((NTSTATUS)0x6007000BL)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -