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

📄 wintype.h

📁 一个操作系统源代码 用于嵌入式设备 在Vc++环境下仿真 成功移植到多款处理器上
💻 H
字号:
#ifndef WINTYPE_H
#define WINTYPE_H

/* when <windows.h> is included by programs running on WINDOWS OS,
 * all types in this file will not be defined */  
#ifndef _WINDOWS_

#ifndef BASETYPES
#define BASETYPES


#endif  /* !BASETYPES */

#ifndef NULL
#define NULL    			((void *)0)
#endif

#ifndef FALSE
#define FALSE               0
#endif

#ifndef TRUE
#define TRUE                1
#endif

typedef unsigned long       DWORD;/* this maybe different from PC
									 * because the cc68000 compiler 
									 * assume int as 32 bits */
typedef unsigned char       BYTE;	/* 8 */
typedef unsigned short      WORD;	/* 16 */
typedef unsigned long 		ULONG;
typedef unsigned short 		USHORT;
typedef unsigned char 		UCHAR;

#ifndef _UINT_TYPE_
#define _UINT_TYPE_
typedef unsigned int        UINT;
#endif

typedef float               FLOAT;
typedef void				VOID;
typedef char 				CHAR;
typedef short 				SHORT;
typedef long 				LONG;

#ifndef _BOOL_TYPE_
#define _BOOL_TYPE_
typedef int                 BOOL;
#endif

#ifndef _INT_TYPE_
#define _INT_TYPE_
typedef int                 INT;
#endif

typedef unsigned int        *PUINT;
typedef void 	            *LPVOID;
typedef FLOAT               *PFLOAT;
typedef BOOL            	*PBOOL;
typedef BYTE            	*PBYTE;
typedef int  	           	*PINT;
typedef WORD    	        *PWORD;
typedef DWORD       	    *PDWORD;
typedef SHORT 				*PSHORT;  
typedef LONG 				*PLONG;   
typedef ULONG 				*PULONG;
typedef USHORT 				*PUSHORT;
typedef UCHAR 				*PUCHAR;

#define MAKELONG(low,high) 	((LONG)(((WORD)(low)) | (((DWORD)((WORD)(high))) << 16)))
#define MAKEWORD(low,high)  ((WORD)(((BYTE)(low)) | (((WORD)((BYTE)(high))) << 8)))

#define LOWORD(l)           ((WORD)(l))
#define HIWORD(l)           ((WORD)(((DWORD)(l) >> 16) & 0xFFFF))

#define LOBYTE(w)           ((BYTE)(w))
#define HIBYTE(w)           ((BYTE)(((WORD)(w) >> 8) & 0xFF))

#ifndef max
#define max(a,b)            (((a) > (b)) ? (a) : (b))
#endif

#ifndef min
#define min(a,b)            (((a) < (b)) ? (a) : (b))
#endif

typedef WORD WPARAM;
typedef LONG LPARAM;
typedef LONG LRESULT;

#define MAKELPARAM(low, high)   ((LPARAM)MAKELONG(low, high))
#define MAKELRESULT(low, high)  ((LRESULT)MAKELONG(low, high))

typedef struct tagPOINTS
{
    short   x;
    short   y;
} POINTS, *PPOINTS;

typedef DWORD   COLORREF;
typedef DWORD   *LPCOLORREF;

typedef struct tagRECT
{
    short    left;
    short    top;
    short    right;
    short    bottom;
} RECT, *PRECT;

#endif  /* ! _WINDOWS_ */

#endif	/* WINTYPE_H */

⌨️ 快捷键说明

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