ktmsg.h

来自「自己动手写操作系统源代码,不可多得的代码」· C头文件 代码 · 共 47 行

H
47
字号
//***********************************************************************/
//    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 + =
减小字号Ctrl + -
显示快捷键?