| 1 | /* $Id: dde.h,v 1.2 2002-02-11 13:51:38 sandervl Exp $ */
|
|---|
| 2 |
|
|---|
| 3 | /*****************************************************************************
|
|---|
| 4 | * Copyright 1995, Technion, Israel Institute of Technology
|
|---|
| 5 | * Electrical Eng, Software Lab.
|
|---|
| 6 | * Author: Michael Veksler.
|
|---|
| 7 | ***************************************************************************
|
|---|
| 8 | * File: dde.h
|
|---|
| 9 | * Purpose: dde declarations
|
|---|
| 10 | *
|
|---|
| 11 | *****************************************************************************
|
|---|
| 12 | */
|
|---|
| 13 | #ifndef __WINE_DDE_H
|
|---|
| 14 | #define __WINE_DDE_H
|
|---|
| 15 |
|
|---|
| 16 | #include "windef.h"
|
|---|
| 17 | #include "dde_proc.h"
|
|---|
| 18 |
|
|---|
| 19 | #define WM_DDE_INITIATE 0x3E0
|
|---|
| 20 | #define WM_DDE_TERMINATE 0x3E1
|
|---|
| 21 | #define WM_DDE_ADVISE 0x3E2
|
|---|
| 22 | #define WM_DDE_UNADVISE 0x3E3
|
|---|
| 23 | #define WM_DDE_ACK 0x3E4
|
|---|
| 24 | #define WM_DDE_DATA 0x3E5
|
|---|
| 25 | #define WM_DDE_REQUEST 0x3E6
|
|---|
| 26 | #define WM_DDE_POKE 0x3E7
|
|---|
| 27 | #define WM_DDE_EXECUTE 0x3E8
|
|---|
| 28 | #define WM_DDE_LAST WM_DDE_EXECUTE
|
|---|
| 29 | #define WM_DDE_FIRST WM_DDE_INITIATE
|
|---|
| 30 |
|
|---|
| 31 | #ifdef __cplusplus
|
|---|
| 32 | extern "C" {
|
|---|
| 33 | #endif
|
|---|
| 34 |
|
|---|
| 35 | /* DDEACK: wStatus in WM_DDE_ACK message */
|
|---|
| 36 | struct tagDDEACK
|
|---|
| 37 | {
|
|---|
| 38 | unsigned bAppReturnCode:8, reserved:6, fBusy:1, fAck:1;
|
|---|
| 39 | };
|
|---|
| 40 | typedef struct tagDDEACK DDEACK;
|
|---|
| 41 |
|
|---|
| 42 | /* DDEDATA: hData in WM_DDE_DATA message */
|
|---|
| 43 | struct tagDDEDATA
|
|---|
| 44 | {
|
|---|
| 45 | unsigned unused:12, fResponse:1, fRelease:1, reserved:1, fAckReq:1,
|
|---|
| 46 | cfFormat:16;
|
|---|
| 47 | BYTE Value[1]; /* undetermined array */
|
|---|
| 48 | };
|
|---|
| 49 | typedef struct tagDDEDATA DDEDATA;
|
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 | /* DDEADVISE: hOptions in WM_DDE_ADVISE message */
|
|---|
| 53 | struct tagDDEADVISE
|
|---|
| 54 | {
|
|---|
| 55 | unsigned reserved:14, fDeferUpd:1, fAckReq:1, cfFormat:16;
|
|---|
| 56 | };
|
|---|
| 57 | typedef struct tagDDEADVISE DDEADVISE;
|
|---|
| 58 |
|
|---|
| 59 | /* DDEPOKE: hData in WM_DDE_POKE message. */
|
|---|
| 60 | struct tagDDEPOKE
|
|---|
| 61 | {
|
|---|
| 62 | unsigned unused:13, fRelease:1, fReserved:2, cfFormat:16;
|
|---|
| 63 | BYTE Value[1]; /* undetermined array */
|
|---|
| 64 | };
|
|---|
| 65 | typedef struct tagDDEPOKE DDEPOKE;
|
|---|
| 66 |
|
|---|
| 67 |
|
|---|
| 68 | BOOL WINAPI DdeSetQualityOfService(HWND hwndClient,
|
|---|
| 69 | CONST SECURITY_QUALITY_OF_SERVICE *pqosNew,
|
|---|
| 70 | PSECURITY_QUALITY_OF_SERVICE pqosPrev);
|
|---|
| 71 |
|
|---|
| 72 | BOOL WINAPI ImpersonateDdeClientWindow(HWND hWndClient, HWND hWndServer);
|
|---|
| 73 |
|
|---|
| 74 | /* lParam packing/unpacking API */
|
|---|
| 75 |
|
|---|
| 76 | LPARAM WINAPI PackDDElParam(UINT,UINT,UINT);
|
|---|
| 77 | BOOL WINAPI UnpackDDElParam(UINT,LPARAM,PUINT,PUINT);
|
|---|
| 78 | BOOL WINAPI FreeDDElParam(UINT,LPARAM);
|
|---|
| 79 | LPARAM WINAPI ReuseDDElParam(LPARAM,UINT,UINT,UINT,UINT);
|
|---|
| 80 |
|
|---|
| 81 | #ifdef __cplusplus
|
|---|
| 82 | } // extern "C"
|
|---|
| 83 | #endif
|
|---|
| 84 |
|
|---|
| 85 | #endif /* __WINE_DDE_H */
|
|---|