NWC24GetMyUserId

C Specification

#include <revolution/nwc24.h>
NWC24Err NWC24GetMyUserId( NWC24UserId* userId );

Description

Gets the WiiConnect24 user ID (the Wii number) currently assigned to the Wii console.

This function can execute whether the NWC24 library is open or not. However, if the function executes while the library is in the closed state, it may take some time internally to operate the Scheduler.

Arguments

userId Pointer to the location where the user ID is returned.

Return Values

NWC24_OK: Normal termination (the user ID returned in *userId).
NWC24_ERR_FATAL: A fatal error has occurred.
NWC24_ERR_INTERNAL_IPC: Problem with internal processing.
NWC24_ERR_INPROGRESS: The Scheduler is not running.
NWC24_ERR_MUTEX: A context exists for another Scheduler operation function being called.

If the NWC24 library is open, normal termination will always occur.

See Also

Revision History

2007/04/06 Revised text to reflect fact that function executes even if library is not open.
2007/03/06 Added a description of NWC24_ERR_LIB_NOT_OPENED to the return values.
2006/10/04 Deleted the description in the Alpha version.
2006/08/01 Initial version.


CONFIDENTIAL