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.

25 lines
716 B

  1. // PassportPerfInterface.cpp: implementation of the PassportPerfInterface class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #define _PassportExport_
  5. #include "PassportExport.h"
  6. #include "PassportPerfInterface.h"
  7. #include "PassportPerfMon.h"
  8. //-------------------------------------------------------------
  9. //
  10. // CreatePassportPerfObject
  11. //
  12. //-------------------------------------------------------------
  13. PassportPerfInterface * CreatePassportPerformanceObject ( PassportPerfInterface::OBJECT_TYPE type )
  14. {
  15. switch (type)
  16. {
  17. case PassportPerfInterface::PERFMON_TYPE:
  18. return ( PassportPerfInterface * ) new PassportPerfMon();
  19. default:
  20. return NULL;
  21. }
  22. }