DWC_CfGetAppFriendKeyFromNWC24Msg

Syntax

#include <dwc.h>

DWCCfError DWC_CfGetAppFriendKeyFromNWC24Msg(const NWC24MsgObj *obj,
                                             const DWCUserData *userdata,
                                             u64 *appFriendKey,
                                             DWCCfMsgType *msgType);

Arguments

obj Pointer to NWC24MsgObj from which to extract game Friend information.
userdata Own user data.
appFriendKey Pointer to the other party's game Friend code.
If the other party does not permit registration, NULL is substituted for (msgType==DWC_CF_MSG_TYPE_RESPONSE_DENY).
msgType Pointer to the variable that gets the message type.

Return Values

DWC_CF_ERROR_NONE Succeeded.
Other The DWCCfError enumerated type which indicates the error code.

Description

Extracts information for game Friend exchanges from the NWC24 message. Pass the message that was sent from the same application ID.

If a message that does not include game Friend information gets passed, DWC_CF_ERROR_NOFRIENDDATA is returned.

Revision History

1.4.1
Corrected the description of the return values
1.4.0
Created initial version

CONFIDENTIAL