2005-07-31 12:11:56 +00:00
|
|
|
/*
|
|
|
|
* OLE32 proxy/stub handler
|
|
|
|
*
|
|
|
|
* Copyright 2002 Marcus Meissner
|
2008-11-07 11:00:30 +00:00
|
|
|
* Copyright 2001 Ove Kåven, TransGaming Technologies
|
2005-07-31 12:11:56 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2007-04-20 12:23:52 +00:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2005-07-31 12:11:56 +00:00
|
|
|
*/
|
|
|
|
|
2013-12-26 16:07:35 +00:00
|
|
|
#include "precomp.h"
|
2005-07-31 12:11:56 +00:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* DllGetClassObject [OLE32.@]
|
|
|
|
*/
|
2005-09-05 21:56:14 +00:00
|
|
|
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid,LPVOID *ppv)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2010-03-10 14:28:56 +00:00
|
|
|
HRESULT hr;
|
|
|
|
|
2005-07-31 12:11:56 +00:00
|
|
|
*ppv = NULL;
|
|
|
|
if (IsEqualIID(rclsid,&CLSID_DfMarshal)&&(
|
|
|
|
IsEqualIID(iid,&IID_IClassFactory) ||
|
|
|
|
IsEqualIID(iid,&IID_IUnknown)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
return MARSHAL_GetStandardMarshalCF(ppv);
|
|
|
|
if (IsEqualIID(rclsid,&CLSID_StdGlobalInterfaceTable) && (IsEqualIID(iid,&IID_IClassFactory) || IsEqualIID(iid,&IID_IUnknown)))
|
|
|
|
return StdGlobalInterfaceTable_GetFactory(ppv);
|
|
|
|
if (IsEqualCLSID(rclsid, &CLSID_FileMoniker))
|
|
|
|
return FileMonikerCF_Create(iid, ppv);
|
|
|
|
if (IsEqualCLSID(rclsid, &CLSID_ItemMoniker))
|
|
|
|
return ItemMonikerCF_Create(iid, ppv);
|
2007-04-20 12:23:52 +00:00
|
|
|
if (IsEqualCLSID(rclsid, &CLSID_AntiMoniker))
|
|
|
|
return AntiMonikerCF_Create(iid, ppv);
|
|
|
|
if (IsEqualCLSID(rclsid, &CLSID_CompositeMoniker))
|
|
|
|
return CompositeMonikerCF_Create(iid, ppv);
|
|
|
|
if (IsEqualCLSID(rclsid, &CLSID_ClassMoniker))
|
|
|
|
return ClassMonikerCF_Create(iid, ppv);
|
2008-02-10 12:17:32 +00:00
|
|
|
if (IsEqualCLSID(rclsid, &CLSID_PointerMoniker))
|
|
|
|
return PointerMonikerCF_Create(iid, ppv);
|
2008-11-07 11:00:30 +00:00
|
|
|
if (IsEqualGUID(rclsid, &CLSID_StdComponentCategoriesMgr))
|
|
|
|
return ComCatCF_Create(iid, ppv);
|
2005-07-31 12:11:56 +00:00
|
|
|
|
2010-03-10 14:28:56 +00:00
|
|
|
hr = OLE32_DllGetClassObject(rclsid, iid, ppv);
|
|
|
|
if (SUCCEEDED(hr))
|
|
|
|
return hr;
|
|
|
|
|
|
|
|
return Handler_DllGetClassObject(rclsid, iid, ppv);
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|