www.pudn.com > GOS.rar > GOS_ARM.h
#ifndef __GUI_PLATFORM_H__ #define __GUI_PLATFORM_H__ //编译指示 #define _MSC_VER 0 //简单类型、结构、宏函数定义 typedef void VOID,*PVOID,*LPVOID; typedef const void *LPCVOID; typedef unsigned char BYTE,*PBYTE; typedef short SHORT,*PSHORT; typedef unsigned short USHORT,*PUSHORT; typedef short WORD,*PWORD; typedef int INT,*PINT; typedef unsigned int UINT,*PUINT; typedef int LONG,*PLONG; typedef unsigned int ULONG,*PULONG; //typedef int BOOL; #define BOOL int typedef int WPARAM,LPARAM; typedef unsigned long DWORD,*PDWORD; typedef char TCHAR,*LPTSTR; typedef const char *LPCTSTR; typedef unsigned int POSITION; #define NULL 0 #define TRUE 1 #define FALSE 0 #define MINCHAR 0x80 #define MAXCHAR 0x7f #define MINSHORT 0x8000 #define MAXSHORT 0x7fff #define MINLONG 0x80000000 #define MAXLONG 0x7fffffff #define MAXBYTE 0xff #define MAXWORD 0xffff #define MAXDWORD 0xffffffff #define LOWORD(i) ((i) & 0xffff) #define HIWORD(i) ((i) >> 16) #define MAKELONG(a,b) ((a)|((b)<<16)) #define GUI_CXSCREEN 176 #define GUI_CYSCREEN 220 #define RGB(r,g,b) (((r>>3)<<11)+((g>>2)<<5)+(b>>3)) #define GUI_PIXEL(x,y,c) Set_Pixel(x,y,c) #define GUI_FILLRECT(x1,y1,x2,y2,c) Fill_Rect(x1,y1,x2,y2,c) #define GUI_UPDATE() //文件系统 #define FILE_BLOCKBYTES 16896 #define FILE_BLOCKCOUNT 1024 #define FILE_WRITEBLOCK #define FILE_READBLOCK #endif /*__GUI_PLATFORM_H__*/