Code: Select all
struct MsgPort *port;
if (GetApplicationAttrs(appID, APPATTR_Port, (uint32)&port, TAG_DONE))
{
... receive messages ...
}
if (GetApplicationAttrs(appID, APPATTR_Port, (uint32 *)&port, TAG_DONE))