NWC24SetMsgToId

C Specification

#include <revolution/nwc24.h>
NWC24Err NWC24SetMsgToId( NWC24MsgObj* obj, NWC24UserId userId );

Description

Specifies a message recipient with a user ID.
Although a total of eight recipients may be set, for multiple recipients, NWC24SetMsgToId() is called once for each recipient.
This is valid only for objects that have been initialized as messages between Wii consoles.

Furthermore, messages that are set with only the user's ID and confirmed by NWC24CommitMsg() are stored in the Inbox, and not the Outbox.

Arguments

obj Pointer to the message object to be set.
userId User ID to add to the recipient list.

Return Values

NWC24_OK: Normal termination.
NWC24_ERR_PROTECTED: Cannot change message object.
NWC24_ERR_NOT_SUPPORTED: Something other than a message object was specified for obj.
NWC24_ERR_FULL: The recipients are already specified up to the maximum.

See Also

NWC24InitMsgObj, NWC24SetMsgToAddr, NWC24CommitMsg

Revision History

2006/10/06 Updated return value list.
2006/08/01 Initial version.


CONFIDENTIAL