Export (0) Print
Expand All
ATL
Expand Minimize

EXTENSION_SNAPIN_DATACLASS 

Adds a data member to the snap-in extension data class for an ISnapInItemImpl-derived class.


EXTENSION_SNAPIN_DATACLASS( 
      dataClass  
)

Parameters

dataClass

[in] The data class of the snap-in extension.

This class should also be entered into a snap-in extension data class map. Start your snap-in extension data class map with the BEGIN_EXTENSION_SNAPIN_NODEINFO_MAP macro, add entries for each of your snap-in extension data types with the EXTENSION_SNAPIN_NODEINFO_ENTRY macro, and complete the map with the END_EXTENSION_SNAPIN_NODEINFO_MAP macro.

EXTENSION_SNAPIN_DATACLASS(CMySnapInExtData)
...
BEGIN_EXTENSION_SNAPIN_NODEINFO_MAP(CMySnapInExtData)
    EXTENSION_SNAPIN_NODEINFO_ENTRY(CMySnapInExtData)
END_EXTENSION_SNAPIN_NODEINFO_MAP()

class CMyExtSnapInExtData : public CSnapInItemImpl<CMyExtSnapInExtData>
{
...
};

...

class CMyExtSnapIn : 
   public CSnapInObjectRoot<1, CMyExtSnapIn>,
   public IComponentDataImpl<CMyExtSnapIn, CMyExtSnapInComponent>,
   ...
{
...
EXTENSION_SNAPIN_DATACLASS(CMyExtSnapInExtData)
...

};

Community Additions

ADD
Show:
© 2015 Microsoft