windows-nt/Source/XPSP1/NT/admin/wmi/wbem/winmgmt/ess3/guard.h

23 lines
537 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
//******************************************************************************
//
// Copyright (c) 1999-2000, Microsoft Corporation, All rights reserved
//
//*****************************************************************************
#ifndef __WMI_ESS_GUARD__H_
#define __WMI_ESS_GUARD__H_
class CGuardable
{
protected:
bool m_bDeactivatedByGuard;
public:
CGuardable(bool bActive) : m_bDeactivatedByGuard(!bActive){}
virtual HRESULT ActivateByGuard() = 0;
virtual HRESULT DeactivateByGuard() = 0;
};
#endif