Jonathan Ernst | 360a3f9 | 2006-05-18 14:49:52 +0200 | [diff] [blame] | 1 | /* |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2 | * Copyright 1995, Technion, Israel Institute of Technology |
| 3 | * Electrical Eng, Software Lab. |
| 4 | * Author: Michael Veksler. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5 | * Purpose: dde declarations |
| 6 | * |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 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 |
Jonathan Ernst | 360a3f9 | 2006-05-18 14:49:52 +0200 | [diff] [blame] | 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20 | */ |
Jonathan Ernst | 360a3f9 | 2006-05-18 14:49:52 +0200 | [diff] [blame] | 21 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 22 | #ifndef __WINE_DDE_H |
| 23 | #define __WINE_DDE_H |
| 24 | |
Dimitrie O. Paun | 53f9c21 | 2003-08-28 21:43:34 +0000 | [diff] [blame] | 25 | #include <windef.h> |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 26 | |
Francois Gouget | 8930569 | 2000-10-12 20:44:14 +0000 | [diff] [blame] | 27 | #ifdef __cplusplus |
| 28 | extern "C" { |
| 29 | #endif |
| 30 | |
Alexandre Julliard | 919e32c | 2007-11-07 12:26:29 +0100 | [diff] [blame] | 31 | #ifdef _USER32_ |
| 32 | #define WINUSERAPI |
| 33 | #else |
| 34 | #define WINUSERAPI DECLSPEC_IMPORT |
| 35 | #endif |
| 36 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 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 |
| 48 | |
| 49 | /* DDEACK: wStatus in WM_DDE_ACK message */ |
Dmitry Timoshkov | 37d3996 | 2003-05-19 23:27:16 +0000 | [diff] [blame] | 50 | typedef struct |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 51 | { |
Eric Pouech | 6a03ac0 | 2001-06-22 23:02:48 +0000 | [diff] [blame] | 52 | unsigned short bAppReturnCode:8, reserved:6, fBusy:1, fAck:1; |
Dmitry Timoshkov | 37d3996 | 2003-05-19 23:27:16 +0000 | [diff] [blame] | 53 | } DDEACK; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 54 | |
| 55 | /* DDEDATA: hData in WM_DDE_DATA message */ |
Dmitry Timoshkov | 37d3996 | 2003-05-19 23:27:16 +0000 | [diff] [blame] | 56 | typedef struct |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 57 | { |
Dmitry Timoshkov | 37d3996 | 2003-05-19 23:27:16 +0000 | [diff] [blame] | 58 | unsigned short unused:12, fResponse:1, fRelease:1, reserved:1, fAckReq:1; |
| 59 | short cfFormat; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 60 | BYTE Value[1]; /* undetermined array */ |
Dmitry Timoshkov | 37d3996 | 2003-05-19 23:27:16 +0000 | [diff] [blame] | 61 | } DDEDATA; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 62 | |
| 63 | /* DDEADVISE: hOptions in WM_DDE_ADVISE message */ |
Dmitry Timoshkov | 37d3996 | 2003-05-19 23:27:16 +0000 | [diff] [blame] | 64 | typedef struct |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 65 | { |
Dmitry Timoshkov | 37d3996 | 2003-05-19 23:27:16 +0000 | [diff] [blame] | 66 | unsigned short reserved:14, fDeferUpd:1, fAckReq:1; |
| 67 | short cfFormat; |
| 68 | } DDEADVISE; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 69 | |
| 70 | /* DDEPOKE: hData in WM_DDE_POKE message. */ |
Dmitry Timoshkov | 37d3996 | 2003-05-19 23:27:16 +0000 | [diff] [blame] | 71 | typedef struct |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 72 | { |
Dmitry Timoshkov | 37d3996 | 2003-05-19 23:27:16 +0000 | [diff] [blame] | 73 | unsigned short unused:13, fRelease:1, fReserved:2; |
| 74 | short cfFormat; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 75 | BYTE Value[1]; /* undetermined array */ |
Dmitry Timoshkov | 37d3996 | 2003-05-19 23:27:16 +0000 | [diff] [blame] | 76 | } DDEPOKE; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 77 | |
Alexandre Julliard | 919e32c | 2007-11-07 12:26:29 +0100 | [diff] [blame] | 78 | WINUSERAPI BOOL WINAPI DdeSetQualityOfService(HWND,CONST SECURITY_QUALITY_OF_SERVICE *,PSECURITY_QUALITY_OF_SERVICE); |
| 79 | WINUSERAPI BOOL WINAPI FreeDDElParam(UINT,LPARAM); |
| 80 | WINUSERAPI BOOL WINAPI ImpersonateDdeClientWindow(HWND,HWND); |
| 81 | WINUSERAPI LPARAM WINAPI PackDDElParam(UINT,UINT_PTR,UINT_PTR); |
| 82 | WINUSERAPI LPARAM WINAPI ReuseDDElParam(LPARAM,UINT,UINT,UINT_PTR,UINT_PTR); |
| 83 | WINUSERAPI BOOL WINAPI UnpackDDElParam(UINT,LPARAM,PUINT_PTR,PUINT_PTR); |
Francois Gouget | 8930569 | 2000-10-12 20:44:14 +0000 | [diff] [blame] | 84 | |
| 85 | #ifdef __cplusplus |
| 86 | } |
| 87 | #endif |
| 88 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 89 | #endif /* __WINE_DDE_H */ |