Release 971012
[wine.git] / include / ddeml.h
blobd2d4d11be6d15a910370dda9d9eba937fb88b377
1 /*
2 * DDEML library definitions
4 * Copyright 1997 Alexandre Julliard
5 */
7 #ifndef __WINE__DDEML_H
8 #define __WINE__DDEML_H
10 #include "wintypes.h"
12 typedef DWORD HCONVLIST;
13 typedef DWORD HCONV;
14 typedef DWORD HSZ;
15 typedef DWORD HDDEDATA;
17 typedef HDDEDATA (CALLBACK *PFNCALLBACK16)(UINT16,UINT16,HCONV,HSZ,HSZ,
18 HDDEDATA,DWORD,DWORD);
19 typedef HDDEDATA (CALLBACK *PFNCALLBACK32)(UINT32,UINT32,HCONV,HSZ,HSZ,
20 HDDEDATA,DWORD,DWORD);
21 DECL_WINELIB_TYPE(PFNCALLBACK);
23 typedef struct
25 UINT16 cb;
26 UINT16 wFlags;
27 UINT16 wCountryID;
28 INT16 iCodePage;
29 DWORD dwLangID;
30 DWORD dwSecurity;
31 } CONVCONTEXT16, *LPCONVCONTEXT16;
33 typedef struct
35 UINT32 cb;
36 UINT32 wFlags;
37 UINT32 wCountryID;
38 INT32 iCodePage;
39 DWORD dwLangID;
40 DWORD dwSecurity;
41 } CONVCONTEXT32, *LPCONVCONTEXT32;
43 DECL_WINELIB_TYPE(CONVCONTEXT);
44 DECL_WINELIB_TYPE(LPCONVCONTEXT);
46 UINT16 WINAPI DdeInitialize16(LPDWORD,PFNCALLBACK16,DWORD,DWORD);
47 UINT32 WINAPI DdeInitialize32A(LPDWORD,PFNCALLBACK32,DWORD,DWORD);
48 UINT32 WINAPI DdeInitialize32W(LPDWORD,PFNCALLBACK32,DWORD,DWORD);
49 #define DdeInitialize WINELIB_NAME_AW(DdeInitialize)
50 BOOL16 WINAPI DdeUninitialize16(DWORD);
51 BOOL32 WINAPI DdeUninitialize32(DWORD);
52 #define DdeUninitialize WINELIB_NAME(DdeUninitialize)
53 HCONV WINAPI DdeConnect16(DWORD,HSZ,HSZ,LPCONVCONTEXT16);
54 HCONV WINAPI DdeConnect32(DWORD,HSZ,HSZ,LPCONVCONTEXT32);
55 #define DdeConnect WINELIB_NAME(DdeConnect)
56 BOOL16 WINAPI DdeDisconnect16(HCONV);
57 BOOL32 WINAPI DdeDisconnect32(HCONV);
58 #define DdeDisconnect WINELIB_NAME(DdeDisconnect)
59 HCONV WINAPI DdeReconnect(HCONV);
60 HSZ WINAPI DdeCreateStringHandle16(DWORD,LPCSTR,INT16);
61 HSZ WINAPI DdeCreateStringHandle32A(DWORD,LPCSTR,INT32);
62 HSZ WINAPI DdeCreateStringHandle32W(DWORD,LPCWSTR,INT32);
63 #define DdeCreateStringHandle WINELIB_NAME_AW(DdeCreateStringHandle)
64 BOOL16 WINAPI DdeFreeStringHandle16(DWORD,HSZ);
65 BOOL32 WINAPI DdeFreeStringHandle32(DWORD,HSZ);
66 #define DdeFreeStringHandle WINELIB_NAME(DdeFreeStringHandle)
67 BOOL16 WINAPI DdeFreeDataHandle16(HDDEDATA);
68 BOOL32 WINAPI DdeFreeDataHandle32(HDDEDATA);
69 #define DdeFreeDataHandle WINELIB_NAME(DdeFreeDataHandle)
70 BOOL16 WINAPI DdeKeepStringHandle16(DWORD,HSZ);
71 BOOL32 WINAPI DdeKeepStringHandle32(DWORD,HSZ);
72 #define DdeKeepStringHandle WINELIB_NAME(DdeKeepStringHandle)
73 HDDEDATA WINAPI DdeClientTransaction16(LPVOID,DWORD,HCONV,HSZ,UINT16,
74 UINT16,DWORD,LPDWORD);
75 HDDEDATA WINAPI DdeClientTransaction32(LPBYTE,DWORD,HCONV,HSZ,UINT32,
76 UINT32,DWORD,LPDWORD);
77 #define DdeClientTransaction WINELIB_NAME(DdeClientTransaction)
78 HDDEDATA WINAPI DdeNameService16(DWORD,HSZ,HSZ,UINT16);
79 HDDEDATA WINAPI DdeNameService32(DWORD,HSZ,HSZ,UINT32);
80 #define DdeNameService WINELIB_NAME(DdeNameService)
81 UINT16 WINAPI DdeGetLastError16(DWORD);
82 UINT32 WINAPI DdeGetLastError32(DWORD);
83 #define DdeGetLastError WINELIB_NAME(DdeGetLastError)
85 #endif /* __WINE__DDEML_H */