Cosmetics.
[wine.git] / include / cursoricon.h
blobb594df4d349a0a1f1e0aab806218e80f144a6f69
1 /*
2 * Cursor and icon definitions
4 * Copyright 1995 Alexandre Julliard
5 */
7 #ifndef __WINE_CURSORICON_H
8 #define __WINE_CURSORICON_H
10 #include "windef.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 #define CID_RESOURCE 0x0001
73 #define CID_WIN32 0x0004
74 #define CID_NONSHARED 0x0008
76 extern void CURSORICON_Init( void );
78 extern HCURSOR16 CURSORICON_IconToCursor( HICON16 hIcon,
79 BOOL bSemiTransparent );
81 extern HGLOBAL CURSORICON_Load( HINSTANCE hInstance, LPCWSTR name,
82 int width, int height, int colors,
83 BOOL fCursor, UINT loadflags);
85 extern WORD CURSORICON_Destroy( HGLOBAL16 handle, UINT16 flags );
87 extern void CURSORICON_FreeModuleIcons( HMODULE hModule );
89 #endif /* __WINE_CURSORICON_H */