64 lines
1.2 KiB
C++
64 lines
1.2 KiB
C++
//***************************************************************************
|
|
|
|
//
|
|
|
|
// File:
|
|
|
|
//
|
|
|
|
// Module: MS SNMP Provider
|
|
|
|
//
|
|
|
|
// Purpose:
|
|
|
|
//
|
|
|
|
// Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
|
|
//
|
|
//***************************************************************************
|
|
|
|
#ifndef _SNMP_EVT_PROV_EVTREFT_H
|
|
#define _SNMP_EVT_PROV_EVTREFT_H
|
|
|
|
struct CIMTypeStruct
|
|
{
|
|
BOOL fObject;
|
|
CString strType;
|
|
};
|
|
|
|
|
|
class CReferentMapper : public CMapToEvent
|
|
{
|
|
private:
|
|
|
|
BOOL GetSpecificClass();
|
|
const wchar_t* GetV1Class() { return V1EXTCLASS_NAME; }
|
|
const wchar_t* GetV2Class() { return V2EXTCLASS_NAME; }
|
|
HRESULT GetTypeAndIndexQuals(const wchar_t* prop,
|
|
CIMTypeStruct& type,
|
|
ULONG& index);
|
|
|
|
HRESULT CreateEmbeddedProperty(IWbemClassObject** ppObj,
|
|
ULONG index,
|
|
const wchar_t* propertyName,
|
|
const wchar_t* className);
|
|
|
|
public:
|
|
|
|
CReferentMapper();
|
|
|
|
HRESULT GetSpecificPropertyValue(long lNumElements,
|
|
MYWBEM_NAME_ELEMENT *aElements,
|
|
long lFlags,
|
|
VARIANT *pvValue);
|
|
|
|
void GenerateInstance(IWbemClassObject** ppInst);
|
|
void ResetData();
|
|
|
|
~CReferentMapper();
|
|
|
|
};
|
|
|
|
|
|
#endif //_SNMP_EVT_PROV_EVTREFT_H
|