source: trunk/src/user32/dde.cpp@ 2804

Last change on this file since 2804 was 2804, checked in by sandervl, 26 years ago

Added new logging feature

File size: 15.2 KB
Line 
1/* $Id: dde.cpp,v 1.10 2000-02-16 14:34:14 sandervl Exp $ */
2
3/*
4 * Win32 default window API functions for OS/2
5 *
6 * Copyright 1998 Sander van Leeuwen
7 *
8 *
9 * Project Odin Software License can be found in LICENSE.TXT
10 *
11 */
12#include <os2win.h>
13#include <misc.h>
14#define DBG_LOCALLOG DBG_dde
15#include "dbglocal.h"
16
17//******************************************************************************
18//******************************************************************************
19BOOL WIN32API DdeAbandonTransaction( DWORD arg1, HCONV arg2, DWORD arg3)
20{
21 dprintf(("USER32: DdeAbandonTransaction\n"));
22 return O32_DdeAbandonTransaction(arg1, arg2, arg3);
23}
24//******************************************************************************
25//******************************************************************************
26PBYTE WIN32API DdeAccessData(HDDEDATA arg1, PDWORD arg2)
27{
28 dprintf(("USER32: DdeAccessData\n"));
29 return O32_DdeAccessData(arg1, arg2);
30}
31//******************************************************************************
32//******************************************************************************
33HDDEDATA WIN32API DdeAddData( HDDEDATA arg1, PVOID arg2, DWORD arg3, DWORD arg4)
34{
35 dprintf(("USER32: DdeAddData"));
36 return O32_DdeAddData(arg1, arg2, arg3, arg4);
37}
38//******************************************************************************
39//******************************************************************************
40HDDEDATA WIN32API DdeClientTransaction(PVOID arg1, DWORD arg2, HCONV arg3,
41 HSZ arg4, UINT arg5, UINT arg6, DWORD arg7,
42 PDWORD arg8)
43{
44
45 dprintf(("USER32: DdeClientTransaction\n"));
46
47 return O32_DdeClientTransaction(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
48}
49//******************************************************************************
50//******************************************************************************
51int WIN32API DdeCmpStringHandles( HSZ arg1, HSZ arg2)
52{
53
54 dprintf(("USER32: DdeCmpStringHandles\n"));
55
56 return O32_DdeCmpStringHandles(arg1, arg2);
57}
58//******************************************************************************
59//******************************************************************************
60HCONV WIN32API DdeConnect( DWORD arg1, HSZ arg2, HSZ arg3, LPCONVCONTEXT arg4)
61{
62 HCONV rc;
63
64 rc = O32_DdeConnect(arg1, arg2, arg3, arg4);
65 dprintf(("USER32: DdeConnect %x %x returned %d (%x)", arg2, arg3, rc, DdeGetLastError(arg1)));
66 return rc;
67}
68//******************************************************************************
69//******************************************************************************
70HCONVLIST WIN32API DdeConnectList(DWORD arg1, HSZ arg2, HSZ arg3, HCONVLIST arg4, LPCONVCONTEXT arg5)
71{
72
73 dprintf(("USER32: DdeConnectList\n"));
74
75 return O32_DdeConnectList(arg1, arg2, arg3, arg4, arg5);
76}
77//******************************************************************************
78//******************************************************************************
79HDDEDATA WIN32API DdeCreateDataHandle(DWORD arg1, PVOID arg2, DWORD arg3, DWORD arg4,
80 HSZ arg5, UINT arg6, UINT arg7)
81{
82 dprintf(("USER32: DdeCreateDataHandle\n"));
83 return O32_DdeCreateDataHandle(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
84}
85//******************************************************************************
86//******************************************************************************
87HSZ WIN32API DdeCreateStringHandleA(DWORD arg1, LPCSTR arg2, int arg3)
88{
89 HSZ rc;
90
91 rc = O32_DdeCreateStringHandle(arg1, arg2, arg3);
92 dprintf(("USER32: OS2DdeCreateStringHandleA %s returned %x", arg2, rc));
93 return rc;
94}
95//******************************************************************************
96//******************************************************************************
97HSZ WIN32API DdeCreateStringHandleW(DWORD arg1, LPCWSTR arg2, int arg3)
98{
99 char *astring = UnicodeToAsciiString((LPWSTR)arg2);
100 HSZ rc;
101
102 dprintf(("USER32: DdeCreateStringHandleW DOESN'T WORK\n"));
103 rc = O32_DdeCreateStringHandle(arg1, astring, arg3);
104 FreeAsciiString(astring);
105 return rc;
106}
107//******************************************************************************
108//******************************************************************************
109BOOL WIN32API DdeDisconnect(HCONV arg1)
110{
111
112 dprintf(("USER32: DdeDisconnect\n"));
113
114 return O32_DdeDisconnect(arg1);
115}
116//******************************************************************************
117//******************************************************************************
118BOOL WIN32API DdeDisconnectList( HCONVLIST arg1)
119{
120
121 dprintf(("USER32: DdeDisconnectList\n"));
122
123 return O32_DdeDisconnectList(arg1);
124}
125//******************************************************************************
126//******************************************************************************
127BOOL WIN32API DdeEnableCallback(DWORD arg1, HCONV arg2, UINT arg3)
128{
129
130 dprintf(("USER32: DdeEnableCallback\n"));
131
132 return O32_DdeEnableCallback(arg1, arg2, arg3);
133}
134//******************************************************************************
135//******************************************************************************
136BOOL WIN32API DdeFreeDataHandle( HDDEDATA arg1)
137{
138
139 dprintf(("USER32: DdeFreeDataHandle\n"));
140
141 return O32_DdeFreeDataHandle(arg1);
142}
143//******************************************************************************
144//******************************************************************************
145BOOL WIN32API DdeFreeStringHandle(DWORD arg1, HSZ arg2)
146{
147
148 dprintf(("USER32: DdeFreeStringHandle\n"));
149
150 return O32_DdeFreeStringHandle(arg1, arg2);
151}
152//******************************************************************************
153//******************************************************************************
154DWORD WIN32API DdeGetData( HDDEDATA arg1, PVOID arg2, DWORD arg3, DWORD arg4)
155{
156
157 dprintf(("USER32: DdeGetData\n"));
158
159 return O32_DdeGetData(arg1, arg2, arg3, arg4);
160}
161//******************************************************************************
162//******************************************************************************
163UINT WIN32API DdeGetLastError(DWORD arg1)
164{
165
166 dprintf(("USER32: DdeGetLastError\n"));
167
168 return O32_DdeGetLastError(arg1);
169}
170//******************************************************************************
171//******************************************************************************
172UINT WIN32API DdeInitializeA(PDWORD arg1, PFNCALLBACK arg2, DWORD arg3, DWORD arg4)
173{
174 UINT rc;
175
176 rc = O32_DdeInitialize(arg1, arg2, arg3, arg4);
177
178 dprintf(("USER32: DdeInitializeA\n"));
179 return rc;
180}
181//******************************************************************************
182//******************************************************************************
183UINT WIN32API DdeInitializeW(PDWORD arg1, PFNCALLBACK arg2, DWORD arg3, DWORD arg4)
184{
185
186 dprintf(("USER32: DdeInitializeW\n"));
187
188 // NOTE: This will not work as is (needs UNICODE support)
189 return O32_DdeInitialize(arg1, arg2, arg3, arg4);
190}
191//******************************************************************************
192//******************************************************************************
193BOOL WIN32API DdeKeepStringHandle(DWORD arg1, HSZ arg2)
194{
195
196 dprintf(("USER32: DdeKeepStringHandle\n"));
197
198 return O32_DdeKeepStringHandle(arg1, arg2);
199}
200//******************************************************************************
201//******************************************************************************
202HDDEDATA WIN32API DdeNameService( DWORD arg1, HSZ arg2, HSZ arg3, UINT arg4)
203{
204
205 dprintf(("USER32: DdeNameService\n"));
206
207 return O32_DdeNameService(arg1, arg2, arg3, arg4);
208}
209//******************************************************************************
210//******************************************************************************
211BOOL WIN32API DdePostAdvise(DWORD arg1, HSZ arg2, HSZ arg3)
212{
213
214 dprintf(("USER32: DdePostAdvise\n"));
215
216 return O32_DdePostAdvise(arg1, arg2, arg3);
217}
218//******************************************************************************
219//******************************************************************************
220UINT WIN32API DdeQueryConvInfo( HCONV arg1, DWORD arg2, LPCONVINFO arg3)
221{
222
223 dprintf(("USER32: DdeQueryConvInfo\n"));
224
225 return O32_DdeQueryConvInfo(arg1, arg2, arg3);
226}
227//******************************************************************************
228//******************************************************************************
229HCONV WIN32API DdeQueryNextServer( HCONVLIST arg1, HCONV arg2)
230{
231
232 dprintf(("USER32: DdeQueryNextServer\n"));
233
234 return O32_DdeQueryNextServer(arg1, arg2);
235}
236//******************************************************************************
237//******************************************************************************
238DWORD WIN32API DdeQueryStringA(DWORD arg1, HSZ arg2, LPSTR arg3, DWORD arg4, int arg5)
239{
240
241 dprintf(("USER32: DdeQueryStringA\n"));
242
243 return O32_DdeQueryString(arg1, arg2, arg3, arg4, arg5);
244}
245//******************************************************************************
246//******************************************************************************
247DWORD WIN32API DdeQueryStringW(DWORD arg1, HSZ arg2, LPWSTR arg3, DWORD arg4, int arg5)
248{
249 char *astring = UnicodeToAsciiString(arg3);
250 DWORD rc;
251
252 dprintf(("USER32: DdeQueryStringW\n"));
253 rc = O32_DdeQueryString(arg1, arg2, astring, arg4, arg5);
254 FreeAsciiString(astring);
255 return rc;
256}
257//******************************************************************************
258//******************************************************************************
259HCONV WIN32API DdeReconnect( HCONV arg1)
260{
261
262 dprintf(("USER32: DdeReconnect\n"));
263
264 return O32_DdeReconnect(arg1);
265}
266//******************************************************************************
267//******************************************************************************
268BOOL WIN32API DdeSetUserHandle( HCONV arg1, DWORD arg2, DWORD arg3)
269{
270
271 dprintf(("USER32: DdeSetUserHandle\n"));
272
273 return O32_DdeSetUserHandle(arg1, arg2, arg3);
274}
275//******************************************************************************
276//******************************************************************************
277BOOL WIN32API DdeUnaccessData( HDDEDATA arg1)
278{
279
280 dprintf(("USER32: DdeUnaccessData\n"));
281
282 return O32_DdeUnaccessData(arg1);
283}
284//******************************************************************************
285//******************************************************************************
286BOOL WIN32API DdeUninitialize(DWORD arg1)
287{
288
289 dprintf(("USER32: DdeUninitialize\n"));
290
291 return O32_DdeUninitialize(arg1);
292}
293//******************************************************************************
294//******************************************************************************
295BOOL WIN32API FreeDDElParam( UINT arg1, LONG arg2)
296{
297
298 dprintf(("USER32: FreeDDElParam\n"));
299
300 return O32_FreeDDElParam(arg1, arg2);
301}
302//******************************************************************************
303//******************************************************************************
304LONG WIN32API PackDDElParam(UINT arg1, UINT arg2, UINT arg3)
305{
306
307 dprintf(("USER32: PackDDElParam\n"));
308
309 return O32_PackDDElParam(arg1, arg2, arg3);
310}
311//******************************************************************************
312//******************************************************************************
313UINT WIN32API ReuseDDElParam( UINT arg1, UINT arg2, UINT arg3, UINT arg4, UINT arg5)
314{
315
316 dprintf(("USER32: ReuseDDElParam\n"));
317
318 return O32_ReuseDDElParam(arg1, arg2, arg3, arg4, arg5);
319}
320//******************************************************************************
321//******************************************************************************
322BOOL WIN32API UnpackDDElParam(UINT arg1, UINT arg2, LPUINT arg3, LPUINT arg4)
323{
324
325 dprintf(("USER32: UnpackDDElParam\n"));
326
327 return O32_UnpackDDElParam(arg1, arg2, arg3, arg4);
328}
329//******************************************************************************
330//******************************************************************************
331/*****************************************************************************
332 * Name : BOOL WIN32API DdeImpersonateClient
333 * Purpose : The DdeImpersonateClient function impersonates a dynamic data
334 * exchange (DDE) client application in a DDE client conversation.
335 * Parameters: HCONV hConv handle of the DDE conversation
336 * Variables :
337 * Result : If the function succeeds, the return value is TRUE.
338 * If the function fails, the return value is FALSE. To get
339 * extended error information, call GetLastError.
340 * Remark :
341 * Status : UNTESTED STUB
342 *
343 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
344 *****************************************************************************/
345
346BOOL WIN32API DdeImpersonateClient(HCONV hConv)
347{
348 dprintf(("USER32:DdeImpersonateClient (%08x) not implemented.\n",
349 hConv));
350
351 return (TRUE);
352}
353
354
355/*****************************************************************************
356 * Name : BOOL WIN32API DdeSetQualityOfService
357 * Purpose : The DdeSetQualityOfService function specifies the quality of
358 * service a raw DDE application desires for future DDE conversations
359 * it initiates.
360 * Parameters:
361 * Variables :
362 * Result : If the function succeeds, the return value is TRUE.
363 * If the function fails, the return value is FALSE. To get
364 * extended error information, call GetLastError.
365 * Remark :
366 * Status : UNTESTED STUB
367 *
368 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
369 *****************************************************************************/
370
371BOOL WIN32API DdeSetQualityOfService (HWND hwndClient,
372 CONST SECURITY_QUALITY_OF_SERVICE *pqosNew,
373 PSECURITY_QUALITY_OF_SERVICE pqosPrev)
374{
375 dprintf(("USER32:DdeSetQualityOfService(%08xh,%08xh,%08x) not implemented.\n",
376 hwndClient,
377 pqosNew,
378 pqosPrev));
379
380 return (FALSE);
381}
382/*****************************************************************************
383 * Name : BOOL WIN32API ImpersonateDdeClientWindow
384 * Purpose : The ImpersonateDdeClientWindow function enables a DDE server
385 * application to impersonate a DDE client application's security
386 * context in order to protect secure server data from unauthorized
387 * DDE clients.
388 * Parameters: HWND hWndClient handle of DDE client window
389 * HWND hWndServer handle of DDE server window
390 * Variables :
391 * Result : If the function succeeds, the return value is TRUE.
392 * If the function fails, the return value is FALSE. To get extended
393 * error information, call GetLastError.
394 * Remark :
395 * Status : UNTESTED STUB
396 *
397 * Author : Patrick Haller [Thu, 1998/02/26 11:55]
398 *****************************************************************************/
399
400BOOL WIN32API ImpersonateDdeClientWindow(HWND hWndClient,
401 HWND hWndServer)
402{
403 dprintf(("USER32:ImpersonateDdeClientWindow (%08xh,%08x) not implemented.\n",
404 hWndClient,
405 hWndServer));
406
407 return (FALSE);
408}
Note: See TracBrowser for help on using the repository browser.