ole32: Fix a typo in a TRACE() message.
[wine.git] / dlls / ole32 / oleproxy.c
blob8351f27770462a4d4f4b9fcc18102b6f471b2d5b
1 /*
2 * OLE32 proxy/stub handler
4 * Copyright 2002 Marcus Meissner
5 * Copyright 2001 Ove Kåven, TransGaming Technologies
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "config.h"
24 #include <stdlib.h>
25 #include <stdarg.h>
26 #include <stdio.h>
27 #include <string.h>
29 #define COBJMACROS
31 #include "windef.h"
32 #include "winbase.h"
33 #include "winuser.h"
34 #include "objbase.h"
35 #include "ole2.h"
36 #include "rpc.h"
38 #include "compobj_private.h"
39 #include "moniker.h"
40 #include "comcat.h"
42 /***********************************************************************
43 * DllGetClassObject [OLE32.@]
45 HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid,LPVOID *ppv)
47 HRESULT hr;
49 *ppv = NULL;
50 if (IsEqualIID(rclsid,&CLSID_DfMarshal)&&(
51 IsEqualIID(iid,&IID_IClassFactory) ||
52 IsEqualIID(iid,&IID_IUnknown)
55 return MARSHAL_GetStandardMarshalCF(ppv);
56 if (IsEqualIID(rclsid,&CLSID_StdGlobalInterfaceTable) && (IsEqualIID(iid,&IID_IClassFactory) || IsEqualIID(iid,&IID_IUnknown)))
57 return StdGlobalInterfaceTable_GetFactory(ppv);
58 if (IsEqualCLSID(rclsid, &CLSID_FileMoniker))
59 return FileMonikerCF_Create(iid, ppv);
60 if (IsEqualCLSID(rclsid, &CLSID_ItemMoniker))
61 return ItemMonikerCF_Create(iid, ppv);
62 if (IsEqualCLSID(rclsid, &CLSID_AntiMoniker))
63 return AntiMonikerCF_Create(iid, ppv);
64 if (IsEqualCLSID(rclsid, &CLSID_CompositeMoniker))
65 return CompositeMonikerCF_Create(iid, ppv);
66 if (IsEqualCLSID(rclsid, &CLSID_ClassMoniker))
67 return ClassMonikerCF_Create(iid, ppv);
68 if (IsEqualCLSID(rclsid, &CLSID_PointerMoniker))
69 return PointerMonikerCF_Create(iid, ppv);
70 if (IsEqualGUID(rclsid, &CLSID_StdComponentCategoriesMgr))
71 return ComCatCF_Create(iid, ppv);
73 hr = OLE32_DllGetClassObject(rclsid, iid, ppv);
74 if (SUCCEEDED(hr))
75 return hr;
77 return Handler_DllGetClassObject(rclsid, iid, ppv);