32-bit clipboard support.
[wine/multimedia.git] / include / cursoricon.h
blobfc8295ebac9d7e705209b44bf3b48a02a8fb3291
1 /*
2 * Cursor and icon definitions
4 * Copyright 1995 Alexandre Julliard
5 */
7 #ifndef __WINE_CURSORICON_H
8 #define __WINE_CURSORICON_H
10 #include "ts_xlib.h"
11 #include "windows.h"
13 #pragma pack(1)
15 typedef struct
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;
27 typedef struct
29 WORD wWidth;
30 WORD wHeight;
31 WORD wPlanes;
32 WORD wBitCount;
33 DWORD dwBytesInRes;
34 WORD wResId;
35 } CURSORDIRENTRY;
37 typedef union
39 ICONDIRENTRY icon;
40 CURSORDIRENTRY cursor;
41 } CURSORICONDIRENTRY;
43 typedef struct
45 WORD idReserved;
46 WORD idType;
47 WORD idCount;
48 CURSORICONDIRENTRY idEntries[1] WINE_PACKED;
49 } CURSORICONDIR;
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;
62 typedef struct
64 WORD idReserved;
65 WORD idType;
66 WORD idCount;
67 CURSORICONFILEDIRENTRY idEntries[1];
68 } CURSORICONFILEDIR;
71 #pragma pack(4)
73 extern HCURSOR16 CURSORICON_IconToCursor( HICON16 hIcon,
74 BOOL32 bSemiTransparent );
76 extern HGLOBAL32 CURSORICON_Load32( HINSTANCE32 hInstance, LPCWSTR name,
77 int width, int height, int colors,
78 BOOL32 fCursor, UINT32 loadflags);
80 extern Cursor CURSORICON_XCursor; /* Current X cursor */
82 #endif /* __WINE_CURSORICON_H */