mirror of https://github.com/tongzx/nt5src
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.
30 lines
942 B
30 lines
942 B
// SystemStatusListener.h: interface for the CSystemStatusListener class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_SYSTEMSTATUSLISTENER_H__AA380C77_FD89_11D2_BDCE_0000F87A3912__INCLUDED_)
|
|
#define AFX_SYSTEMSTATUSLISTENER_H__AA380C77_FD89_11D2_BDCE_0000F87A3912__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "WbemEventListener.h"
|
|
|
|
class CSystemStatusListener : public CWbemEventListener
|
|
{
|
|
|
|
DECLARE_DYNCREATE(CSystemStatusListener)
|
|
|
|
// Construction/Destruction
|
|
public:
|
|
CSystemStatusListener();
|
|
virtual ~CSystemStatusListener();
|
|
|
|
// Processing Operations
|
|
protected:
|
|
virtual HRESULT ProcessEventClassObject(IWbemClassObject* pClassObject);
|
|
virtual HRESULT OnSetStatus(long lFlags, HRESULT hResult, BSTR strParam, IWbemClassObject __RPC_FAR *pObjParam);
|
|
};
|
|
|
|
#endif // !defined(AFX_SYSTEMSTATUSLISTENER_H__AA380C77_FD89_11D2_BDCE_0000F87A3912__INCLUDED_)
|