Use emergency TEB selector to avoid debugger crashes when stepping
[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 #pragma pack(4)
52
53 extern HCURSOR16 CURSORICON_IconToCursor( HICON16 hIcon,
54                                           BOOL32 bSemiTransparent );
55
56 extern Cursor CURSORICON_XCursor;  /* Current X cursor */
57
58 #endif /* __WINE_CURSORICON_H */