#include <dwc.h>
u64 DWC_GetAuthenticatedUserId(void);None.
| 0 | There is no authenticated user ID. |
| Nonzero | The authenticated user ID. |
Gets the authenticated user ID stored in the Nintendo DS system. If the user ID is not authenticated, the function returns 0.
Do not call this function while the connection to the Internet is being made.
The user ID is a decimal value of up to 13 digits that can be confirmed from an option in the Wi-Fi Connection Settings. It is derived by dropping the last three digits from the Wi-Fi Connection ID.
This user ID is a provisional ID that is created and saved to the Nintendo DS system when the DWC_InitForProduction or DWC_InitForDevelopment function is called for the first time. The ID is as unique as possible.
When that DS system later connects to the Internet for the first time, this provisional ID is checked and registered by the Nintendo Authentication Server, and thereafter becomes the user ID. If an ID exactly like the provisional ID is already registered in the Nintendo Authentication Server, another user ID is issued to avoid duplication.
To learn more about the user ID, see the Nintendo Wi-Fi Connection NITRO-DWC Programming Manual.
For the change log prior to 5.1 PR2, click here.
CONFIDENTIAL