if(!ppv) \
return P6R::eAccessFault; \
*ppv = NULL; \
if(iid == IID_p6ICom) *ppv = static_cast<interface1*>(this); \
else if(iid == IID_##interface1) *ppv = static_cast<interface1*>(this); \
else if(iid == IID_##interface2) *ppv = static_cast<interface2*>(this); \
else return P6R::eNoInterface; \
reinterpret_cast<p6ICom*>(*ppv)->addref(); \
return P6R::eOk; \
P6UINT32 P6ERR
COM err return type see P6ERR.h.
#define P6_IMPLEMENT_THREADSAFE_ADDREF(classname)
#define P6_IMPLEMENT_CREATEINSTANCE_NO_AGG(classname)
#define P6_IMPLEMENT_THREADSAFE_RELEASE(classname)