mirror of https://github.com/tongzx/nt5src
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.
46 lines
863 B
46 lines
863 B
/*++
|
|
|
|
Copyright (C) 1999-2001 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
Abstract:
|
|
|
|
History:
|
|
|
|
--*/
|
|
|
|
// HiPerfServer.cpp: implementation of the CHiPerfServer class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#define _WIN32_DCOM
|
|
|
|
#include <commain.h>
|
|
#include <clsfac.h>
|
|
#include <wbemcli.h>
|
|
#include <wbemint.h>
|
|
|
|
#include "common.h"
|
|
#include "HiPerProv.h"
|
|
#include "HiPerfServer.h"
|
|
//////////////////////////////////////////////////////////////////////
|
|
// Construction/Destruction
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
class CHiPerfServer : public CComServer
|
|
{
|
|
public:
|
|
|
|
virtual void Initialize()
|
|
{
|
|
INITLOG;
|
|
LOG("Initializing server.");
|
|
|
|
AddClassInfo(CLSID_ContinousProvider_v1,
|
|
new CSimpleClassFactory<CHiPerfProvider>(GetLifeControl()),
|
|
"WBEM HiPerf Provider", TRUE);
|
|
}
|
|
} g_Server;
|
|
|
|
|