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.
 
 
 
 
 
 

83 lines
2.4 KiB

//////////////////////////////////////////////////////////////////////////////
/*++
Copyright (C) Microsoft Corporation
Module Name:
IASEnumerableAttributeInfo.h
Abstract:
Declaration of the CEnumerableAttributeInfo class.
This class is the C++ implementation of the IIASEnumerableAttributeInfo interface on
the EnumerableAttributeInfo COM object.
See IASEnumerableAttributeInfo.cpp for implementation.
Revision History:
mmaguire 06/25/98 - created
--*/
//////////////////////////////////////////////////////////////////////////////
#if !defined(_ENUMERABLE_SCHEMA_ATTRIBUTE_H_)
#define _ENUMERABLE_SCHEMA_ATTRIBUTE_H_
#pragma once
//////////////////////////////////////////////////////////////////////////////
// BEGIN INCLUDES
//
// where we can find what this class derives from:
//
#include "IASBaseAttributeInfo.h"
//
// where we can find what this class has or uses:
//
#include <vector>
//
// END INCLUDES
//////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// CEnumerableAttributeInfo
class ATL_NO_VTABLE CEnumerableAttributeInfo :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CEnumerableAttributeInfo, &CLSID_IASEnumerableAttributeInfo>,
public IDispatchImpl<IIASEnumerableAttributeInfo, &IID_IIASEnumerableAttributeInfo, &LIBID_NAPMMCLib>,
public CBaseAttributeInfo
{
public:
CEnumerableAttributeInfo()
{
}
DECLARE_NO_REGISTRY()
DECLARE_CLASSFACTORY()
BEGIN_COM_MAP(CEnumerableAttributeInfo)
COM_INTERFACE_ENTRY(IIASAttributeInfo)
COM_INTERFACE_ENTRY(IIASEnumerableAttributeInfo)
COM_INTERFACE_ENTRY2(IDispatch, IIASEnumerableAttributeInfo)
END_COM_MAP()
// IEnumerableAttributeInfo
public:
STDMETHOD(get_CountEnumerateDescription)(/*[out, retval]*/ long *pVal);
STDMETHOD(AddEnumerateDescription)( /*[in]*/ BSTR newVal);
STDMETHOD(get_CountEnumerateID)(/*[out, retval]*/ long *pVal);
STDMETHOD(get_EnumerateDescription)(long index, /*[out, retval]*/ BSTR *pVal);
STDMETHOD(AddEnumerateID)( /*[in]*/ long newVal);
STDMETHOD(get_EnumerateID)(long index, /*[out, retval]*/ long *pVal);
private:
std::vector<long> m_veclEnumerateID;
std::vector<CComBSTR> m_vecbstrEnumerateDescription;
};
#endif // _ENUMERABLE_SCHEMA_ATTRIBUTE_H_