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

📄 ktmsg.h

📁 自己动手写操作系统源代码,不可多得的代码
💻 H
字号:
//***********************************************************************/
//    Author                    : Garry
//    Original Date             : 2004-07-05
//    Module Name               : ktmsg.h
//    Module Funciton           : 
//                                This module countains kernal thread message
//                                structures defination and functions defination.
//    Last modified Author      :
//    Last modified Date        :
//    Last modified Content     :
//                                1.
//                                2.
//    Lines number              :
//***********************************************************************/

#ifndef __KTMSG_H__
#define __KTMSG_H__

//
//Kernal thread message structure.
//
struct __KTHREAD_MSG{
	WORD         wCommand;                //Message command.
	WORD         wReserved;
	DWORD        dwParam_01;              //First parameter of the message.
	DWORD        dwParam_02;              //Second parameter of the message.
};

#ifndef MAX_KTHREAD_MSG_NUM
#define MAX_KTHREAD_MSG_NUM  0x20    //Now,we define the max message number one
                                     //message queue can countains to 32.
#endif

//
//Common message command defination.
//


#define KTMSG_KEY_DOWN              0x0001
#define KTMSG_KEY_UP                0x0002
#define KTMSG_TIMER                 0x0003
#define KTMSG_THREAD_TERMINAL       0x0004
#define KERNEL_MESSAGE_TERMINAL     0x0005
#define KERNEL_MESSAGE_TIMER        0x0006


#endif //ktmsg.h

⌨️ 快捷键说明

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