1 /*****************************************************************************
2 * Copyright 1995, Technion, Israel Institute of Technology
3 * Electrical Eng, Software Lab.
4 * Author: Michael Veksler.
5 * Purpose: dde declarations
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.
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.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 *****************************************************************************
33 #pragma warning(disable:4214)
34 #pragma warning(disable:4820)
37 #define WM_DDE_INITIATE 0x3E0
38 #define WM_DDE_TERMINATE 0x3E1
39 #define WM_DDE_ADVISE 0x3E2
40 #define WM_DDE_UNADVISE 0x3E3
41 #define WM_DDE_ACK 0x3E4
42 #define WM_DDE_DATA 0x3E5
43 #define WM_DDE_REQUEST 0x3E6
44 #define WM_DDE_POKE 0x3E7
45 #define WM_DDE_EXECUTE 0x3E8
46 #define WM_DDE_LAST WM_DDE_EXECUTE
47 #define WM_DDE_FIRST WM_DDE_INITIATE
49 /* DDEACK: wStatus in WM_DDE_ACK message */
52 unsigned short bAppReturnCode
:8, reserved
:6, fBusy
:1, fAck
:1;
55 /* DDEDATA: hData in WM_DDE_DATA message */
58 unsigned short unused
:12, fResponse
:1, fRelease
:1, reserved
:1, fAckReq
:1;
60 BYTE Value
[1]; /* undetermined array */
63 /* DDEADVISE: hOptions in WM_DDE_ADVISE message */
66 unsigned short reserved
:14, fDeferUpd
:1, fAckReq
:1;
70 /* DDEPOKE: hData in WM_DDE_POKE message. */
73 unsigned short unused
:13, fRelease
:1, fReserved
:2;
75 BYTE Value
[1]; /* undetermined array */
78 BOOL WINAPI
DdeSetQualityOfService(HWND hwndClient
,
79 CONST SECURITY_QUALITY_OF_SERVICE
*pqosNew
,
80 PSECURITY_QUALITY_OF_SERVICE pqosPrev
);
82 BOOL WINAPI
ImpersonateDdeClientWindow(HWND hWndClient
, HWND hWndServer
);
84 /* lParam packing/unpacking API */
86 LPARAM WINAPI
PackDDElParam(UINT
,UINT_PTR
,UINT_PTR
);
87 BOOL WINAPI
UnpackDDElParam(UINT
,LPARAM
,PUINT_PTR
,PUINT_PTR
);
88 BOOL WINAPI
FreeDDElParam(UINT
,LPARAM
);
89 LPARAM WINAPI
ReuseDDElParam(LPARAM
,UINT
,UINT
,UINT_PTR
,UINT_PTR
);
99 #endif /* __WINE_DDE_H */