Release 960516
[wine.git] / include / struct32.h
bloba1c1e369bf83e8e5e36ae1e0e66bfff828e8bfff
1 /* Structure definitions for Win32 -- used only internally */
2 #ifndef _STRUCT32_H
3 #define _STRUCT32_H
4 #include "handle32.h"
6 #ifndef WINELIB
7 #pragma pack(1)
8 #endif
10 void STRUCT32_RECT32to16(const RECT32*,RECT16*);
11 void STRUCT32_RECT16to32(const RECT16*,RECT32*);
12 void STRUCT32_POINT32to16(const POINT32*,POINT16*);
13 void STRUCT32_POINT16to32(const POINT16*,POINT32*);
14 void STRUCT32_SIZE16to32(const SIZE16*, SIZE32*);
16 extern void STRUCT32_MINMAXINFO32to16( const MINMAXINFO32*, MINMAXINFO16* );
17 extern void STRUCT32_MINMAXINFO16to32( const MINMAXINFO16*, MINMAXINFO32* );
18 extern void STRUCT32_WINDOWPOS32to16( const WINDOWPOS32*, WINDOWPOS16* );
19 extern void STRUCT32_WINDOWPOS16to32( const WINDOWPOS16*, WINDOWPOS32* );
20 extern void STRUCT32_NCCALCSIZE32to16Flat( const NCCALCSIZE_PARAMS32 *from,
21 NCCALCSIZE_PARAMS16 *to,
22 int validRects );
23 extern void STRUCT32_NCCALCSIZE16to32Flat( const NCCALCSIZE_PARAMS16* from,
24 NCCALCSIZE_PARAMS32* to,
25 int validRects );
28 typedef struct {
29 DWORD style;
30 DWORD dwExtendedStyle;
31 WORD noOfItems WINE_PACKED;
32 short x WINE_PACKED;
33 short y WINE_PACKED;
34 WORD cx WINE_PACKED;
35 WORD cy WINE_PACKED;
36 } DLGTEMPLATE32;
38 typedef struct {
39 DWORD style;
40 DWORD dwExtendedStyle;
41 short x WINE_PACKED;
42 short y WINE_PACKED;
43 short cx WINE_PACKED;
44 short cy WINE_PACKED;
45 WORD id WINE_PACKED;
46 } DLGITEMTEMPLATE32;
48 typedef struct tagMSG32
50 DWORD hwnd;
51 DWORD message;
52 DWORD wParam;
53 DWORD lParam;
54 DWORD time;
55 POINT32 pt;
56 } MSG32;
58 void STRUCT32_MSG16to32(MSG *msg16,MSG32 *msg32);
59 void STRUCT32_MSG32to16(MSG32 *msg32,MSG *msg16);
61 void STRUCT32_CREATESTRUCT32Ato16(const CREATESTRUCT32A*,CREATESTRUCT16*);
62 void STRUCT32_CREATESTRUCT16to32A(const CREATESTRUCT16*,CREATESTRUCT32A*);
64 typedef struct {
65 BYTE bWidth;
66 BYTE bHeight;
67 BYTE bColorCount;
68 BYTE bReserved;
69 WORD wPlanes;
70 WORD wBitCount;
71 DWORD dwBytesInRes;
72 WORD wResId WINE_PACKED;
73 /*WORD padding; Spec is wrong, no padding here*/
74 } ICONDIRENTRY32;
76 typedef struct {
77 WORD wWidth;
78 WORD wHeight;
79 WORD wPlanes;
80 WORD wBitCount;
81 DWORD dwBytesInRes;
82 WORD wResId WINE_PACKED;
83 /*WORD padding;*/
84 } CURSORDIRENTRY32;
86 typedef union{
87 ICONDIRENTRY32 icon;
88 CURSORDIRENTRY32 cursor;
89 } CURSORICONDIRENTRY32;
91 typedef struct {
92 WORD idReserved;
93 WORD idType;
94 WORD idCount;
95 /*WORD padding;*/
96 CURSORICONDIRENTRY32 idEntries[1];
97 } CURSORICONDIR32;
101 #ifndef WINELIB
102 #pragma pack(4)
103 #endif
105 #endif