Don't define MZ_SUPPORTED on non-i386 platforms.
[wine] / include / cursoricon.h
1 /*
2  * Cursor and icon definitions
3  *
4  * Copyright 1995 Alexandre Julliard
5  */
6
7 #ifndef __WINE_CURSORICON_H
8 #define __WINE_CURSORICON_H
9
10 #include "windows.h"
11
12 #pragma pack(1)
13
14 typedef struct
15 {
16     BYTE   bWidth;
17     BYTE   bHeight;
18     BYTE   bColorCount;
19     BYTE   bReserved;
20     WORD   wPlanes;
21     WORD   wBitCount;
22     DWORD  dwBytesInRes;
23     WORD   wResId;
24 } ICONDIRENTRY;
25
26 typedef struct
27 {
28     WORD   wWidth;
29     WORD   wHeight;
30     WORD   wPlanes;
31     WORD   wBitCount;
32     DWORD  dwBytesInRes;
33     WORD   wResId;
34 } CURSORDIRENTRY;
35
36 typedef union
37 {
38     ICONDIRENTRY    icon;
39     CURSORDIRENTRY  cursor;
40 } CURSORICONDIRENTRY;
41
42 typedef struct
43 {
44     WORD                idReserved;
45     WORD                idType;
46     WORD                idCount;
47     CURSORICONDIRENTRY  idEntries[1] WINE_PACKED;
48 } CURSORICONDIR;
49
50 typedef struct {
51     BYTE bWidth;
52     BYTE bHeight;
53     BYTE bColorCount;
54     BYTE bReserved;
55     WORD xHotspot;
56     WORD yHotspot;
57     DWORD dwDIBSize;
58     DWORD dwDIBOffset;
59 } CURSORICONFILEDIRENTRY;
60
61 typedef struct
62 {
63     WORD                idReserved;
64     WORD                idType;
65     WORD                idCount;
66     CURSORICONFILEDIRENTRY  idEntries[1];
67 } CURSORICONFILEDIR;
68
69
70 #pragma pack(4)
71
72 extern HCURSOR16 CURSORICON_IconToCursor( HICON16 hIcon,
73                                           BOOL32 bSemiTransparent );
74
75 extern HGLOBAL32 CURSORICON_Load32( HINSTANCE32 hInstance, LPCWSTR name,
76                                     int width, int height, int colors,
77                                     BOOL32 fCursor, UINT32 loadflags);
78                                     
79 #endif /* __WINE_CURSORICON_H */