Source code of Windows XP (NT5)
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

  1. //
  2. // pbag.h
  3. //
  4. #pragma once
  5. #include <atlbase.h>
  6. extern CComModule _Module;
  7. #include <atlcom.h>
  8. #pragma warning (disable : 4786)
  9. #include <string>
  10. #include <map>
  11. using namespace std;
  12. #include "tunk.h"
  13. class CPropBag : public TUnknown<IPropertyBag>
  14. {
  15. public:
  16. CPropBag() : TUnknown<IPropertyBag> (IID_IPropertyBag) {};
  17. STDMETHOD(Read)(LPCOLESTR pszPropName,VARIANT* pVar, IErrorLog* pErrorLog);
  18. STDMETHOD(Write)(LPCOLESTR pszPropName, VARIANT* pVar);
  19. protected:
  20. typedef map <wstring, CComVariant> BAGMAP;
  21. BAGMAP m_map;
  22. };