mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
[ATL]
- Add a couple of macros needed for the time we will be able to support aggregation with ATL svn path=/branches/shell-experiments/; revision=65182
This commit is contained in:
parent
611a14d331
commit
6f1b132494
|
@ -521,6 +521,11 @@ public: \
|
|||
#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, \
|
||||
|
@ -579,6 +584,11 @@ public: \
|
|||
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: \
|
||||
virtual IUnknown *GetControllingUnknown() \
|
||||
|
|
Loading…
Reference in a new issue