ddeml.h revision 589fd26cedb2b4ebbed14f2964cad03cc8ebbca2
af062818b47340eef15700d2f0211576ba3506eevboxsync * DDEML library definitions
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright 1997 Alexandre Julliard
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright 1997 Len White
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is free software; you can redistribute it and/or
af062818b47340eef15700d2f0211576ba3506eevboxsync * modify it under the terms of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License as published by the Free Software Foundation; either
af062818b47340eef15700d2f0211576ba3506eevboxsync * version 2.1 of the License, or (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * Lesser General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync * You should have received a copy of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License along with this library; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * other than GPL or LGPL is available it will apply instead, Sun elects to use only
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * a choice of LGPL license versions is made available with the language indicating
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * that LGPLv2 or any later version may be used, or where a choice of which version
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * of the LGPL is applied is otherwise unspecified.
af062818b47340eef15700d2f0211576ba3506eevboxsyncextern "C" {
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif /* defined(__cplusplus) */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* Codepage Constants
af062818b47340eef15700d2f0211576ba3506eevboxsync/* DDE synchronisation constants
af062818b47340eef15700d2f0211576ba3506eevboxsync/* Type variation for MS deliberate departures from ANSI standards
af062818b47340eef15700d2f0211576ba3506eevboxsync/***************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync FLAGS Section - copied from Microsoft SDK as must be standard, probably Copyright Microsoft Corporation
af062818b47340eef15700d2f0211576ba3506eevboxsync***************************************************/
af062818b47340eef15700d2f0211576ba3506eevboxsync * DdeEnableCallback function codes
af062818b47340eef15700d2f0211576ba3506eevboxsync * Callback filter flags for use with standard apps.
af062818b47340eef15700d2f0211576ba3506eevboxsync * Application command flags
af062818b47340eef15700d2f0211576ba3506eevboxsync * Application classification flags
af062818b47340eef15700d2f0211576ba3506eevboxsync * Callback filter flags for use with MONITOR apps - 0 implies no monitor
af062818b47340eef15700d2f0211576ba3506eevboxsync * callbacks.
af062818b47340eef15700d2f0211576ba3506eevboxsync * DdeNameService service name flags
af062818b47340eef15700d2f0211576ba3506eevboxsync/****************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync End of Flags section
af062818b47340eef15700d2f0211576ba3506eevboxsync****************************************************/
af062818b47340eef15700d2f0211576ba3506eevboxsync/****************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync Message Types Section
af062818b47340eef15700d2f0211576ba3506eevboxsync****************************************************/
af062818b47340eef15700d2f0211576ba3506eevboxsync#define XTYPF_NOBLOCK 0x0002 /* CBR_NOBLOCK will not work */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define XTYP_ERROR (0x0000 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define XTYP_ADVREQ (0x0020 | XCLASS_DATA | XTYPF_NOBLOCK)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define XTYP_CONNECT (0x0060 | XCLASS_BOOL | XTYPF_NOBLOCK)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define XTYP_CONNECT_CONFIRM (0x0070 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define XTYP_XACT_COMPLETE (0x0080 | XCLASS_NOTIFICATION )
af062818b47340eef15700d2f0211576ba3506eevboxsync#define XTYP_REGISTER (0x00A0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK )
af062818b47340eef15700d2f0211576ba3506eevboxsync#define XTYP_DISCONNECT (0x00C0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK )
af062818b47340eef15700d2f0211576ba3506eevboxsync#define XTYP_UNREGISTER (0x00D0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK )
af062818b47340eef15700d2f0211576ba3506eevboxsync#define XTYP_WILDCONNECT (0x00E0 | XCLASS_DATA | XTYPF_NOBLOCK)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define XTYP_MONITOR (0x00F0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK)
af062818b47340eef15700d2f0211576ba3506eevboxsync/**************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync End of Message Types Section
af062818b47340eef15700d2f0211576ba3506eevboxsync****************************************************/
af062818b47340eef15700d2f0211576ba3506eevboxsync/*****************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync DDE Codes for wStatus field
af062818b47340eef15700d2f0211576ba3506eevboxsync*****************************************************/
af062818b47340eef15700d2f0211576ba3506eevboxsync#define DDE_FACKRESERVED (~(DDE_FACK | DDE_FBUSY | DDE_FAPPSTATUS))
af062818b47340eef15700d2f0211576ba3506eevboxsync#define DDE_FADVRESERVED (~(DDE_FACKREQ | DDE_FDEFERUPD))
af062818b47340eef15700d2f0211576ba3506eevboxsync#define DDE_FDATRESERVED (~(DDE_FACKREQ | DDE_FRELEASE | DDE_FREQUESTED))
af062818b47340eef15700d2f0211576ba3506eevboxsync/*****************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync End of wStatus codes
af062818b47340eef15700d2f0211576ba3506eevboxsync*****************************************************/
af062818b47340eef15700d2f0211576ba3506eevboxsync/****************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync Return Codes section again copied from SDK as must be same
af062818b47340eef15700d2f0211576ba3506eevboxsync*****************************************************/
af062818b47340eef15700d2f0211576ba3506eevboxsync/*****************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync End of Return Codes and Microsoft section
af062818b47340eef15700d2f0211576ba3506eevboxsync******************************************************/
af062818b47340eef15700d2f0211576ba3506eevboxsync/*******************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync API Entry Points
af062818b47340eef15700d2f0211576ba3506eevboxsync*******************************************************/
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef HDDEDATA (CALLBACK *PFNCALLBACK)(UINT, UINT, HCONV, HSZ, HSZ,
af062818b47340eef15700d2f0211576ba3506eevboxsync/***************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync Externally visible data structures
af062818b47340eef15700d2f0211576ba3506eevboxsync***************************************************/
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct tagHSZPAIR
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct tagCONVINFO
af062818b47340eef15700d2f0211576ba3506eevboxsync/* Interface Definitions */
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI BOOL WINAPI DdeAbandonTransaction(DWORD idInst, HCONV hConv, DWORD idTransaction);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI LPBYTE WINAPI DdeAccessData(HDDEDATA,LPDWORD);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI HDDEDATA WINAPI DdeAddData(HDDEDATA,LPBYTE,DWORD,DWORD);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI HDDEDATA WINAPI DdeClientTransaction(LPBYTE,DWORD,HCONV,HSZ,UINT,UINT,DWORD,LPDWORD);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI HCONV WINAPI DdeConnect(DWORD,HSZ,HSZ,PCONVCONTEXT);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI HCONVLIST WINAPI DdeConnectList(DWORD,HSZ,HSZ,HCONVLIST,PCONVCONTEXT);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI HDDEDATA WINAPI DdeCreateDataHandle(DWORD,LPBYTE,DWORD,DWORD,HSZ,UINT,UINT);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI HSZ WINAPI DdeCreateStringHandleA(DWORD,LPCSTR,INT);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI HSZ WINAPI DdeCreateStringHandleW(DWORD,LPCWSTR,INT);
af062818b47340eef15700d2f0211576ba3506eevboxsync#define DdeCreateStringHandle WINELIB_NAME_AW(DdeCreateStringHandle)
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI BOOL WINAPI DdeDisconnectList(HCONVLIST);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI BOOL WINAPI DdeEnableCallback(DWORD,HCONV,UINT);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI BOOL WINAPI DdeFreeStringHandle(DWORD,HSZ);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI DWORD WINAPI DdeGetData(HDDEDATA,LPBYTE,DWORD,DWORD);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI UINT WINAPI DdeInitializeA(LPDWORD,PFNCALLBACK,DWORD,DWORD);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI UINT WINAPI DdeInitializeW(LPDWORD,PFNCALLBACK,DWORD,DWORD);
af062818b47340eef15700d2f0211576ba3506eevboxsync#define DdeInitialize WINELIB_NAME_AW(DdeInitialize)
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI BOOL WINAPI DdeKeepStringHandle(DWORD,HSZ);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI HDDEDATA WINAPI DdeNameService(DWORD,HSZ,HSZ,UINT);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI BOOL WINAPI DdePostAdvise(DWORD,HSZ,HSZ);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI UINT WINAPI DdeQueryConvInfo(HCONV,DWORD,PCONVINFO);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI HCONV WINAPI DdeQueryNextServer(HCONVLIST, HCONV);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI DWORD WINAPI DdeQueryStringA(DWORD, HSZ, LPSTR, DWORD, INT);
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI DWORD WINAPI DdeQueryStringW(DWORD, HSZ, LPWSTR, DWORD, INT);
af062818b47340eef15700d2f0211576ba3506eevboxsync#define DdeQueryString WINELIB_NAME_AW(DdeQueryString)
af062818b47340eef15700d2f0211576ba3506eevboxsyncWINUSERAPI BOOL WINAPI DdeSetUserHandle(HCONV,DWORD,DWORD);
af062818b47340eef15700d2f0211576ba3506eevboxsync} /* extern "C" */
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif /* defined(__cplusplus) */
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif /* __WINE_DDEML_H */