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
30 #define NONAMELESSUNION
31 #define NONAMELESSSTRUCT
41 #include "compobj_private.h"
44 #include "wine/debug.h"
46 WINE_DEFAULT_DEBUG_CHANNEL(ole);
48 static CStdPSFactoryBuffer PSFactoryBuffer;
50 CSTDSTUBBUFFERRELEASE(&PSFactoryBuffer)
52 extern const ExtendedProxyFileInfo dcom_ProxyFileInfo;
53 extern const ExtendedProxyFileInfo ole32_objidl_ProxyFileInfo;
54 extern const ExtendedProxyFileInfo ole32_oleidl_ProxyFileInfo;
55 extern const ExtendedProxyFileInfo ole32_unknwn_ProxyFileInfo;
57 static const ProxyFileInfo *OLE32_ProxyFileList[] = {
59 &ole32_objidl_ProxyFileInfo,
60 &ole32_oleidl_ProxyFileInfo,
61 &ole32_unknwn_ProxyFileInfo,
65 /***********************************************************************
66 * DllGetClassObject [OLE32.@]
68 HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid,LPVOID *ppv)
71 if (IsEqualIID(rclsid,&CLSID_DfMarshal)&&(
72 IsEqualIID(iid,&IID_IClassFactory) ||
73 IsEqualIID(iid,&IID_IUnknown)
76 return MARSHAL_GetStandardMarshalCF(ppv);
77 if (IsEqualIID(rclsid,&CLSID_StdGlobalInterfaceTable) && (IsEqualIID(iid,&IID_IClassFactory) || IsEqualIID(iid,&IID_IUnknown)))
78 return StdGlobalInterfaceTable_GetFactory(ppv);
79 if (IsEqualCLSID(rclsid, &CLSID_FileMoniker))
80 return FileMonikerCF_Create(iid, ppv);
81 if (IsEqualCLSID(rclsid, &CLSID_ItemMoniker))
82 return ItemMonikerCF_Create(iid, ppv);
83 if (IsEqualCLSID(rclsid, &CLSID_AntiMoniker))
84 return AntiMonikerCF_Create(iid, ppv);
85 if (IsEqualCLSID(rclsid, &CLSID_CompositeMoniker))
86 return CompositeMonikerCF_Create(iid, ppv);
87 if (IsEqualCLSID(rclsid, &CLSID_ClassMoniker))
88 return ClassMonikerCF_Create(iid, ppv);
89 if (IsEqualCLSID(rclsid, &CLSID_PointerMoniker))
90 return PointerMonikerCF_Create(iid, ppv);
92 return NdrDllGetClassObject(rclsid, iid, ppv, OLE32_ProxyFileList,
93 &CLSID_PSFactoryBuffer, &PSFactoryBuffer);