windows-nt/Source/XPSP1/NT/com/oleutest/act/dllsrv/dllgco.cxx
2020-09-26 16:20:57 +08:00

38 lines
516 B
C++

/*
* DllGCO.cxx
* - DllGetClassObject implementation for inproc DLL
*/
#include "server.hxx"
#include "factory.hxx"
HANDLE hStopServiceEvent;
BOOL fStartedAsService = FALSE;
long ObjectCount = 0;
STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID FAR* ppv)
{
HRESULT hr = E_NOINTERFACE;
*ppv = NULL;
MyFactory * pClass = new FactoryInproc();
hr = pClass->QueryInterface( riid, ppv );
return hr;
}
STDAPI DllCanUnloadNow(void)
{
return S_FALSE;
}
void ShutDown()
{
}