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
543 B
30 lines
543 B
//
|
|
// pbag.h
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include <atlbase.h>
|
|
extern CComModule _Module;
|
|
#include <atlcom.h>
|
|
|
|
#pragma warning (disable : 4786)
|
|
#include <string>
|
|
#include <map>
|
|
using namespace std;
|
|
|
|
#include "tunk.h"
|
|
|
|
class CPropBag : public TUnknown<IPropertyBag>
|
|
{
|
|
public:
|
|
CPropBag() : TUnknown<IPropertyBag> (IID_IPropertyBag) {};
|
|
|
|
STDMETHOD(Read)(LPCOLESTR pszPropName,VARIANT* pVar, IErrorLog* pErrorLog);
|
|
STDMETHOD(Write)(LPCOLESTR pszPropName, VARIANT* pVar);
|
|
|
|
protected:
|
|
typedef map <wstring, CComVariant> BAGMAP;
|
|
|
|
BAGMAP m_map;
|
|
};
|