Added debugstr_guid function and used it to replace
[wine/wine-kai.git] / dlls / oleaut32 / oleaut.c
blob2b8fdeea6b9b323413a3e8495fd269f8ebee459d
1 /*
2 * OLEAUT32
4 */
5 #include <string.h>
6 #include "winuser.h"
7 #include "winerror.h"
8 #include "winversion.h"
9 #include "oleauto.h"
10 #include "wine/obj_base.h"
11 #include "heap.h"
12 #include "ldt.h"
13 #include "debugtools.h"
15 DEFAULT_DEBUG_CHANNEL(ole)
17 HRESULT WINAPI RegisterActiveObject(
18 LPUNKNOWN punk,REFCLSID rcid,DWORD dwFlags,LPDWORD pdwRegister
19 ) {
20 FIXME("(%p,%s,0x%08lx,%p), stub!\n",punk,debugstr_guid(rcid),dwFlags,pdwRegister);
21 return E_FAIL;
24 HRESULT WINAPI RevokeActiveObject(DWORD xregister,LPVOID reserved)
26 FIXME("(0x%08lx,%p),stub!\n",xregister,reserved);
27 return E_FAIL;
30 HRESULT WINAPI GetActiveObject(REFCLSID rcid,LPVOID preserved,LPUNKNOWN *ppunk)
32 FIXME("(%s,%p,%p),stub!\n",debugstr_guid(rcid),preserved,ppunk);
33 return E_FAIL;
36 /***********************************************************************
37 * OaBuildVersion [OLEAUT32.170]
39 * known OLEAUT32.DLL versions:
40 * OLE 2.1 NT 1993-95 10 3023
41 * OLE 2.1 10 3027
42 * OLE 2.20 W95/NT 1993-96 20 4112
43 * OLE 2.20 W95/NT 1993-96 20 4118
44 * OLE 2.20 W95/NT 1993-96 20 4122
45 * OLE 2.30 W95/NT 1993-98 30 4265
46 * OLE 2.40 NT?? 1993-98 40 4267
47 * OLE 2.40 W98 SE orig. file 1993-98 40 4275
49 UINT WINAPI OaBuildVersion()
51 FIXME("Please report to a.mohr@mailto.de if you get version error messages !\n");
52 switch(VERSION_GetVersion())
54 case WIN31:
55 return MAKELONG(4049, 20); /* from Win32s 1.1e */
56 case WIN95:
57 return MAKELONG(4265, 30);
58 case WIN98:
59 return MAKELONG(4275, 40); /* value of W98 SE; orig. W98 AFAIK has 4265, 30 just as W95 */
60 case NT351:
61 return MAKELONG(4265, 30); /* value borrowed from Win95 */
62 case NT40:
63 return MAKELONG(4122, 20); /* ouch ! Quite old, I guess */
64 default:
65 ERR("Version value not known yet. Please investigate it !\n");
66 return 0x0;