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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
20 | */
|
---|
21 |
|
---|
22 | /*
|
---|
23 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
24 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
25 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
26 | * a choice of LGPL license versions is made available with the language indicating
|
---|
27 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
28 | * of the LGPL is applied is otherwise unspecified.
|
---|
29 | */
|
---|
30 |
|
---|
31 | #ifndef __WINE_DDE_H
|
---|
32 | #define __WINE_DDE_H
|
---|
33 |
|
---|
34 | #include <windef.h>
|
---|
35 |
|
---|
36 | #ifdef __cplusplus
|
---|
37 | extern "C" {
|
---|
38 | #endif
|
---|
39 |
|
---|
40 | #ifdef _USER32_
|
---|
41 | #define WINUSERAPI
|
---|
42 | #else
|
---|
43 | #define WINUSERAPI DECLSPEC_IMPORT
|
---|
44 | #endif
|
---|
45 |
|
---|
46 | #define WM_DDE_INITIATE 0x3E0
|
---|
47 | #define WM_DDE_TERMINATE 0x3E1
|
---|
48 | #define WM_DDE_ADVISE 0x3E2
|
---|
49 | #define WM_DDE_UNADVISE 0x3E3
|
---|
50 | #define WM_DDE_ACK 0x3E4
|
---|
51 | #define WM_DDE_DATA 0x3E5
|
---|
52 | #define WM_DDE_REQUEST 0x3E6
|
---|
53 | #define WM_DDE_POKE 0x3E7
|
---|
54 | #define WM_DDE_EXECUTE 0x3E8
|
---|
55 | #define WM_DDE_LAST WM_DDE_EXECUTE
|
---|
56 | #define WM_DDE_FIRST WM_DDE_INITIATE
|
---|
57 |
|
---|
58 | /* DDEACK: wStatus in WM_DDE_ACK message */
|
---|
59 | typedef struct
|
---|
60 | {
|
---|
61 | unsigned short bAppReturnCode:8, reserved:6, fBusy:1, fAck:1;
|
---|
62 | } DDEACK;
|
---|
63 |
|
---|
64 | /* DDEDATA: hData in WM_DDE_DATA message */
|
---|
65 | typedef struct
|
---|
66 | {
|
---|
67 | unsigned short unused:12, fResponse:1, fRelease:1, reserved:1, fAckReq:1;
|
---|
68 | short cfFormat;
|
---|
69 | BYTE Value[1]; /* undetermined array */
|
---|
70 | } DDEDATA;
|
---|
71 |
|
---|
72 | /* DDEADVISE: hOptions in WM_DDE_ADVISE message */
|
---|
73 | typedef struct
|
---|
74 | {
|
---|
75 | unsigned short reserved:14, fDeferUpd:1, fAckReq:1;
|
---|
76 | short cfFormat;
|
---|
77 | } DDEADVISE;
|
---|
78 |
|
---|
79 | /* DDEPOKE: hData in WM_DDE_POKE message. */
|
---|
80 | typedef struct
|
---|
81 | {
|
---|
82 | unsigned short unused:13, fRelease:1, fReserved:2;
|
---|
83 | short cfFormat;
|
---|
84 | BYTE Value[1]; /* undetermined array */
|
---|
85 | } DDEPOKE;
|
---|
86 |
|
---|
87 | WINUSERAPI BOOL WINAPI DdeSetQualityOfService(HWND,CONST SECURITY_QUALITY_OF_SERVICE *,PSECURITY_QUALITY_OF_SERVICE);
|
---|
88 | WINUSERAPI BOOL WINAPI FreeDDElParam(UINT,LPARAM);
|
---|
89 | WINUSERAPI BOOL WINAPI ImpersonateDdeClientWindow(HWND,HWND);
|
---|
90 | WINUSERAPI LPARAM WINAPI PackDDElParam(UINT,UINT_PTR,UINT_PTR);
|
---|
91 | WINUSERAPI LPARAM WINAPI ReuseDDElParam(LPARAM,UINT,UINT,UINT_PTR,UINT_PTR);
|
---|
92 | WINUSERAPI BOOL WINAPI UnpackDDElParam(UINT,LPARAM,PUINT_PTR,PUINT_PTR);
|
---|
93 |
|
---|
94 | #ifdef __cplusplus
|
---|
95 | }
|
---|
96 | #endif
|
---|
97 |
|
---|
98 | #endif /* __WINE_DDE_H */
|
---|