Changes

Jump to navigation Jump to search
Created page with "=Request= {{IPC/Request}} {{IPC/RequestHeader|0x0034|1|6}} {{IPC/RequestEntry|? (unused)}} {{IPC/CopyHandle|1}} {{IPC/RequestEntry|Completion handle}} {{IPC/TranslateStaticBuf..."
=Request=
{{IPC/Request}}
{{IPC/RequestHeader|0x0034|1|6}}
{{IPC/RequestEntry|? (unused)}}
{{IPC/CopyHandle|1}}
{{IPC/RequestEntry|Completion handle}}
{{IPC/TranslateStaticBuffer|Input [[Friend_Services#Encrypted_ApproachContext_Payload|encrypted ApproachContext payload]] buffer|3}}
{{IPC/TranslateStaticBuffer|? (unused, max. 0x600)|4}}
{{IPC/RequestEnd}}

=Response=
{{IPC/Request}}
{{#vardefine:ipc_offset|0}}
{{IPC/RequestHeader|0x0034|1|0}}
{{IPC/RequestEntry|Result code}}
{{IPC/RequestEnd}}

=Description=
Decrypts the given [[Friend_Services#Encrypted_ApproachContext_Payload|encrypted ApproachContext payload]], adds the target console locally, and then schedules an internal task to register the friend using the friends server. The approach context must contain a valid Mii (otherwise, error 0xE0E0C4E9). The console (of the caller) must not have <code>IsShowPlayedMode</code> set (otherwise, 0xD8A0C4FA), and must have a valid personal mii (otherwise, 0xD8A0C4F8). The first u8 value of the payload must not be zero (otherwise, 0xE0E0C4E9).

If adding the friend locally succeeds but registering the friend online fails, result code 0xC4E1 is returned (registering the friend online will be reattempted the next time the console goes online).
Trusted
365

edits

Navigation menu