//============================================================================= // // Copyright (c) 1996-1999, Microsoft Corporation, All rights reserved // // ESSMAIN.CPP // // Defines COM DLL entry points and CFactory implementation. // // History: // // 11/27/96 a-levn Compiles. // //============================================================================= #include "precomp.h" #include #include #include "esssink.h" #include #include class CMyServer : public CComServer { public: HRESULT Initialize() { AddClassInfo(CLSID_WbemEventSubsystem, _new CClassFactory(GetLifeControl()), __TEXT("Event Subsystem"), TRUE); AddClassInfo(CLSID_WmiESS, _new CClassFactory(GetLifeControl()), __TEXT("New Event Subsystem"), TRUE); return S_OK; } } Server;