FRDU:FriendCodeToPrincipalId

Revision as of 18:10, 14 December 2024 by TimmSkiller (talk | contribs) (Created page with "=Request= {{IPC/Request}} {{IPC/RequestHeader|0x0025|2|0}} {{IPC/RequestEntryRange|2|u64, Friend code}} {{IPC/RequestEnd}} =Response= {{IPC/Request}} {{#vardefine:ipc_offset|...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RequestEdit

Index Word Description
0
Header 0x00250080 Cmd 0x0025 Param 2 Xlat 0
1-2 u64, Friend code

ResponseEdit

Index Word Description
0
Header 0x00250080 Cmd 0x0025 Param 2 Xlat 0
1 Result code
2 Principal ID

DescriptionEdit

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).