compile as C
[rofl0r-GfxRip.git] / winalleg.h
blob3c220b7d568027382f425afabd7bc01bcc8947d9
1 #ifndef WINALLEG_H
2 #define WINALLEG_H
4 #define DWORD long
5 #define LONG long
6 #define WORD long
7 #define BYTE unsigned char
9 #define ZeroMemory(X, N) memset(X, 0, N)
10 #define BI_RGB 0
12 typedef void *HDC;
13 typedef void *HBITMAP;
14 typedef void *HPALETTE;
16 typedef struct
18 DWORD biSize;
19 LONG biWidth;
20 LONG biHeight;
21 WORD biPlanes;
22 WORD biBitCount;
23 DWORD biCompression;
24 DWORD biSizeImage;
25 LONG biXPelsPerMeter;
26 LONG biYPelsPerMeter;
27 DWORD biClrUsed;
28 DWORD biClrImportant;
29 } BITMAPINFOHEADER, *PBITMAPINFOHEADER, *LPBITMAPINFOHEADER;
31 typedef struct tagRGBQUAD {
32 BYTE rgbBlue;
33 BYTE rgbGreen;
34 BYTE rgbRed;
35 BYTE rgbReserved;
36 } RGBQUAD, *LPRGBQUAD;
39 typedef struct tagBITMAPINFO
41 BITMAPINFOHEADER bmiHeader;
42 RGBQUAD bmiColors[1];
43 } BITMAPINFO, *PBITMAPINFO, *LPBITMAPINFO;
46 #endif