nn::cec::CTR::Message::NewMessage Member Functionnn::Result NewMessage( TitleId cecTitleId, u32 groupId, MessageTypeFlag messageTypeFlag, SendMode sendMode, u8 sendCount, u8 propagationCount );
| Name | Description | |
|---|---|---|
| in | cecTitleId | StreetPass ID |
| in | groupId | Message group ID Same as the value set with SetGroupID. |
| in | messageTypeFlag | Specifies whether the recipient is a friend or a non-friend using the MessageTypeFlag enumerated type. |
| in | sendMode | Specifies the send mode (receive only, send only, send and receive, or exchange) using the SendMode enumerated type. This is the same as the value set by the SetSendMode function. |
| in | sendCount | The sendCount and propagationCount values cannot both be set to greater than 1 at the same time. |
| in | propagationCount | The sendCount and propagationCount values cannot both be set to greater than 1 at the same time. |
| Value | Description |
|---|---|
ResultSuccess |
Process succeeded. |
ResultInvalidArgument |
An invalid value has been set. |
ResultInvalidCombination |
The transmission count and propagation count have both been set equal to a value of 2 or greater. |
| ResultTooLarge | The data is too large. |
| ResultNotAuthorized | Attempted to edit a message that had already been established and assigned a MessageId. |
| A value other than the above. | Failed. |
Creates a new message.
This function sets the basic parameters. A message is sent via StreetPass after the SetMessageBody function has set the body (data) of the message and the MessageBox::WriteMessage function has written the message to the outbox.
You must set the icon and message body separately.
CONFIDENTIAL