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.

99 lines
3.1 KiB

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. ProvFact.cpp
  5. Abstract:
  6. History:
  7. --*/
  8. #include "PreComp.h"
  9. #include <wbemint.h>
  10. #include "Globals.h"
  11. #include "CGlobals.h"
  12. #include "ProvCntrs.h"
  13. /******************************************************************************
  14. *
  15. * Name:
  16. *
  17. *
  18. * Description:
  19. *
  20. *
  21. *****************************************************************************/
  22. CServerObject_ProviderSubsystem_Counters :: CServerObject_ProviderSubsystem_Counters () :
  23. m_ProviderHost_WmiCore_Loads ( 0 ) ,
  24. m_ProviderHost_WmiCore_UnLoads ( 0 ) ,
  25. m_ProviderHost_WmiCoreOrSelfHost_Loads ( 0 ) ,
  26. m_ProviderHost_WmiCoreOrSelfHost_UnLoads ( 0 ) ,
  27. m_ProviderHost_SelfHost_Loads ( 0 ) ,
  28. m_ProviderHost_SelfHost_UnLoads ( 0 ) ,
  29. m_ProviderHost_ClientHost_Loads ( 0 ) ,
  30. m_ProviderHost_ClientHost_UnLoads ( 0 ) ,
  31. m_ProviderHost_Decoupled_Loads ( 0 ) ,
  32. m_ProviderHost_Decoupled_UnLoads ( 0 ) ,
  33. m_ProviderHost_SharedLocalSystemHost_Loads ( 0 ) ,
  34. m_ProviderHost_SharedLocalSystemHost_UnLoads ( 0 ) ,
  35. m_ProviderHost_SharedNetworkHost_Loads ( 0 ) ,
  36. m_ProviderHost_SharedNetworkHost_UnLoads ( 0 ) ,
  37. m_ProviderHost_SharedUserHost_Loads ( 0 ) ,
  38. m_ProviderHost_SharedUserHost_UnLoads ( 0 ) ,
  39. m_ProviderOperation_GetObjectAsync ( 0 ) ,
  40. m_ProviderOperation_PutClassAsync ( 0 ) ,
  41. m_ProviderOperation_DeleteClassAsync ( 0 ) ,
  42. m_ProviderOperation_CreateClassEnumAsync ( 0 ) ,
  43. m_ProviderOperation_PutInstanceAsync ( 0 ) ,
  44. m_ProviderOperation_DeleteInstanceAsync ( 0 ) ,
  45. m_ProviderOperation_CreateInstanceEnumAsync ( 0 ) ,
  46. m_ProviderOperation_ExecQueryAsync ( 0 ) ,
  47. m_ProviderOperation_ExecNotificationQueryAsync ( 0 ) ,
  48. m_ProviderOperation_ExecMethodAsync ( 0 ) ,
  49. m_ProviderOperation_QueryInstances ( 0 ) ,
  50. m_ProviderOperation_CreateRefresher ( 0 ) ,
  51. m_ProviderOperation_CreateRefreshableObject ( 0 ) ,
  52. m_ProviderOperation_StopRefreshing ( 0 ) ,
  53. m_ProviderOperation_CreateRefreshableEnum ( 0 ) ,
  54. m_ProviderOperation_GetObjects ( 0 ) ,
  55. m_ProviderOperation_GetProperty ( 0 ) ,
  56. m_ProviderOperation_PutProperty ( 0 ) ,
  57. m_ProviderOperation_ProvideEvents ( 0 ) ,
  58. m_ProviderOperation_NewQuery ( 0 ) ,
  59. m_ProviderOperation_CancelQuery ( 0 ) ,
  60. m_ProviderOperation_AccessCheck ( 0 ) ,
  61. m_ProviderOperation_SetRegistrationObject ( 0 ) ,
  62. m_ProviderOperation_FindConsumer ( 0 ) ,
  63. m_ProviderOperation_ValidateSubscription ( 0 )
  64. {
  65. InterlockedDecrement ( & ProviderSubSystem_Globals :: s_CServerObject_ProviderSubsystem_Counters_ObjectsInProgress ) ;
  66. ProviderSubSystem_Globals :: Increment_Global_Object_Count () ;
  67. }
  68. /******************************************************************************
  69. *
  70. * Name:
  71. *
  72. *
  73. * Description:
  74. *
  75. *
  76. *****************************************************************************/
  77. CServerObject_ProviderSubsystem_Counters::~CServerObject_ProviderSubsystem_Counters ()
  78. {
  79. InterlockedDecrement ( & ProviderSubSystem_Globals :: s_CServerObject_ProviderSubsystem_Counters_ObjectsInProgress ) ;
  80. ProviderSubSystem_Globals :: Decrement_Global_Object_Count () ;
  81. }