Small corrections in mmio declarations.
[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 "ts_xlib.h"
11 #include "windows.h"
12
13 #pragma pack(1)
14
15 typedef struct
16 {
17     BYTE   bWidth;
18     BYTE   bHeight;
19     BYTE   bColorCount;
20     BYTE   bReserved;
21     WORD   wPlanes;
22     WORD   wBitCount;
23     DWORD  dwBytesInRes;
24     WORD   wResId;
25 } ICONDIRENTRY;
26
27 typedef struct
28 {
29     WORD   wWidth;
30     WORD   wHeight;
31     WORD   wPlanes;
32     WORD   wBitCount;
33     DWORD  dwBytesInRes;
34     WORD   wResId;
35 } CURSORDIRENTRY;
36
37 typedef union
38 {
39     ICONDIRENTRY    icon;
40     CURSORDIRENTRY  cursor;
41 } CURSORICONDIRENTRY;
42
43 typedef struct
44 {
45     WORD                idReserved;
46     WORD                idType;
47     WORD                idCount;
48     CURSORICONDIRENTRY  idEntries[1] WINE_PACKED;
49 } CURSORICONDIR;
50
51 typedef struct {
52     BYTE bWidth;
53     BYTE bHeight;
54     BYTE bColorCount;
55     BYTE bReserved;
56     WORD xHotspot;
57     WORD yHotspot;
58     DWORD dwDIBSize;
59     DWORD dwDIBOffset;
60 } CURSORICONFILEDIRENTRY;
61
62 typedef struct
63 {
64     WORD                idReserved;
65     WORD                idType;
66     WORD                idCount;
67     CURSORICONFILEDIRENTRY  idEntries[1];
68 } CURSORICONFILEDIR;
69
70
71 #pragma pack(4)
72
73 extern HCURSOR16 CURSORICON_IconToCursor( HICON16 hIcon,
74                                           BOOL32 bSemiTransparent );
75
76 extern HGLOBAL32 CURSORICON_Load32( HINSTANCE32 hInstance, LPCWSTR name,
77                                     int width, int height, int colors,
78                                     BOOL32 fCursor, UINT32 loadflags);
79                                     
80 extern Cursor CURSORICON_XCursor;  /* Current X cursor */
81
82 #endif /* __WINE_CURSORICON_H */