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