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

📄 wintype.h

📁 USB 软件配置的具体工程
💻 H
字号:
#ifndef WINTYPE_H
#define WINTYPE_H
//#include "ppsmtype.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 char	U8;		/*  unsigned 8 bit data  			*/
typedef	unsigned short	U16;	/*  unsigned 16 bit data 			*/
//typedef	unsigned int	U32;	/*  unsigned 32 bit data 			*/
typedef	char			S8;		/*  signed 8 bit data  				*/
typedef	short			S16;	/*  signed 16 bit data 				*/
//typedef	int				S32;	/*  signed 32 bit data 				*/


//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 U8            	*PBYTE;
typedef int  	           	*PINT;
typedef U16    	        *PWORD;
typedef U32       	    *PDWORD;
typedef SHORT 				*PSHORT;  
typedef LONG 				*PLONG;   
typedef U32 				*PULONG;
typedef U16 				*PUSHORT;
typedef U8 				*PUCHAR;

#define MAKELONG(low,high) 	((LONG)(((U16)(low)) | (((U32)((U16)(high))) << 16)))
#define MAKEWORD(low,high)  ((U16)(((U8)(low)) | (((U16)((U8)(high))) << 8)))

#define LOWORD(l)           ((U16)(l))
#define HIWORD(l)           ((U16)(((U32)(l) >> 16) & 0xFFFF))

#define LOBYTE(w)           ((U8)(w))
#define HIBYTE(w)           ((U8)(((U16)(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 U16 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 U32   COLORREF;
typedef U32   *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 + -