Reading joystick 5 when we only support 4 should fail instead of
[wine/multimedia.git] / include / cursoricon.h
blob24fc398a9a2f08c77421b8190a739a3439cf60b3
1 /*
2 * Cursor and icon definitions
4 * Copyright 1995 Alexandre Julliard
5 */
7 #ifndef __WINE_CURSORICON_H
8 #define __WINE_CURSORICON_H
10 #include "windows.h"
12 #pragma pack(1)
14 typedef struct
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;
26 typedef struct
28 WORD wWidth;
29 WORD wHeight;
30 WORD wPlanes;
31 WORD wBitCount;
32 DWORD dwBytesInRes;
33 WORD wResId;
34 } CURSORDIRENTRY;
36 typedef union
38 ICONDIRENTRY icon;
39 CURSORDIRENTRY cursor;
40 } CURSORICONDIRENTRY;
42 typedef struct
44 WORD idReserved;
45 WORD idType;
46 WORD idCount;
47 CURSORICONDIRENTRY idEntries[1] WINE_PACKED;
48 } CURSORICONDIR;
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;
61 typedef struct
63 WORD idReserved;
64 WORD idType;
65 WORD idCount;
66 CURSORICONFILEDIRENTRY idEntries[1];
67 } CURSORICONFILEDIR;
70 #pragma pack(4)
72 extern HCURSOR16 CURSORICON_IconToCursor( HICON16 hIcon,
73 BOOL32 bSemiTransparent );
75 extern HGLOBAL32 CURSORICON_Load32( HINSTANCE32 hInstance, LPCWSTR name,
76 int width, int height, int colors,
77 BOOL32 fCursor, UINT32 loadflags);
79 #endif /* __WINE_CURSORICON_H */