Author: gadamopoulos
Date: Sun Nov 2 13:35:03 2014
New Revision: 65182
URL:
http://svn.reactos.org/svn/reactos?rev=65182&view=rev
Log:
[ATL]
- Add a couple of macros needed for the time we will be able to support aggregation with
ATL
Modified:
branches/shell-experiments/lib/atl/atlcom.h
Modified: branches/shell-experiments/lib/atl/atlcom.h
URL:
http://svn.reactos.org/svn/reactos/branches/shell-experiments/lib/atl/atlco…
==============================================================================
--- branches/shell-experiments/lib/atl/atlcom.h [iso-8859-1] (original)
+++ branches/shell-experiments/lib/atl/atlcom.h [iso-8859-1] Sun Nov 2 13:35:03 2014
@@ -521,6 +521,11 @@
#define COM_INTERFACE_ENTRY_IID(iid, x)
\
{&iid, offsetofclass(x, _ComMapClass), _ATL_SIMPLEMAPENTRY},
+#define COM_INTERFACE_ENTRY(x) \
+ {&_ATL_IIDOF(x), \
+ offsetofclass(x, _ComMapClass), \
+ _ATL_SIMPLEMAPENTRY},
+
#define COM_INTERFACE_ENTRY2_IID(iid, x, x2)
\
{&iid,
\
reinterpret_cast<DWORD_PTR>(static_cast<x
*>(static_cast<x2 *>(reinterpret_cast<_ComMapClass *>(_ATL_PACKING)))) -
_ATL_PACKING, \
@@ -578,6 +583,11 @@
#define DECLARE_POLY_AGGREGATABLE(x)
\
public:
\
typedef ATL::CComCreator<ATL::CComPolyObject<x> > _CreatorClass;
+
+#define COM_INTERFACE_ENTRY_AGGREGATE(iid, punk) \
+ {&iid, \
+ (DWORD_PTR)offsetof(_ComMapClass, punk), \
+ _Delegate},
#define DECLARE_GET_CONTROLLING_UNKNOWN()
\
public:
\