2002-05-14 23:50:56 +02:00
|
|
|
/*
|
|
|
|
* exported dll functions for comcat.dll
|
|
|
|
*
|
2003-01-11 22:05:15 +01:00
|
|
|
* Copyright (C) 2002-2003 John K. Hohm
|
2002-05-14 23:50:56 +02: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
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
2002-12-23 02:39:35 +01:00
|
|
|
#include "comcat_private.h"
|
2002-05-14 23:50:56 +02:00
|
|
|
|
|
|
|
#include "wine/debug.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(ole);
|
|
|
|
|
2005-07-11 15:21:17 +02:00
|
|
|
LONG dll_ref = 0;
|
2002-06-13 21:13:38 +02:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* Global string constant definitions
|
|
|
|
*/
|
|
|
|
const WCHAR clsid_keyname[6] = { 'C', 'L', 'S', 'I', 'D', 0 };
|
|
|
|
|
2002-05-14 23:50:56 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* DllGetClassObject (COMCAT.@)
|
|
|
|
*/
|
2005-08-08 19:35:28 +02:00
|
|
|
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
|
2002-05-14 23:50:56 +02:00
|
|
|
{
|
|
|
|
*ppv = NULL;
|
|
|
|
if (IsEqualGUID(rclsid, &CLSID_StdComponentCategoriesMgr)) {
|
|
|
|
return IClassFactory_QueryInterface((LPCLASSFACTORY)&COMCAT_ClassFactory, iid, ppv);
|
|
|
|
}
|
|
|
|
FIXME("\n\tCLSID:\t%s,\n\tIID:\t%s\n",debugstr_guid(rclsid),debugstr_guid(iid));
|
|
|
|
return CLASS_E_CLASSNOTAVAILABLE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* DllCanUnloadNow (COMCAT.@)
|
|
|
|
*/
|
2005-08-08 19:35:28 +02:00
|
|
|
HRESULT WINAPI DllCanUnloadNow(void)
|
2002-05-14 23:50:56 +02:00
|
|
|
{
|
|
|
|
return dll_ref != 0 ? S_FALSE : S_OK;
|
|
|
|
}
|
|
|
|
|
2003-01-11 22:05:15 +01:00
|
|
|
/* NOTE: DllRegisterServer and DllUnregisterServer are in regsvr.c */
|