2025-04-27 07:49:33 -04:00

46 lines
599 B
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
Copyright (c) 1997 Microsoft Corporation
Module Name :
cofact.cxx
Abstract:
class factory
Author:
Johnson Apacible (JohnsonA) 02-April-1997
--*/
#include "precomp.hxx"
CComModule _Module;
STDAPI
DllGetClassObject(
REFCLSID rclsid,
REFIID riid,
void** ppObject)
{
HRESULT hr;
hr = _Module.GetClassObject(rclsid, riid, ppObject);
return hr;
}
STDAPI
DllCanUnloadNow(
VOID
)
{
return (_Module.GetLockCount()==0) ? S_OK : S_FALSE;
} // DllCanUnloadNow