Added coded stubs for DdeQueryConvInfo (16 & 32 bit), DdeAddData (32
[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 "wintypes.h"
11
12 #pragma pack(1)
13
14 typedef struct
15 {
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;
25
26 typedef struct
27 {
28     WORD   wWidth;
29     WORD   wHeight;
30     WORD   wPlanes;
31     WORD   wBitCount;
32     DWORD  dwBytesInRes;
33     WORD   wResId;
34 } CURSORDIRENTRY;
35
36 typedef union
37 {
38     ICONDIRENTRY    icon;
39     CURSORDIRENTRY  cursor;
40 } CURSORICONDIRENTRY;
41
42 typedef struct
43 {
44     WORD                idReserved;
45     WORD                idType;
46     WORD                idCount;
47     CURSORICONDIRENTRY  idEntries[1] WINE_PACKED;
48 } CURSORICONDIR;
49
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;
60
61 typedef struct
62 {
63     WORD                idReserved;
64     WORD                idType;
65     WORD                idCount;
66     CURSORICONFILEDIRENTRY  idEntries[1];
67 } CURSORICONFILEDIR;
68
69
70 #pragma pack(4)
71
72 #define CID_RESOURCE  0x0001
73 #define CID_WIN32     0x0004
74 #define CID_NONSHARED 0x0008
75
76 extern void CURSORICON_Init( void );
77
78 extern HCURSOR16 CURSORICON_IconToCursor( HICON16 hIcon,
79                                           BOOL bSemiTransparent );
80
81 extern HGLOBAL CURSORICON_Load( HINSTANCE hInstance, LPCWSTR name,
82                                 int width, int height, int colors,
83                                 BOOL fCursor, UINT loadflags);
84
85 extern WORD CURSORICON_Destroy( HGLOBAL16 handle, UINT16 flags );
86
87 extern void CURSORICON_FreeModuleIcons( HMODULE hModule );
88                                     
89 #endif /* __WINE_CURSORICON_H */