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.

22 lines
537 B

  1. //******************************************************************************
  2. //
  3. // Copyright (c) 1999-2000, Microsoft Corporation, All rights reserved
  4. //
  5. //*****************************************************************************
  6. #ifndef __WMI_ESS_GUARD__H_
  7. #define __WMI_ESS_GUARD__H_
  8. class CGuardable
  9. {
  10. protected:
  11. bool m_bDeactivatedByGuard;
  12. public:
  13. CGuardable(bool bActive) : m_bDeactivatedByGuard(!bActive){}
  14. virtual HRESULT ActivateByGuard() = 0;
  15. virtual HRESULT DeactivateByGuard() = 0;
  16. };
  17. #endif