Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IInitMessage::setData ( P6VOID pData)
pure virtual

This method stores a pointer to caller provided data in the message for later retrieval using the p6IMessage::getData() method.

A cleanup routine can be registered with the message using the setCleanupRoutine() method to cleanup the allocated data before the message is destroyed.

Parameters
pData[ in ] A pointer to allocated to be passed along with the message.
Returns
SuccesseOkLife is good.
FailureeTooBigThe data is too large to fit in the message's internal storage area
eTooSmallpData is NULL and cData is 0. The size of the messages internal storage area is returned in cData.
eInvalidArgpData is non-NULL, but cData == 0 or vice versa