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