Leaked source code of windows server 2003
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.
 
 
 
 
 
 

64 lines
1.2 KiB

//***************************************************************************
//
// 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