| 1 | /* $Id: dde.cpp,v 1.16 2003-01-21 11:47:46 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 <unicode.h> | 
|---|
| 14 | #include <ddeml.h> | 
|---|
| 15 | #include <dde.h> | 
|---|
| 16 | #include <odinwrap.h> | 
|---|
| 17 | #include <dbgwrap.h> | 
|---|
| 18 |  | 
|---|
| 19 | #define DBG_LOCALLOG    DBG_dde | 
|---|
| 20 | #include "dbglocal.h" | 
|---|
| 21 |  | 
|---|
| 22 | #define DBGWRAP_MODULE "USER32" | 
|---|
| 23 | #include <dbgwrap.h> | 
|---|
| 24 |  | 
|---|
| 25 | #ifdef DEBUG | 
|---|
| 26 | #undef DBG_LOCALLOG | 
|---|
| 27 | #define DBG_LOCALLOG    DBG_dde | 
|---|
| 28 | DEBUGWRAP12(DdeAbandonTransaction) | 
|---|
| 29 | DEBUGWRAP8(DdeAccessData) | 
|---|
| 30 | DEBUGWRAP16(DdeAddData) | 
|---|
| 31 | DEBUGWRAP32(DdeClientTransaction) | 
|---|
| 32 | DEBUGWRAP8(DdeCmpStringHandles) | 
|---|
| 33 | DEBUGWRAP16(DdeConnect) | 
|---|
| 34 | DEBUGWRAP20(DdeConnectList) | 
|---|
| 35 | DEBUGWRAP28(DdeCreateDataHandle) | 
|---|
| 36 | DEBUGWRAP12(DdeCreateStringHandleA) | 
|---|
| 37 | DEBUGWRAP12(DdeCreateStringHandleW) | 
|---|
| 38 | DEBUGWRAP4(DdeDisconnect) | 
|---|
| 39 | DEBUGWRAP4(DdeDisconnectList) | 
|---|
| 40 | DEBUGWRAP12(DdeEnableCallback) | 
|---|
| 41 | DEBUGWRAP4(DdeFreeDataHandle) | 
|---|
| 42 | DEBUGWRAP8(DdeFreeStringHandle) | 
|---|
| 43 | DEBUGWRAP16(DdeGetData) | 
|---|
| 44 | DEBUGWRAP4(DdeGetLastError) | 
|---|
| 45 | DEBUGWRAP4(DdeImpersonateClient) | 
|---|
| 46 | DEBUGWRAP16(DdeInitializeA) | 
|---|
| 47 | DEBUGWRAP16(DdeInitializeW) | 
|---|
| 48 | DEBUGWRAP8(DdeKeepStringHandle) | 
|---|
| 49 | DEBUGWRAP16(DdeNameService) | 
|---|
| 50 | DEBUGWRAP12(DdePostAdvise) | 
|---|
| 51 | DEBUGWRAP12(DdeQueryConvInfo) | 
|---|
| 52 | DEBUGWRAP8(DdeQueryNextServer) | 
|---|
| 53 | DEBUGWRAP20(DdeQueryStringA) | 
|---|
| 54 | DEBUGWRAP20(DdeQueryStringW) | 
|---|
| 55 | DEBUGWRAP4(DdeReconnect) | 
|---|
| 56 | DEBUGWRAP12(DdeSetQualityOfService) | 
|---|
| 57 | DEBUGWRAP12(DdeSetUserHandle) | 
|---|
| 58 | DEBUGWRAP4(DdeUnaccessData) | 
|---|
| 59 | DEBUGWRAP4(DdeUninitialize) | 
|---|
| 60 | DEBUGWRAP8(FreeDDElParam) | 
|---|
| 61 | DEBUGWRAP8(ImpersonateDdeClientWindow) | 
|---|
| 62 | DEBUGWRAP12(PackDDElParam) | 
|---|
| 63 | DEBUGWRAP20(ReuseDDElParam) | 
|---|
| 64 | DEBUGWRAP16(UnpackDDElParam) | 
|---|
| 65 | #endif | 
|---|
| 66 |  | 
|---|
| 67 | //****************************************************************************** | 
|---|
| 68 | //****************************************************************************** | 
|---|
| 69 | BOOL WIN32API DdeAbandonTransaction( DWORD arg1, HCONV arg2, DWORD  arg3) | 
|---|
| 70 | { | 
|---|
| 71 | dprintf(("USER32: DdeAbandonTransaction %x %x %x", arg1, arg2, arg3)); | 
|---|
| 72 | return O32_DdeAbandonTransaction(arg1, arg2, arg3); | 
|---|
| 73 | } | 
|---|
| 74 | //****************************************************************************** | 
|---|
| 75 | //****************************************************************************** | 
|---|
| 76 | PBYTE WIN32API DdeAccessData(HDDEDATA arg1, PDWORD  arg2) | 
|---|
| 77 | { | 
|---|
| 78 | dprintf(("USER32: DdeAccessData %x %x", arg1, arg2)); | 
|---|
| 79 | return O32_DdeAccessData(arg1, arg2); | 
|---|
| 80 | } | 
|---|
| 81 | //****************************************************************************** | 
|---|
| 82 | //****************************************************************************** | 
|---|
| 83 | HDDEDATA WIN32API DdeAddData( HDDEDATA arg1, LPBYTE arg2, DWORD arg3, DWORD  arg4) | 
|---|
| 84 | { | 
|---|
| 85 | dprintf(("USER32: DdeAddData %x %x %x %x", arg1, arg2, arg3, arg4)); | 
|---|
| 86 | return O32_DdeAddData(arg1, (PVOID)arg2, arg3, arg4); | 
|---|
| 87 | } | 
|---|
| 88 | //****************************************************************************** | 
|---|
| 89 | //****************************************************************************** | 
|---|
| 90 | HDDEDATA WIN32API DdeClientTransaction(LPBYTE arg1, DWORD arg2, HCONV arg3, | 
|---|
| 91 | HSZ arg4, UINT arg5, UINT arg6, DWORD arg7, | 
|---|
| 92 | LPDWORD arg8) | 
|---|
| 93 | { | 
|---|
| 94 | dprintf(("USER32: DdeClientTransaction %x %x %x %x %x %x %x %x", arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)); | 
|---|
| 95 |  | 
|---|
| 96 | return O32_DdeClientTransaction((PVOID)arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); | 
|---|
| 97 | } | 
|---|
| 98 | //****************************************************************************** | 
|---|
| 99 | //****************************************************************************** | 
|---|
| 100 | int WIN32API DdeCmpStringHandles( HSZ arg1, HSZ  arg2) | 
|---|
| 101 | { | 
|---|
| 102 | dprintf(("USER32: DdeCmpStringHandles %x %x", arg1, arg2)); | 
|---|
| 103 |  | 
|---|
| 104 | return O32_DdeCmpStringHandles(arg1, arg2); | 
|---|
| 105 | } | 
|---|
| 106 | //****************************************************************************** | 
|---|
| 107 | //****************************************************************************** | 
|---|
| 108 | HCONV WIN32API DdeConnect(DWORD idInst, HSZ hszService, HSZ hszTopic, | 
|---|
| 109 | LPCONVCONTEXT pCC) | 
|---|
| 110 | { | 
|---|
| 111 | HCONV rc; | 
|---|
| 112 |  | 
|---|
| 113 | rc = O32_DdeConnect(idInst, hszService, hszTopic, pCC); | 
|---|
| 114 | dprintf(("USER32: DdeConnect %x %x %x %x returned %d (%x)", idInst, hszService, hszTopic, pCC, rc, DdeGetLastError(idInst))); | 
|---|
| 115 | return rc; | 
|---|
| 116 | } | 
|---|
| 117 | //****************************************************************************** | 
|---|
| 118 | //****************************************************************************** | 
|---|
| 119 | HCONVLIST WIN32API DdeConnectList(DWORD arg1, HSZ arg2, HSZ arg3, HCONVLIST arg4, LPCONVCONTEXT  arg5) | 
|---|
| 120 | { | 
|---|
| 121 |  | 
|---|
| 122 | dprintf(("USER32: DdeConnectList %x %x %x %x %x", arg1, arg2, arg3, arg4, arg5)); | 
|---|
| 123 |  | 
|---|
| 124 | return O32_DdeConnectList(arg1, arg2, arg3, arg4, arg5); | 
|---|
| 125 | } | 
|---|
| 126 | //****************************************************************************** | 
|---|
| 127 | //****************************************************************************** | 
|---|
| 128 | HDDEDATA WIN32API DdeCreateDataHandle(DWORD arg1, LPBYTE arg2, DWORD arg3, DWORD arg4, | 
|---|
| 129 | HSZ arg5, UINT arg6, UINT  arg7) | 
|---|
| 130 | { | 
|---|
| 131 | dprintf(("USER32: DdeCreateDataHandle %x %x %x %x %x %x %x", arg1, arg2, arg3, arg4, arg5, arg6, arg7)); | 
|---|
| 132 | return O32_DdeCreateDataHandle(arg1, (PVOID)arg2, arg3, arg4, arg5, arg6, arg7); | 
|---|
| 133 | } | 
|---|
| 134 | //****************************************************************************** | 
|---|
| 135 | //****************************************************************************** | 
|---|
| 136 | HSZ WIN32API DdeCreateStringHandleA(DWORD idInst, LPCSTR lpszString, int codepage) | 
|---|
| 137 | { | 
|---|
| 138 | HSZ rc; | 
|---|
| 139 |  | 
|---|
| 140 | rc = O32_DdeCreateStringHandle(idInst, lpszString, codepage); | 
|---|
| 141 | dprintf(("USER32: DdeCreateStringHandleA %x %s %x returned %x", idInst, lpszString, codepage, rc)); | 
|---|
| 142 | return rc; | 
|---|
| 143 | } | 
|---|
| 144 | //****************************************************************************** | 
|---|
| 145 | //****************************************************************************** | 
|---|
| 146 | HSZ WIN32API DdeCreateStringHandleW(DWORD arg1, LPCWSTR arg2, int arg3) | 
|---|
| 147 | { | 
|---|
| 148 | char *astring = UnicodeToAsciiString((LPWSTR)arg2); | 
|---|
| 149 | HSZ   rc; | 
|---|
| 150 |  | 
|---|
| 151 | dprintf(("USER32:  DdeCreateStringHandleW DOESN'T WORK\n")); | 
|---|
| 152 | rc = O32_DdeCreateStringHandle(arg1, astring, arg3); | 
|---|
| 153 | FreeAsciiString(astring); | 
|---|
| 154 | return rc; | 
|---|
| 155 | } | 
|---|
| 156 | //****************************************************************************** | 
|---|
| 157 | //****************************************************************************** | 
|---|
| 158 | BOOL WIN32API DdeDisconnect(HCONV arg1) | 
|---|
| 159 | { | 
|---|
| 160 | dprintf(("USER32: DdeDisconnect %x", arg1)); | 
|---|
| 161 |  | 
|---|
| 162 | return O32_DdeDisconnect(arg1); | 
|---|
| 163 | } | 
|---|
| 164 | //****************************************************************************** | 
|---|
| 165 | //****************************************************************************** | 
|---|
| 166 | BOOL WIN32API DdeDisconnectList( HCONVLIST arg1) | 
|---|
| 167 | { | 
|---|
| 168 | dprintf(("USER32: DdeDisconnectList %x", arg1)); | 
|---|
| 169 |  | 
|---|
| 170 | return O32_DdeDisconnectList(arg1); | 
|---|
| 171 | } | 
|---|
| 172 | //****************************************************************************** | 
|---|
| 173 | //****************************************************************************** | 
|---|
| 174 | BOOL WIN32API DdeEnableCallback(DWORD arg1, HCONV arg2, UINT  arg3) | 
|---|
| 175 | { | 
|---|
| 176 | dprintf(("USER32: DdeEnableCallback %x %x %x", arg1, arg2, arg3)); | 
|---|
| 177 |  | 
|---|
| 178 | return O32_DdeEnableCallback(arg1, arg2, arg3); | 
|---|
| 179 | } | 
|---|
| 180 | //****************************************************************************** | 
|---|
| 181 | //****************************************************************************** | 
|---|
| 182 | BOOL WIN32API DdeFreeDataHandle( HDDEDATA arg1) | 
|---|
| 183 | { | 
|---|
| 184 | dprintf(("USER32: DdeFreeDataHandle %x", arg1)); | 
|---|
| 185 |  | 
|---|
| 186 | return O32_DdeFreeDataHandle(arg1); | 
|---|
| 187 | } | 
|---|
| 188 | //****************************************************************************** | 
|---|
| 189 | //****************************************************************************** | 
|---|
| 190 | BOOL WIN32API DdeFreeStringHandle(DWORD arg1, HSZ  arg2) | 
|---|
| 191 | { | 
|---|
| 192 | dprintf(("USER32: DdeFreeStringHandle %x %x", arg1, arg2)); | 
|---|
| 193 |  | 
|---|
| 194 | return O32_DdeFreeStringHandle(arg1, arg2); | 
|---|
| 195 | } | 
|---|
| 196 | //****************************************************************************** | 
|---|
| 197 | //****************************************************************************** | 
|---|
| 198 | DWORD WIN32API DdeGetData( HDDEDATA arg1, LPBYTE arg2, DWORD arg3, DWORD  arg4) | 
|---|
| 199 | { | 
|---|
| 200 | dprintf(("USER32: DdeGetData %x %x %x %x", arg1, arg2, arg3, arg4)); | 
|---|
| 201 |  | 
|---|
| 202 | return O32_DdeGetData(arg1, (PVOID)arg2, arg3, arg4); | 
|---|
| 203 | } | 
|---|
| 204 | //****************************************************************************** | 
|---|
| 205 | //****************************************************************************** | 
|---|
| 206 | UINT WIN32API DdeGetLastError(DWORD arg1) | 
|---|
| 207 | { | 
|---|
| 208 | dprintf(("USER32: DdeGetLastError %x", arg1)); | 
|---|
| 209 |  | 
|---|
| 210 | return O32_DdeGetLastError(arg1); | 
|---|
| 211 | } | 
|---|
| 212 | #ifdef USING_OPEN32 | 
|---|
| 213 | //****************************************************************************** | 
|---|
| 214 | //****************************************************************************** | 
|---|
| 215 | HDDEDATA EXPENTRY_O32 DdeCallback(UINT uType, UINT uFmt, HCONV hconv, HSZ hsz1, | 
|---|
| 216 | HSZ hsz2, HDDEDATA hdata, DWORD dwData1, | 
|---|
| 217 | DWORD dwData2) | 
|---|
| 218 | { | 
|---|
| 219 | dprintf(("DdeCallback %x %x %x %x %x %x %x %x", uType, uFmt, hconv, hsz1, hsz2, | 
|---|
| 220 | hdata, dwData1, dwData2)); | 
|---|
| 221 | return 0; | 
|---|
| 222 | } | 
|---|
| 223 | #endif | 
|---|
| 224 | //****************************************************************************** | 
|---|
| 225 | //****************************************************************************** | 
|---|
| 226 | UINT WIN32API DdeInitializeA(PDWORD lpidInst, PFNCALLBACK pfnCallback, | 
|---|
| 227 | DWORD afCmd, DWORD ulRes) | 
|---|
| 228 | { | 
|---|
| 229 | UINT ret; | 
|---|
| 230 |  | 
|---|
| 231 | #ifdef USING_OPEN32 | 
|---|
| 232 | ret = O32_DdeInitialize(lpidInst, (PFNCALLBACK_O32)DdeCallback, afCmd, ulRes); | 
|---|
| 233 | #else | 
|---|
| 234 | ret = O32_DdeInitialize(lpidInst, (PFNCALLBACK_O32)pfnCallback, afCmd, ulRes); | 
|---|
| 235 | #endif | 
|---|
| 236 | dprintf(("USER32: DdeInitialize %x %x %x %x returned %x", lpidInst, pfnCallback, afCmd, ulRes, ret)); | 
|---|
| 237 | return ret; | 
|---|
| 238 | } | 
|---|
| 239 | //****************************************************************************** | 
|---|
| 240 | //****************************************************************************** | 
|---|
| 241 | UINT WIN32API DdeInitializeW(PDWORD lpidInst, PFNCALLBACK pfnCallback, | 
|---|
| 242 | DWORD afCmd, DWORD ulRes) | 
|---|
| 243 | { | 
|---|
| 244 | UINT ret; | 
|---|
| 245 |  | 
|---|
| 246 | // NOTE: This will not work as is (needs UNICODE support) | 
|---|
| 247 | #ifdef USING_OPEN32 | 
|---|
| 248 | ret = O32_DdeInitialize(lpidInst, (PFNCALLBACK_O32)DdeCallback, afCmd, ulRes); | 
|---|
| 249 | #else | 
|---|
| 250 | ret = O32_DdeInitialize(lpidInst, (PFNCALLBACK_O32)pfnCallback, afCmd, ulRes); | 
|---|
| 251 | #endif | 
|---|
| 252 | dprintf(("USER32: DdeInitializeW %x %x %x %x returned %x", lpidInst, pfnCallback, afCmd, ulRes, ret)); | 
|---|
| 253 | return ret; | 
|---|
| 254 | //    return O32_DdeInitialize(arg1, arg2, arg3, arg4); | 
|---|
| 255 | } | 
|---|
| 256 | //****************************************************************************** | 
|---|
| 257 | //****************************************************************************** | 
|---|
| 258 | BOOL WIN32API DdeKeepStringHandle(DWORD arg1, HSZ arg2) | 
|---|
| 259 | { | 
|---|
| 260 | dprintf(("USER32: DdeKeepStringHandle %x %x", arg1, arg2)); | 
|---|
| 261 |  | 
|---|
| 262 | return O32_DdeKeepStringHandle(arg1, arg2); | 
|---|
| 263 | } | 
|---|
| 264 | //****************************************************************************** | 
|---|
| 265 | //****************************************************************************** | 
|---|
| 266 | HDDEDATA WIN32API DdeNameService( DWORD arg1, HSZ  arg2, HSZ  arg3, UINT  arg4) | 
|---|
| 267 | { | 
|---|
| 268 | dprintf(("USER32: DdeNameService %x %x %x %x", arg1, arg2, arg3, arg4)); | 
|---|
| 269 |  | 
|---|
| 270 | return O32_DdeNameService(arg1, arg2, arg3, arg4); | 
|---|
| 271 | } | 
|---|
| 272 | //****************************************************************************** | 
|---|
| 273 | //****************************************************************************** | 
|---|
| 274 | BOOL WIN32API DdePostAdvise(DWORD arg1, HSZ arg2, HSZ  arg3) | 
|---|
| 275 | { | 
|---|
| 276 |  | 
|---|
| 277 | dprintf(("USER32:  DdePostAdvise\n")); | 
|---|
| 278 |  | 
|---|
| 279 | return O32_DdePostAdvise(arg1, arg2, arg3); | 
|---|
| 280 | } | 
|---|
| 281 | //****************************************************************************** | 
|---|
| 282 | //****************************************************************************** | 
|---|
| 283 | UINT WIN32API DdeQueryConvInfo( HCONV arg1, DWORD arg2, LPCONVINFO  arg3) | 
|---|
| 284 | { | 
|---|
| 285 |  | 
|---|
| 286 | dprintf(("USER32:  DdeQueryConvInfo\n")); | 
|---|
| 287 |  | 
|---|
| 288 | return O32_DdeQueryConvInfo(arg1, arg2, arg3); | 
|---|
| 289 | } | 
|---|
| 290 | //****************************************************************************** | 
|---|
| 291 | //****************************************************************************** | 
|---|
| 292 | HCONV WIN32API DdeQueryNextServer( HCONVLIST arg1, HCONV  arg2) | 
|---|
| 293 | { | 
|---|
| 294 |  | 
|---|
| 295 | dprintf(("USER32:  DdeQueryNextServer\n")); | 
|---|
| 296 |  | 
|---|
| 297 | return O32_DdeQueryNextServer(arg1, arg2); | 
|---|
| 298 | } | 
|---|
| 299 | //****************************************************************************** | 
|---|
| 300 | //****************************************************************************** | 
|---|
| 301 | DWORD WIN32API DdeQueryStringA(DWORD arg1, HSZ arg2, LPSTR arg3, DWORD arg4, int  arg5) | 
|---|
| 302 | { | 
|---|
| 303 |  | 
|---|
| 304 | dprintf(("USER32:  DdeQueryStringA\n")); | 
|---|
| 305 |  | 
|---|
| 306 | return O32_DdeQueryString(arg1, arg2, arg3, arg4, arg5); | 
|---|
| 307 | } | 
|---|
| 308 | //****************************************************************************** | 
|---|
| 309 | //****************************************************************************** | 
|---|
| 310 | DWORD WIN32API DdeQueryStringW(DWORD arg1, HSZ arg2, LPWSTR arg3, DWORD arg4, int  arg5) | 
|---|
| 311 | { | 
|---|
| 312 | char *astring = UnicodeToAsciiString(arg3); | 
|---|
| 313 | DWORD rc; | 
|---|
| 314 |  | 
|---|
| 315 | dprintf(("USER32:  DdeQueryStringW\n")); | 
|---|
| 316 | rc = O32_DdeQueryString(arg1, arg2, astring, arg4, arg5); | 
|---|
| 317 | FreeAsciiString(astring); | 
|---|
| 318 | return rc; | 
|---|
| 319 | } | 
|---|
| 320 | //****************************************************************************** | 
|---|
| 321 | //****************************************************************************** | 
|---|
| 322 | HCONV WIN32API DdeReconnect( HCONV arg1) | 
|---|
| 323 | { | 
|---|
| 324 |  | 
|---|
| 325 | dprintf(("USER32:  DdeReconnect\n")); | 
|---|
| 326 |  | 
|---|
| 327 | return O32_DdeReconnect(arg1); | 
|---|
| 328 | } | 
|---|
| 329 | //****************************************************************************** | 
|---|
| 330 | //****************************************************************************** | 
|---|
| 331 | BOOL WIN32API DdeSetUserHandle( HCONV arg1, DWORD arg2, DWORD  arg3) | 
|---|
| 332 | { | 
|---|
| 333 |  | 
|---|
| 334 | dprintf(("USER32:  DdeSetUserHandle\n")); | 
|---|
| 335 |  | 
|---|
| 336 | return O32_DdeSetUserHandle(arg1, arg2, arg3); | 
|---|
| 337 | } | 
|---|
| 338 | //****************************************************************************** | 
|---|
| 339 | //****************************************************************************** | 
|---|
| 340 | BOOL WIN32API DdeUnaccessData( HDDEDATA arg1) | 
|---|
| 341 | { | 
|---|
| 342 |  | 
|---|
| 343 | dprintf(("USER32:  DdeUnaccessData\n")); | 
|---|
| 344 |  | 
|---|
| 345 | return O32_DdeUnaccessData(arg1); | 
|---|
| 346 | } | 
|---|
| 347 | //****************************************************************************** | 
|---|
| 348 | //****************************************************************************** | 
|---|
| 349 | BOOL WIN32API DdeUninitialize(DWORD arg1) | 
|---|
| 350 | { | 
|---|
| 351 |  | 
|---|
| 352 | dprintf(("USER32:  DdeUninitialize\n")); | 
|---|
| 353 |  | 
|---|
| 354 | return O32_DdeUninitialize(arg1); | 
|---|
| 355 | } | 
|---|
| 356 | //****************************************************************************** | 
|---|
| 357 | //****************************************************************************** | 
|---|
| 358 | BOOL WIN32API FreeDDElParam( UINT arg1, LONG  arg2) | 
|---|
| 359 | { | 
|---|
| 360 | dprintf(("USER32:  FreeDDElParam\n")); | 
|---|
| 361 |  | 
|---|
| 362 | return O32_FreeDDElParam(arg1, arg2); | 
|---|
| 363 | } | 
|---|
| 364 | //****************************************************************************** | 
|---|
| 365 | //****************************************************************************** | 
|---|
| 366 | LONG WIN32API PackDDElParam(UINT arg1, UINT arg2, UINT  arg3) | 
|---|
| 367 | { | 
|---|
| 368 | dprintf(("USER32:  PackDDElParam\n")); | 
|---|
| 369 |  | 
|---|
| 370 | return O32_PackDDElParam(arg1, arg2, arg3); | 
|---|
| 371 | } | 
|---|
| 372 | //****************************************************************************** | 
|---|
| 373 | //****************************************************************************** | 
|---|
| 374 | LPARAM WIN32API ReuseDDElParam(LPARAM arg1, UINT arg2, UINT arg3, UINT arg4, UINT arg5) | 
|---|
| 375 | { | 
|---|
| 376 | dprintf(("USER32:  ReuseDDElParam\n")); | 
|---|
| 377 |  | 
|---|
| 378 | return O32_ReuseDDElParam(arg1, arg2, arg3, arg4, arg5); | 
|---|
| 379 | } | 
|---|
| 380 | //****************************************************************************** | 
|---|
| 381 | //****************************************************************************** | 
|---|
| 382 | BOOL WIN32API UnpackDDElParam(UINT arg1, LPARAM arg2, PUINT arg3, PUINT arg4) | 
|---|
| 383 | { | 
|---|
| 384 | dprintf(("USER32:  UnpackDDElParam\n")); | 
|---|
| 385 |  | 
|---|
| 386 | return O32_UnpackDDElParam(arg1, arg2, arg3, arg4); | 
|---|
| 387 | } | 
|---|
| 388 | //****************************************************************************** | 
|---|
| 389 | //****************************************************************************** | 
|---|
| 390 | /***************************************************************************** | 
|---|
| 391 | * Name      : BOOL WIN32API DdeImpersonateClient | 
|---|
| 392 | * Purpose   : The DdeImpersonateClient function impersonates a dynamic data | 
|---|
| 393 | *             exchange (DDE) client application in a DDE client conversation. | 
|---|
| 394 | * Parameters: HCONV hConv handle of the DDE conversation | 
|---|
| 395 | * Variables : | 
|---|
| 396 | * Result    : If the function succeeds, the return value is TRUE. | 
|---|
| 397 | *             If the function fails, the return value is FALSE. To get | 
|---|
| 398 | *             extended error information, call GetLastError. | 
|---|
| 399 | * Remark    : | 
|---|
| 400 | * Status    : UNTESTED STUB | 
|---|
| 401 | * | 
|---|
| 402 | * Author    : Patrick Haller [Thu, 1998/02/26 11:55] | 
|---|
| 403 | *****************************************************************************/ | 
|---|
| 404 |  | 
|---|
| 405 | BOOL WIN32API DdeImpersonateClient(HCONV hConv) | 
|---|
| 406 | { | 
|---|
| 407 | dprintf(("USER32:DdeImpersonateClient (%08x) not implemented.\n", | 
|---|
| 408 | hConv)); | 
|---|
| 409 |  | 
|---|
| 410 | return (TRUE); | 
|---|
| 411 | } | 
|---|
| 412 |  | 
|---|
| 413 |  | 
|---|
| 414 | /***************************************************************************** | 
|---|
| 415 | * Name      : BOOL WIN32API DdeSetQualityOfService | 
|---|
| 416 | * Purpose   : The DdeSetQualityOfService function specifies the quality of | 
|---|
| 417 | *             service a raw DDE application desires for future DDE conversations | 
|---|
| 418 | *             it initiates. | 
|---|
| 419 | * Parameters: | 
|---|
| 420 | * Variables : | 
|---|
| 421 | * Result    : If the function succeeds, the return value is TRUE. | 
|---|
| 422 | *             If the function fails, the return value is FALSE. To get | 
|---|
| 423 | *             extended error information, call GetLastError. | 
|---|
| 424 | * Remark    : | 
|---|
| 425 | * Status    : UNTESTED STUB | 
|---|
| 426 | * | 
|---|
| 427 | * Author    : Patrick Haller [Thu, 1998/02/26 11:55] | 
|---|
| 428 | *****************************************************************************/ | 
|---|
| 429 |  | 
|---|
| 430 | BOOL WIN32API DdeSetQualityOfService (HWND hwndClient, | 
|---|
| 431 | CONST SECURITY_QUALITY_OF_SERVICE *pqosNew, | 
|---|
| 432 | PSECURITY_QUALITY_OF_SERVICE pqosPrev) | 
|---|
| 433 | { | 
|---|
| 434 | dprintf(("USER32:DdeSetQualityOfService(%08xh,%08xh,%08x) not implemented.\n", | 
|---|
| 435 | hwndClient, | 
|---|
| 436 | pqosNew, | 
|---|
| 437 | pqosPrev)); | 
|---|
| 438 |  | 
|---|
| 439 | return (FALSE); | 
|---|
| 440 | } | 
|---|
| 441 | /***************************************************************************** | 
|---|
| 442 | * Name      : BOOL WIN32API ImpersonateDdeClientWindow | 
|---|
| 443 | * Purpose   : The ImpersonateDdeClientWindow function enables a DDE server | 
|---|
| 444 | *             application to impersonate a DDE client application's security | 
|---|
| 445 | *             context in order to protect secure server data from unauthorized | 
|---|
| 446 | *             DDE clients. | 
|---|
| 447 | * Parameters: HWND hWndClient handle of DDE client window | 
|---|
| 448 | *             HWND hWndServer handle of DDE server window | 
|---|
| 449 | * Variables : | 
|---|
| 450 | * Result    : If the function succeeds, the return value is TRUE. | 
|---|
| 451 | *             If the function fails, the return value is FALSE. To get extended | 
|---|
| 452 | *               error information, call GetLastError. | 
|---|
| 453 | * Remark    : | 
|---|
| 454 | * Status    : UNTESTED STUB | 
|---|
| 455 | * | 
|---|
| 456 | * Author    : Patrick Haller [Thu, 1998/02/26 11:55] | 
|---|
| 457 | *****************************************************************************/ | 
|---|
| 458 |  | 
|---|
| 459 | BOOL WIN32API ImpersonateDdeClientWindow(HWND hWndClient, | 
|---|
| 460 | HWND hWndServer) | 
|---|
| 461 | { | 
|---|
| 462 | dprintf(("USER32:ImpersonateDdeClientWindow (%08xh,%08x) not implemented.\n", | 
|---|
| 463 | hWndClient, | 
|---|
| 464 | hWndServer)); | 
|---|
| 465 |  | 
|---|
| 466 | return (FALSE); | 
|---|
| 467 | } | 
|---|