FRDU:FriendCodeToPrincipalId

FRDU:FriendCodeToPrincipalId

Request #

WordDescription
0
0x00250080Cmd0x0025Param2Xlat0
1-2u64, Friend code

Response #

WordDescription
0
0x00250080Cmd0x0025Param2Xlat0
1Result code
2Principal ID

Description #

Converts a Friend Code back to a Principal ID. The friend code is verified first using the internal handler for FRDU:IsValidFriendCode before extracting the Principal ID from it.

Beside the validation part, this is effectively the same as (u32)(friend_code & 0xFFFFFFFF).