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