Release 961215
[wine/multimedia.git] / include / struct32.h
blobc0e88cec6bb9c5f7e746103428e5a66b2dcdb314
1 /* Structure definitions for Win32 -- used only internally */
2 #ifndef __WINE__STRUCT32_H
3 #define __WINE__STRUCT32_H
4 #include "handle32.h"
6 void STRUCT32_RECT32to16(const RECT32*,RECT16*);
7 void STRUCT32_RECT16to32(const RECT16*,RECT32*);
8 void STRUCT32_POINT32to16(const POINT32*,POINT16*);
9 void STRUCT32_POINT16to32(const POINT16*,POINT32*);
10 void STRUCT32_SIZE16to32(const SIZE16*, SIZE32*);
12 extern void STRUCT32_MINMAXINFO32to16( const MINMAXINFO32*, MINMAXINFO16* );
13 extern void STRUCT32_MINMAXINFO16to32( const MINMAXINFO16*, MINMAXINFO32* );
14 extern void STRUCT32_WINDOWPOS32to16( const WINDOWPOS32*, WINDOWPOS16* );
15 extern void STRUCT32_WINDOWPOS16to32( const WINDOWPOS16*, WINDOWPOS32* );
16 extern void STRUCT32_NCCALCSIZE32to16Flat( const NCCALCSIZE_PARAMS32 *from,
17 NCCALCSIZE_PARAMS16 *to,
18 int validRects );
19 extern void STRUCT32_NCCALCSIZE16to32Flat( const NCCALCSIZE_PARAMS16* from,
20 NCCALCSIZE_PARAMS32* to,
21 int validRects );
23 void STRUCT32_MSG16to32(const MSG16 *msg16,MSG32 *msg32);
24 void STRUCT32_MSG32to16(const MSG32 *msg32,MSG16 *msg16);
26 void STRUCT32_CREATESTRUCT32Ato16(const CREATESTRUCT32A*,CREATESTRUCT16*);
27 void STRUCT32_CREATESTRUCT16to32A(const CREATESTRUCT16*,CREATESTRUCT32A*);
28 void STRUCT32_MDICREATESTRUCT32Ato16( const MDICREATESTRUCT32A*,
29 MDICREATESTRUCT16*);
30 void STRUCT32_MDICREATESTRUCT16to32A( const MDICREATESTRUCT16*,
31 MDICREATESTRUCT32A*);
33 #pragma pack(1)
35 typedef struct {
36 BYTE bWidth;
37 BYTE bHeight;
38 BYTE bColorCount;
39 BYTE bReserved;
40 WORD wPlanes;
41 WORD wBitCount;
42 DWORD dwBytesInRes;
43 WORD wResId WINE_PACKED;
44 /*WORD padding; Spec is wrong, no padding here*/
45 } ICONDIRENTRY32;
47 typedef struct {
48 WORD wWidth;
49 WORD wHeight;
50 WORD wPlanes;
51 WORD wBitCount;
52 DWORD dwBytesInRes;
53 WORD wResId WINE_PACKED;
54 /*WORD padding;*/
55 } CURSORDIRENTRY32;
57 typedef union{
58 ICONDIRENTRY32 icon;
59 CURSORDIRENTRY32 cursor;
60 } CURSORICONDIRENTRY32;
62 typedef struct {
63 WORD idReserved;
64 WORD idType;
65 WORD idCount;
66 /*WORD padding;*/
67 CURSORICONDIRENTRY32 idEntries[1];
68 } CURSORICONDIR32;
71 #pragma pack(4)
73 #endif /* __WINE_STRUCT32_H */