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 if(iid == IID_##interface3) *ppv = static_cast<interface3*>(this); \
else if(iid == IID_##interface4) *ppv = static_cast<interface4*>(this); \
else if(iid == IID_##interface5) *ppv = static_cast<interface5*>(this); \
else if(iid == IID_##interface6) *ppv = static_cast<interface6*>(this); \
else if(iid == IID_##interface7) *ppv = static_cast<interface7*>(this); \
else if(iid == IID_##interface8) *ppv = static_cast<interface8*>(this); \
else if(iid == IID_##interface9) *ppv = static_cast<interface9*>(this); \
else if(iid == IID_##interface10) *ppv = static_cast<interface10*>(this); \
else if(iid == IID_##interface11) *ppv = static_cast<interface11*>(this); \
else if(iid == IID_##interface12) *ppv = static_cast<interface12*>(this); \
else if(iid == IID_##interface13) *ppv = static_cast<interface13*>(this); \
else if(iid == IID_##interface14) *ppv = static_cast<interface14*>(this); \
else if(iid == IID_##interface15) *ppv = static_cast<interface15*>(this); \
else if(iid == IID_##interface16) *ppv = static_cast<interface16*>(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)