1 #ifndef __WINE_WINTYPES_H
2 #define __WINE_WINTYPES_H
5 typedef unsigned short UINT
;
6 typedef unsigned short WORD
;
7 typedef unsigned long DWORD
;
8 typedef unsigned short BOOL
;
9 typedef unsigned char BYTE
;
17 typedef const char *LPCSTR
;
22 typedef DWORD
*LPDWORD
;
25 typedef long (*FARPROC
)();
26 typedef FARPROC DLGPROC
;
27 typedef int CATCHBUF
[9];
28 typedef int *LPCATCHBUF
;
29 typedef FARPROC HOOKPROC
;
31 #define DECLARE_HANDLE(a) typedef HANDLE a;
33 DECLARE_HANDLE(HTASK
);
34 DECLARE_HANDLE(HDRVR
);
37 DECLARE_HANDLE(HCLASS
);
38 DECLARE_HANDLE(HCURSOR
);
39 DECLARE_HANDLE(HFONT
);
42 DECLARE_HANDLE(HPALETTE
);
43 DECLARE_HANDLE(HICON
);
44 DECLARE_HANDLE(HINSTANCE
);
45 DECLARE_HANDLE(HMENU
);
46 DECLARE_HANDLE(HBITMAP
);
47 DECLARE_HANDLE(HBRUSH
);
48 DECLARE_HANDLE(LOCALHANDLE
);
49 DECLARE_HANDLE(HMETAFILE
);
51 DECLARE_HANDLE(HDROP
);
55 #define CW_USEDEFAULT ((INT)0x8000)
61 #define CALLBACK PASCAL
64 #define NULL (void *)0
70 #define WINE_PACKED __attribute__ ((packed))
75 #define LOBYTE(w) ((BYTE)(w))
76 #define HIBYTE(w) ((BYTE)((UINT)(w) >> 8))
78 #define LOWORD(l) ((WORD)(l))
79 #define HIWORD(l) ((WORD)((DWORD)(l) >> 16))
81 #define MAKELONG(low, high) ((LONG)(((WORD)(low)) | \
82 (((DWORD)((WORD)(high))) << 16)))
85 #define max(a,b) (((a) > (b)) ? (a) : (b))
89 #define min(a,b) (((a) < (b)) ? (a) : (b))
92 #endif /* __WINE_WINTYPES_H */