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

Last change on this file since 4 was 4, checked in by ktk, 26 years ago

Import

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