windows-nt/Source/XPSP1/NT/admin/wmi/wbem/winmgmt/esscli/main.cpp
2020-09-26 16:20:57 +08:00

26 lines
607 B
C++

#include "precomp.h"
#include <wmiauthz.h>
#include <commain.h>
#include <clsfac.h>
#include "filtprox.h"
#include "wmiauthz.h"
class CEssProxyServer : public CComServer
{
protected:
HRESULT Initialize()
{
AddClassInfo( CLSID_WbemFilterProxy,
new CSimpleClassFactory<CFilterProxyManager>(GetLifeControl()),
__TEXT("Event filter marshaling proxy"), TRUE);
AddClassInfo( CLSID_WbemTokenCache,
new CSimpleClassFactory<CWmiAuthz>(GetLifeControl()),
__TEXT("Wbem Token Cache"), TRUE );
return S_OK;
}
} g_Server;