OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [services/] [gfx/] [mw/] [v2_0/] [include/] [microwin/] [windef.h] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
/* windef.h*/
2
/*
3
 * Copyright (c) 1999 Greg Haerr <greg@censoft.com>
4
 *
5
 * Win32 API base type definitions
6
 */
7
 
8
#define _WINDEF_H
9
 
10
 
11
#ifdef VXWORKS
12
/* Don't include the internal Tornado header file <ntcontext.h>, **
13
** as the definitions in it conflict with these definitions.     */
14
#define __INCntcontexth
15
/* Bring in the core VxWorks definitions as they could conflict **
16
** with the ones below if they are brought in later.            */
17
#include <vxWorks.h>
18
#endif
19
 
20
 
21
#ifndef NULL
22
#define NULL    ((void *)0)
23
#endif
24
 
25
#ifndef FALSE
26
#define FALSE               0
27
#endif
28
 
29
#ifndef TRUE
30
#define TRUE                1
31
#endif
32
 
33
#ifndef NOMINMAX
34
#ifndef max
35
#define max(a,b)            (((a) > (b)) ? (a) : (b))
36
#endif
37
 
38
#ifndef min
39
#define min(a,b)            (((a) < (b)) ? (a) : (b))
40
#endif
41
#endif  /* NOMINMAX */
42
 
43
#define CALLBACK
44
#define WINAPI
45
#define WINAPIV
46
#define APIENTRY        WINAPI
47
#define APIPRIVATE
48
#define PASCAL
49
 
50
#define FAR
51
#define NEAR
52
#define CONST           const
53
#define CDECL
54
 
55
#define VOID void
56
typedef void *PVOID;
57
typedef char CHAR;
58
typedef short SHORT;
59
typedef long LONG;
60
typedef SHORT *PSHORT;
61
typedef LONG *PLONG;
62
 
63
#ifndef VXWORKS
64
typedef unsigned char           UCHAR;
65
typedef unsigned short          USHORT;
66
typedef unsigned long           ULONG;
67
typedef unsigned int            UINT;
68
 
69
#ifndef __ITRON_TYPES_h_ /* FIXME RTEMS hack*/
70
#ifndef COMMON_H         /* MiniGUI hack*/
71
typedef int                     BOOL;
72
#endif
73
#endif
74
 
75
#endif /* !VXWORKS*/
76
 
77
typedef ULONG *                 PULONG;
78
typedef USHORT *                PUSHORT;
79
typedef UCHAR *                 PUCHAR;
80
typedef char *                  PSZ;
81
typedef int                     INT;
82
typedef unsigned int            *PUINT;
83
 
84
typedef unsigned long       DWORD;
85
typedef unsigned char       BYTE;
86
typedef unsigned short      WORD;
87
 
88
typedef float               FLOAT;
89
typedef FLOAT               *PFLOAT;
90
typedef BOOL NEAR           *PBOOL;
91
typedef BOOL FAR            *LPBOOL;
92
typedef BYTE NEAR           *PBYTE;
93
typedef BYTE FAR            *LPBYTE;
94
typedef int NEAR            *PINT;
95
typedef int FAR             *LPINT;
96
typedef WORD NEAR           *PWORD;
97
typedef WORD FAR            *LPWORD;
98
typedef long FAR            *LPLONG;
99
typedef DWORD NEAR          *PDWORD;
100
typedef DWORD FAR           *LPDWORD;
101
typedef void FAR            *LPVOID;
102
typedef CONST void FAR      *LPCVOID;
103
 
104
typedef unsigned short WCHAR;
105
typedef WCHAR *PWCHAR;
106
typedef WCHAR *LPWCH, *PWCH;
107
typedef CONST WCHAR *LPCWCH, *PCWCH;
108
typedef WCHAR *NWPSTR;
109
typedef WCHAR *LPWSTR, *PWSTR;
110
typedef CONST WCHAR *LPCWSTR, *PCWSTR;
111
 
112
typedef CHAR *PCHAR;
113
typedef CHAR *LPCH, *PCH;
114
typedef CONST CHAR *LPCCH, *PCCH;
115
typedef CHAR *NPSTR;
116
typedef CHAR *LPSTR, *PSTR;
117
typedef CONST CHAR *LPCSTR, *PCSTR;
118
typedef char TCHAR, *PTCHAR;
119
typedef unsigned char TBYTE , *PTBYTE ;
120
typedef LPSTR LPTCH, PTCH;
121
typedef LPSTR PTSTR, LPTSTR;
122
typedef LPCSTR LPCTSTR;
123
 
124
#define __TEXT(quote) quote
125
#define TEXT(quote) __TEXT(quote)
126
 
127
typedef int (FAR WINAPI *FARPROC)();
128
typedef int (NEAR WINAPI *NEARPROC)();
129
typedef int (WINAPI *PROC)();
130
 
131
typedef UINT WPARAM;
132
typedef LONG LPARAM;
133
typedef LONG LRESULT;
134
typedef LONG HRESULT;
135
 
136
#define MAKEWORD(a, b)      ((WORD)(((BYTE)(a)) | ((WORD)((BYTE)(b))) << 8))
137
#define MAKELONG(a, b)      ((LONG)(((WORD)(a)) | ((DWORD)((WORD)(b))) << 16))
138
#define LOWORD(l)           ((WORD)(l))
139
#define HIWORD(l)           ((WORD)(((DWORD)(l) >> 16) & 0xFFFF))
140
#define LOBYTE(w)           ((BYTE)(w))
141
#define HIBYTE(w)           ((BYTE)(((WORD)(w) >> 8) & 0xFF))
142
 
143
#define PALETTEINDEX(i)     ((COLORREF)(0x01000000 | (DWORD)(WORD)(i)))
144
 
145
typedef DWORD   COLORREF;
146
typedef DWORD   *LPCOLORREF;
147
 
148
/* handle typedef*/
149
typedef PVOID HANDLE;
150
 
151
typedef HANDLE *PHANDLE;
152
typedef HANDLE NEAR         *SPHANDLE;
153
typedef HANDLE FAR          *LPHANDLE;
154
typedef HANDLE              HGLOBAL;
155
typedef HANDLE              HLOCAL;
156
typedef HANDLE              GLOBALHANDLE;
157
typedef HANDLE              LOCALHANDLE;
158
 
159
typedef WORD                ATOM;
160
 
161
typedef struct hwnd *   HWND;
162
typedef struct hdc *    HDC;
163
typedef struct hcursor *HCURSOR;
164
typedef struct hgdiobj *HGDIOBJ;
165
typedef struct hgdiobj *HBRUSH;
166
typedef struct hgdiobj *HPEN;
167
typedef struct hgdiobj *HFONT;
168
typedef struct hgdiobj *HBITMAP;
169
typedef struct hgdiobj *HRGN;
170
typedef struct hgdiobj *HPALETTE;
171
typedef HANDLE          HICON;
172
typedef HANDLE          HINSTANCE;
173
typedef HANDLE          HMENU;
174
 
175
/* moved to winuser.h for resource compiler*/
176
/*typedef LRESULT (CALLBACK* WNDPROC)(HWND, UINT, WPARAM, LPARAM);*/
177
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.