windows-nt/Source/XPSP1/NT/com/oleutest/act/dllsrv/dllgco.cxx

38 lines
516 B
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*
* 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()
{
}