Use the right buffer size in SYSPARAMS_Load instead of some random
[wine] / include / dde.h
1 /*****************************************************************************
2  * Copyright 1995, Technion, Israel Institute of Technology
3  * Electrical Eng, Software Lab.
4  * Author:    Michael Veksler.
5  * Purpose:   dde declarations
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  *****************************************************************************
21  */
22 #ifndef __WINE_DDE_H
23 #define __WINE_DDE_H
24
25 #include "windef.h"
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 #define WM_DDE_INITIATE   0x3E0
32 #define WM_DDE_TERMINATE  0x3E1
33 #define WM_DDE_ADVISE     0x3E2
34 #define WM_DDE_UNADVISE   0x3E3
35 #define WM_DDE_ACK        0x3E4
36 #define WM_DDE_DATA       0x3E5
37 #define WM_DDE_REQUEST    0x3E6
38 #define WM_DDE_POKE       0x3E7
39 #define WM_DDE_EXECUTE    0x3E8
40 #define WM_DDE_LAST       WM_DDE_EXECUTE
41 #define WM_DDE_FIRST      WM_DDE_INITIATE
42
43 /* DDEACK: wStatus in WM_DDE_ACK message */
44 struct tagDDEACK
45 {
46     unsigned short bAppReturnCode:8, reserved:6, fBusy:1, fAck:1;
47 };
48 typedef struct tagDDEACK DDEACK;
49
50 /* DDEDATA: hData in WM_DDE_DATA message */
51 struct tagDDEDATA
52 {
53     unsigned unused:12, fResponse:1, fRelease:1, reserved:1, fAckReq:1,
54          cfFormat:16;
55     BYTE Value[1];              /* undetermined array */
56 };
57 typedef struct tagDDEDATA DDEDATA;
58
59
60 /* DDEADVISE: hOptions in WM_DDE_ADVISE message */
61 struct tagDDEADVISE
62 {
63     unsigned reserved:14, fDeferUpd:1, fAckReq:1, cfFormat:16;
64 };
65 typedef struct tagDDEADVISE DDEADVISE;
66
67 /* DDEPOKE: hData in WM_DDE_POKE message. */
68 struct tagDDEPOKE
69 {
70     unsigned unused:13, fRelease:1, fReserved:2, cfFormat:16;
71     BYTE Value[1];      /* undetermined array */
72 };
73 typedef struct tagDDEPOKE DDEPOKE;
74
75 BOOL WINAPI DdeSetQualityOfService(HWND hwndClient,
76                                    CONST SECURITY_QUALITY_OF_SERVICE *pqosNew,
77                                    PSECURITY_QUALITY_OF_SERVICE pqosPrev);
78
79 BOOL WINAPI ImpersonateDdeClientWindow(HWND hWndClient, HWND hWndServer);
80
81 /* lParam packing/unpacking API */
82
83 LPARAM      WINAPI PackDDElParam(UINT,UINT,UINT);
84 BOOL        WINAPI UnpackDDElParam(UINT,LPARAM,PUINT,PUINT);
85 BOOL        WINAPI FreeDDElParam(UINT,LPARAM);
86 LPARAM      WINAPI ReuseDDElParam(LPARAM,UINT,UINT,UINT,UINT);
87
88
89 #ifdef __cplusplus
90 }
91 #endif
92
93 #endif /* __WINE_DDE_H */