Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
553 B

/*
* 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()
{
}