Source code of Windows XP (NT5)
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

  1. /*++
  2. Copyright (C) 1999-2001 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. History:
  6. --*/
  7. // HiPerfServer.cpp: implementation of the CHiPerfServer class.
  8. //
  9. //////////////////////////////////////////////////////////////////////
  10. #define _WIN32_DCOM
  11. #include <commain.h>
  12. #include <clsfac.h>
  13. #include <wbemcli.h>
  14. #include <wbemint.h>
  15. #include "common.h"
  16. #include "HiPerProv.h"
  17. #include "HiPerfServer.h"
  18. //////////////////////////////////////////////////////////////////////
  19. // Construction/Destruction
  20. //////////////////////////////////////////////////////////////////////
  21. class CHiPerfServer : public CComServer
  22. {
  23. public:
  24. virtual void Initialize()
  25. {
  26. INITLOG;
  27. LOG("Initializing server.");
  28. AddClassInfo(CLSID_ContinousProvider_v1,
  29. new CSimpleClassFactory<CHiPerfProvider>(GetLifeControl()),
  30. "WBEM HiPerf Provider", TRUE);
  31. }
  32. } g_Server;