Windows2003-3790/net/wlbs/wmi/wlbs_portrule.h

68 lines
2.4 KiB
C
Raw Normal View History

2001-01-01 00:00:00 +01:00
#ifndef _PORTRULE_INCLUDED_
#define _PORTRULE_INCLUDED_
#include "WLBS_Root.h"
////////////////////////////////////////////////////////////////////////////////
//
// class CWLBS_PortRule
//
// Purpose: This class executes IWbemServices methods on behalf of the provider
// and supports the MOF node configuration class.
//
//
////////////////////////////////////////////////////////////////////////////////
class CWLBS_PortRule : public CWlbs_Root
{
public:
CWLBS_PortRule(CWbemServices* a_pNameSpace, IWbemObjectSink* a_pResponseHandler);
static CWlbs_Root* Create(
CWbemServices* a_pNameSpace,
IWbemObjectSink* a_pResponseHandler
);
HRESULT GetInstance(
const ParsedObjectPath* a_pParsedPath,
long a_lFlags = 0,
IWbemContext* a_pIContex = NULL
);
HRESULT DeleteInstance(
const ParsedObjectPath* a_pParsedPath,
long a_lFlags = 0,
IWbemContext* a_pIContex = NULL
);
HRESULT PutInstance(
IWbemClassObject* a_pInstance,
long a_lFlags = 0,
IWbemContext* a_pIContex = NULL
);
HRESULT EnumInstances(
BSTR a_bstrClass = NULL,
long a_lFlags = 0,
IWbemContext* a_pIContex = NULL
);
HRESULT ExecMethod(
const ParsedObjectPath* a_pParsedPath,
const BSTR& a_strMethodName,
long a_lFlags,
IWbemContext* a_pIContex,
IWbemClassObject* a_pIInParams
);
static void FillWbemInstance( LPCWSTR a_szClassName,
CWlbsClusterWrapper* pCluster,
IWbemClassObject* a_pWbemInstance,
const PWLBS_PORT_RULE& a_pPortRule );
private:
};
#endif //_PORTRULE_INCLUDED_