| [10432] | 1 | /* $Id: stubs.cpp,v 1.23 2004-01-30 22:11:42 bird Exp $ */
|
|---|
| 2 | /*
|
|---|
| [291] | 3 | * Win32 COM/OLE stubs for OS/2
|
|---|
| [10432] | 4 | *
|
|---|
| [291] | 5 | * 1/7/99
|
|---|
| [10432] | 6 | *
|
|---|
| [291] | 7 | * Copyright 1999 David J. Raison
|
|---|
| [204] | 8 | * Copyright 1998 Sander van Leeuwen
|
|---|
| [10432] | 9 | *
|
|---|
| 10 | *
|
|---|
| [633] | 11 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| [10432] | 12 | *
|
|---|
| [204] | 13 | */
|
|---|
| 14 |
|
|---|
| [21494] | 15 | #include "ole.h"
|
|---|
| [204] | 16 | #include "ole32.h"
|
|---|
| 17 |
|
|---|
| [3170] | 18 | //*******************************************************************************
|
|---|
| 19 | //*******************************************************************************
|
|---|
| 20 | HRESULT WIN32API DllDebugObjectRPCHook()
|
|---|
| 21 | {
|
|---|
| 22 | dprintf(("OLE32: DllDebugObjectRPCHook, UNKNOWN API - stub"));
|
|---|
| 23 | return 0;
|
|---|
| 24 | }
|
|---|
| 25 | //*******************************************************************************
|
|---|
| 26 | //*******************************************************************************
|
|---|
| 27 | HRESULT WIN32API DllGetClassObjectWOW()
|
|---|
| 28 | {
|
|---|
| 29 | dprintf(("OLE32: DllGetClassObjectWOW, UNKNOWN API - stub"));
|
|---|
| 30 | return 0;
|
|---|
| 31 | }
|
|---|
| [204] | 32 | //*****************************************************************************
|
|---|
| 33 | //*****************************************************************************
|
|---|
| 34 | HRESULT WIN32API CoGetCallerTID()
|
|---|
| 35 | {
|
|---|
| [291] | 36 | dprintf(("OLE32: CoGetCallerTID, UNKNOWN API - stub"));
|
|---|
| 37 | return 0;
|
|---|
| [204] | 38 | }
|
|---|
| 39 | //*******************************************************************************
|
|---|
| 40 | //*******************************************************************************
|
|---|
| 41 | HRESULT WIN32API CoGetCurrentLogicalThreadId()
|
|---|
| 42 | {
|
|---|
| [291] | 43 | dprintf(("OLE32: CoGetCurrentLogicalThreadId, UNKNOWN API - stub"));
|
|---|
| 44 | return 0;
|
|---|
| [204] | 45 | }
|
|---|
| 46 | //*******************************************************************************
|
|---|
| 47 | //*******************************************************************************
|
|---|
| 48 | HRESULT WIN32API CoGetState()
|
|---|
| 49 | {
|
|---|
| [291] | 50 | dprintf(("OLE32: CoGetState, UNKNOWN API - stub"));
|
|---|
| 51 | return 0;
|
|---|
| [204] | 52 | }
|
|---|
| 53 | //*******************************************************************************
|
|---|
| 54 | //*******************************************************************************
|
|---|
| 55 | HRESULT WIN32API CoGetTreatAsClass(REFCLSID clsidOld, LPCLSID pclsidNew)
|
|---|
| 56 | {
|
|---|
| [291] | 57 | dprintf(("OLE32: CoGetTreatAsClass - stub"));
|
|---|
| 58 | return S_FALSE;
|
|---|
| [204] | 59 | }
|
|---|
| 60 | //*******************************************************************************
|
|---|
| 61 | //*******************************************************************************
|
|---|
| 62 | BOOL WIN32API CoIsHandlerConnected(LPUNKNOWN pUnk)
|
|---|
| 63 | {
|
|---|
| [291] | 64 | dprintf(("OLE32: CoIsHandlerConnected - stub"));
|
|---|
| 65 | return FALSE;
|
|---|
| [204] | 66 | }
|
|---|
| 67 | //*******************************************************************************
|
|---|
| 68 | //*******************************************************************************
|
|---|
| 69 | HRESULT WIN32API CoMarshalHresult(IStream *pStm, HRESULT hresult)
|
|---|
| 70 | {
|
|---|
| [291] | 71 | dprintf(("OLE32: CoMarshalHresult - stub"));
|
|---|
| 72 | return E_OUTOFMEMORY;
|
|---|
| [204] | 73 | }
|
|---|
| 74 | //*******************************************************************************
|
|---|
| 75 | //*******************************************************************************
|
|---|
| 76 | HRESULT WIN32API CoQueryReleaseObject()
|
|---|
| 77 | {
|
|---|
| [291] | 78 | dprintf(("OLE32: CoQueryReleaseObject, UNKNOWN API - stub"));
|
|---|
| 79 | return 0;
|
|---|
| [204] | 80 | }
|
|---|
| 81 | //*******************************************************************************
|
|---|
| 82 | //*******************************************************************************
|
|---|
| 83 | HRESULT WIN32API CoReleaseMarshalData(IStream *pStm)
|
|---|
| 84 | {
|
|---|
| [291] | 85 | dprintf(("OLE32: CoReleaseMarshalData - stub"));
|
|---|
| 86 | return E_OUTOFMEMORY;
|
|---|
| [204] | 87 | }
|
|---|
| 88 | //*******************************************************************************
|
|---|
| 89 | //*******************************************************************************
|
|---|
| 90 | void WIN32API CoUnloadingWOW()
|
|---|
| 91 | {
|
|---|
| [291] | 92 | dprintf(("OLE32: CoUnloadingWOW, UNKNOWN API - stub"));
|
|---|
| 93 | return ;
|
|---|
| [204] | 94 | }
|
|---|
| 95 | //*******************************************************************************
|
|---|
| 96 | //*******************************************************************************
|
|---|
| 97 | HRESULT WIN32API CoUnmarshalHresult(LPSTREAM pStm, HRESULT *phresult)
|
|---|
| 98 | {
|
|---|
| [291] | 99 | dprintf(("OLE32: CoUnmarshalHresult - stub"));
|
|---|
| 100 | return S_OK;
|
|---|
| [204] | 101 | }
|
|---|
| 102 |
|
|---|
| 103 | //******************************************************************************
|
|---|
| 104 | //******************************************************************************
|
|---|
| 105 | HRESULT WIN32API BindMoniker(LPMONIKER pmk, DWORD grfOpt, REFIID iidResult,
|
|---|
| 106 | LPVOID *ppvResult)
|
|---|
| 107 | {
|
|---|
| [291] | 108 | dprintf(("OLE32: BindMoniker- stub"));
|
|---|
| 109 | return MK_E_NOOBJECT;
|
|---|
| [204] | 110 | }
|
|---|
| 111 | //*******************************************************************************
|
|---|
| 112 | //*******************************************************************************
|
|---|
| 113 | HRESULT WIN32API CreatePointerMoniker(LPUNKNOWN punk, LPMONIKER *ppmk)
|
|---|
| 114 | {
|
|---|
| [291] | 115 | dprintf(("OLE32: CreatePointerMoniker - stub"));
|
|---|
| 116 | return E_OUTOFMEMORY;
|
|---|
| [204] | 117 | }
|
|---|
| 118 | //*******************************************************************************
|
|---|
| 119 | //*******************************************************************************
|
|---|
| 120 | HRESULT WIN32API EnableHookObject()
|
|---|
| 121 | {
|
|---|
| [291] | 122 | dprintf(("OLE32: EnableHookObject, UNKNOWN API - stub"));
|
|---|
| 123 | return 0;
|
|---|
| [204] | 124 | }
|
|---|
| 125 | //*******************************************************************************
|
|---|
| 126 | //*******************************************************************************
|
|---|
| 127 | HRESULT WIN32API GetDocumentBitStg()
|
|---|
| 128 | {
|
|---|
| [291] | 129 | dprintf(("OLE32: GetDocumentBitStg, UNKNOWN API - stub"));
|
|---|
| 130 | return 0;
|
|---|
| [204] | 131 | }
|
|---|
| 132 | //*******************************************************************************
|
|---|
| 133 | //*******************************************************************************
|
|---|
| 134 | HRESULT WIN32API GetHookInterface()
|
|---|
| 135 | {
|
|---|
| [291] | 136 | dprintf(("OLE32: GetHookInterface, UNKNOWN API - stub"));
|
|---|
| 137 | return 0;
|
|---|
| [204] | 138 | }
|
|---|
| 139 | //*******************************************************************************
|
|---|
| 140 | //*******************************************************************************
|
|---|
| 141 | //*******************************************************************************
|
|---|
| 142 | HRESULT WIN32API IsValidIid(DWORD Iid)
|
|---|
| 143 | {
|
|---|
| [291] | 144 | dprintf(("OLE32: IsValidIid, obsolete - stub"));
|
|---|
| 145 | return E_INVALIDARG;
|
|---|
| [204] | 146 | }
|
|---|
| 147 | //*******************************************************************************
|
|---|
| 148 | //*******************************************************************************
|
|---|
| 149 | HRESULT WIN32API IsValidPtrIn(DWORD ptrIn)
|
|---|
| 150 | {
|
|---|
| [291] | 151 | dprintf(("OLE32: IsValidPtrIn, obsolete - stub"));
|
|---|
| 152 | return E_INVALIDARG;
|
|---|
| [204] | 153 | }
|
|---|
| 154 | //*******************************************************************************
|
|---|
| 155 | //*******************************************************************************
|
|---|
| 156 | HRESULT WIN32API IsValidPtrOut(DWORD ptrOut)
|
|---|
| 157 | {
|
|---|
| [291] | 158 | dprintf(("OLE32: IsValidPtrOut, obsolete - stub"));
|
|---|
| 159 | return E_INVALIDARG;
|
|---|
| [204] | 160 | }
|
|---|
| 161 | //*******************************************************************************
|
|---|
| 162 | //*******************************************************************************
|
|---|
| 163 | HRESULT WIN32API MonikerRelativePathTo(LPMONIKER pmkSrc, LPMONIKER pmkDest,
|
|---|
| 164 | LPMONIKER *ppmkRelPath, BOOL dwReserved )
|
|---|
| 165 | {
|
|---|
| [291] | 166 | dprintf(("OLE32: MonikerRelativePathTo - stub"));
|
|---|
| 167 | return E_OUTOFMEMORY;
|
|---|
| [204] | 168 | }
|
|---|
| 169 | //*******************************************************************************
|
|---|
| 170 | //*******************************************************************************
|
|---|
| 171 | HRESULT WIN32API OleConvertIStorageToOLESTREAMEx(LPSTORAGE pStg,
|
|---|
| 172 | CLIPFORMAT ctFormat,
|
|---|
| 173 | LONG lWidth,
|
|---|
| 174 | LONG lHeight,
|
|---|
| 175 | DWORD dwSize,
|
|---|
| 176 | LPSTGMEDIUM pmedium,
|
|---|
| 177 | LPOLESTREAM lpolestream)
|
|---|
| 178 | {
|
|---|
| [291] | 179 | dprintf(("OLE32: OleConvertIStorageToOLESTREAMEx - stub"));
|
|---|
| 180 | return(E_INVALIDARG);
|
|---|
| [204] | 181 | }
|
|---|
| 182 | //*******************************************************************************
|
|---|
| 183 | //*******************************************************************************
|
|---|
| 184 | HRESULT WIN32API OleConvertOLESTREAMToIStorageEx(LPOLESTREAM lpolestream,
|
|---|
| 185 | LPSTORAGE pstg,
|
|---|
| 186 | CLIPFORMAT * ctFormat,
|
|---|
| 187 | LONG * plWidth,
|
|---|
| 188 | LONG * plHeight,
|
|---|
| 189 | DWORD * pdwSize,
|
|---|
| 190 | LPSTGMEDIUM pmedium)
|
|---|
| 191 | {
|
|---|
| [291] | 192 | dprintf(("OLE32: OleConvertOLESTREAMToIStorageEx - stub"));
|
|---|
| 193 | return(E_OUTOFMEMORY);
|
|---|
| [204] | 194 | }
|
|---|
| 195 | //*******************************************************************************
|
|---|
| 196 | //*******************************************************************************
|
|---|
| 197 | HRESULT WIN32API OleCreateEmbeddingHelper(REFCLSID clsid, LPUNKNOWN pUnkOuter,
|
|---|
| 198 | DWORD flags, LPCLASSFACTORY pCF,
|
|---|
| 199 | REFIID riid, LPVOID *ppvObj)
|
|---|
| 200 | {
|
|---|
| [291] | 201 | dprintf(("OLE32: OleCreateEmbeddingHelper - stub"));
|
|---|
| 202 | return(E_OUTOFMEMORY);
|
|---|
| [204] | 203 | }
|
|---|
| 204 | //*******************************************************************************
|
|---|
| 205 | //*******************************************************************************
|
|---|
| 206 | HRESULT WIN32API OleDoAutoConvert(IStorage *pStg, LPCLSID pClsidNew)
|
|---|
| 207 | {
|
|---|
| [291] | 208 | dprintf(("OLE32: OleDoAutoConvert - stub"));
|
|---|
| 209 | return(E_OUTOFMEMORY);
|
|---|
| [204] | 210 | }
|
|---|
| 211 | //*******************************************************************************
|
|---|
| 212 | //*******************************************************************************
|
|---|
| 213 | HGLOBAL WIN32API OleGetIconOfFile(LPOLESTR lpszPath, BOOL fUseTypeAsLabel)
|
|---|
| 214 | {
|
|---|
| [291] | 215 | dprintf(("OLE32: OleGetIconOfFile - stub"));
|
|---|
| 216 | return(NULL);
|
|---|
| [204] | 217 | }
|
|---|
| 218 | //*******************************************************************************
|
|---|
| 219 | //*******************************************************************************
|
|---|
| 220 | HRESULT WIN32API OleInitializeWOW()
|
|---|
| 221 | {
|
|---|
| [291] | 222 | dprintf(("OLE32: OleInitializeWOW, UNKNOWN API - stub"));
|
|---|
| 223 | return(E_OUTOFMEMORY);
|
|---|
| [204] | 224 | }
|
|---|
| 225 | //*******************************************************************************
|
|---|
| 226 | //*******************************************************************************
|
|---|
| 227 | HGLOBAL WIN32API OleMetafilePictFromIconAndLabel(HICON hIcon, LPOLESTR lpszLabel,
|
|---|
| 228 | LPOLESTR lpszSourceFile,
|
|---|
| 229 | UINT iIconIndex)
|
|---|
| 230 | {
|
|---|
| [291] | 231 | dprintf(("OLE32: OleMetafilePictFromIconAndLabel - stub"));
|
|---|
| 232 | return(NULL);
|
|---|
| [204] | 233 | }
|
|---|
| 234 | //*******************************************************************************
|
|---|
| 235 | //*******************************************************************************
|
|---|
| 236 | HRESULT WIN32API OleNoteObjectVisible(LPUNKNOWN pUnknown, BOOL fVisible)
|
|---|
| 237 | {
|
|---|
| [291] | 238 | dprintf(("OLE32: OleNoteObjectVisible - stub"));
|
|---|
| 239 | return(E_OUTOFMEMORY);
|
|---|
| [204] | 240 | }
|
|---|
| 241 | //*******************************************************************************
|
|---|
| 242 | //*******************************************************************************
|
|---|
| 243 | HRESULT WIN32API OpenOrCreateStream()
|
|---|
| 244 | {
|
|---|
| [291] | 245 | dprintf(("OLE32: OpenOrCreateStream, UNKNOWN API - stub"));
|
|---|
| 246 | return(E_OUTOFMEMORY);
|
|---|
| [204] | 247 | }
|
|---|
| 248 | //*******************************************************************************
|
|---|
| 249 | //*******************************************************************************
|
|---|
| 250 | HRESULT WIN32API ReadOleStg()
|
|---|
| 251 | {
|
|---|
| [291] | 252 | dprintf(("OLE32: ReadOleStg, UNKNOWN API - stub"));
|
|---|
| 253 | return(E_OUTOFMEMORY);
|
|---|
| [204] | 254 | }
|
|---|
| 255 | //*******************************************************************************
|
|---|
| 256 | //*******************************************************************************
|
|---|
| 257 | HRESULT WIN32API ReadStringStream()
|
|---|
| 258 | {
|
|---|
| [291] | 259 | dprintf(("OLE32: ReadStringStream, UNKNOWN API - stub"));
|
|---|
| 260 | return(E_OUTOFMEMORY);
|
|---|
| [204] | 261 | }
|
|---|
| 262 | //*******************************************************************************
|
|---|
| 263 | //*******************************************************************************
|
|---|
| 264 | HRESULT WIN32API SetDocumentBitStg()
|
|---|
| 265 | {
|
|---|
| [291] | 266 | dprintf(("OLE32: SetDocumentBitStg, UNKNOWN API - stub"));
|
|---|
| 267 | return(E_OUTOFMEMORY);
|
|---|
| [204] | 268 | }
|
|---|
| 269 | //*******************************************************************************
|
|---|
| 270 | //*******************************************************************************
|
|---|
| 271 | HRESULT WIN32API UtConvertDvtd16toDvtd32()
|
|---|
| 272 | {
|
|---|
| [291] | 273 | dprintf(("OLE32: UtConvertDvtd16toDvtd32, UNKNOWN API - stub"));
|
|---|
| 274 | return(E_OUTOFMEMORY);
|
|---|
| [204] | 275 | }
|
|---|
| 276 | //*******************************************************************************
|
|---|
| 277 | //*******************************************************************************
|
|---|
| 278 | HRESULT WIN32API UtConvertDvtd32toDvtd16()
|
|---|
| 279 | {
|
|---|
| [291] | 280 | dprintf(("OLE32: UtConvertDvtd32toDvtd16, UNKNOWN API - stub"));
|
|---|
| 281 | return(E_OUTOFMEMORY);
|
|---|
| [204] | 282 | }
|
|---|
| 283 | //*******************************************************************************
|
|---|
| 284 | //*******************************************************************************
|
|---|
| 285 | HRESULT WIN32API UtGetDvtd16Info()
|
|---|
| 286 | {
|
|---|
| [291] | 287 | dprintf(("OLE32: UtGetDvtd16Info, UNKNOWN API - stub"));
|
|---|
| 288 | return(E_OUTOFMEMORY);
|
|---|
| [204] | 289 | }
|
|---|
| 290 | //*******************************************************************************
|
|---|
| 291 | //*******************************************************************************
|
|---|
| 292 | HRESULT WIN32API UtGetDvtd32Info()
|
|---|
| 293 | {
|
|---|
| [291] | 294 | dprintf(("OLE32: UtGetDvtd32Info, UNKNOWN API - stub"));
|
|---|
| 295 | return(E_OUTOFMEMORY);
|
|---|
| [204] | 296 | }
|
|---|
| [3170] | 297 |
|
|---|
| [204] | 298 | //*******************************************************************************
|
|---|
| 299 | //*******************************************************************************
|
|---|
| 300 | HRESULT WIN32API WriteOleStg()
|
|---|
| 301 | {
|
|---|
| [291] | 302 | dprintf(("OLE32: WriteOleStg, UNKNOWN API - stub"));
|
|---|
| 303 | return(E_OUTOFMEMORY);
|
|---|
| [204] | 304 | }
|
|---|
| 305 | //*******************************************************************************
|
|---|
| 306 | //*******************************************************************************
|
|---|
| 307 | HRESULT WIN32API WriteStringStream()
|
|---|
| 308 | {
|
|---|
| [291] | 309 | dprintf(("OLE32: WriteStringStream, UNKNOWN API - stub"));
|
|---|
| 310 | return(E_OUTOFMEMORY);
|
|---|
| [204] | 311 | }
|
|---|
| 312 | //*******************************************************************************
|
|---|
| 313 | //*******************************************************************************
|
|---|
| 314 |
|
|---|
| [206] | 315 | HRESULT WIN32API CoImpersonateClient() // DCOM - obj_clientserver.h
|
|---|
| [204] | 316 | {
|
|---|
| [291] | 317 | dprintf(("OLE32: CoImpersonateClient - Stub"));
|
|---|
| [204] | 318 | return(S_OK);
|
|---|
| 319 | }
|
|---|
| 320 |
|
|---|
| 321 | //*******************************************************************************
|
|---|
| 322 | //*******************************************************************************
|
|---|
| 323 | HRESULT WIN32API CoRegisterSurrogate(LPSURROGATE pSurrogate) // NT4 SP2, Win95b+
|
|---|
| 324 | {
|
|---|
| [291] | 325 | dprintf(("OLE32: CoRegisterSurrogate - Stub"));
|
|---|
| [204] | 326 | return(S_OK);
|
|---|
| 327 | }
|
|---|
| [4383] | 328 | //*******************************************************************************
|
|---|
| 329 | //*******************************************************************************
|
|---|
| 330 | HRESULT WIN32API CoGetInstanceFromFile(
|
|---|
| 331 | COSERVERINFO * pServerInfo,
|
|---|
| 332 | CLSID * pClsid,
|
|---|
| 333 | IUnknown * punkOuter, // only relevant locally
|
|---|
| 334 | DWORD dwClsCtx,
|
|---|
| 335 | DWORD grfMode,
|
|---|
| 336 | OLECHAR * pwszName,
|
|---|
| 337 | DWORD dwCount,
|
|---|
| 338 | MULTI_QI * pResults )
|
|---|
| 339 | {
|
|---|
| 340 | dprintf(("ERROR: OLE32: CoGetInstanceFromFile, UNKNOWN API - stub"));
|
|---|
| 341 | return(E_OUTOFMEMORY);
|
|---|
| 342 | }
|
|---|
| 343 | //*******************************************************************************
|
|---|
| 344 | //*******************************************************************************
|
|---|
| 345 | HRESULT WIN32API CoGetInstanceFromIStorage(
|
|---|
| 346 | COSERVERINFO * pServerInfo,
|
|---|
| 347 | CLSID * pClsid,
|
|---|
| 348 | IUnknown * punkOuter, // only relevant locally
|
|---|
| 349 | DWORD dwClsCtx,
|
|---|
| 350 | struct IStorage * pstg,
|
|---|
| 351 | DWORD dwCount,
|
|---|
| 352 | MULTI_QI * pResults )
|
|---|
| 353 | {
|
|---|
| 354 | dprintf(("ERROR: OLE32: CoGetInstanceFromIStorage, UNKNOWN API - stub"));
|
|---|
| 355 | return(E_OUTOFMEMORY);
|
|---|
| 356 | }
|
|---|
| 357 | //*******************************************************************************
|
|---|
| 358 | //*******************************************************************************
|
|---|