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.

32 lines
685 B

  1. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // File: Action.CPP
  4. //
  5. // Description: Implementation of the CAction member fuctions.
  6. //
  7. // (c) 1999 Microsoft Corporation
  8. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  9. #include "precomp.h"
  10. #include "Action.h"
  11. // Basic constructor
  12. CAction::CAction(IWbemServices *pWbem):
  13. m_pWbem(pWbem),
  14. m_hStatus(0)
  15. {
  16. if(m_pWbem)
  17. {
  18. m_pWbem->AddRef();
  19. }
  20. }
  21. // Basic Destructor
  22. CAction::~CAction()
  23. {
  24. if(m_pWbem)
  25. {
  26. m_pWbem->Release();
  27. }
  28. }