4 * Copyright 1995 Martin von Loewis
7 /* At the moment, these are only empty stubs.
15 DWORD currentMalloc=0;
17 /***********************************************************************
18 * CoBuildVersion [COMPOBJ.1]
20 DWORD CoBuildVersion()
22 dprintf_ole(stddeb,"CoBuildVersion()\n");
26 /***********************************************************************
27 * CoInitialize [COMPOBJ.2]
28 * lpReserved is an IMalloc pointer in 16bit OLE. We just stored it as-is.
30 HRESULT CoInitialize(DWORD lpReserved)
32 dprintf_ole(stdnimp,"CoInitialize\n");
33 /* remember the LPMALLOC, maybe somebody wants to read it later on */
34 currentMalloc = lpReserved;
38 /***********************************************************************
39 * CoUnitialize [COMPOBJ.3]
43 dprintf_ole(stdnimp,"CoUnitialize()\n");
46 /***********************************************************************
47 * CoGetMalloc [COMPOBJ.4]
49 HRESULT CoGetMalloc(DWORD dwMemContext, DWORD * lpMalloc)
53 *lpMalloc = currentMalloc;
57 /* 16-bit E_NOTIMPL */
61 /***********************************************************************
64 OLESTATUS CoDisconnectObject( LPUNKNOWN lpUnk, DWORD reserved )
66 dprintf_ole(stdnimp,"CoDisconnectObject:%p %lx\n",lpUnk,reserved);