#include <dwc.h>DWCCfError DWC_CfGetConsoleInfo(DWCFriendData *frienddata,
DWCCfInfo *consoleinfo);| frienddata | Friend data of friend requesting a Wii number. |
| consoleinfo | Pointer to the structure that stores the partner's console information. |
| DWC_CF_ERROR_NONE | Function completed successfully. |
| DWC_CF_ERROR_GETINFO | Failed. |
Gets the friend's console information (Wii number) from the friend data.
Depending on the state of communications, this function may block for a long period of time.
The console information cannot be obtained from the Friend data of titles that use a version prior to 1.4.10.
If executed on a debug machine, this function will fail its attempt to get the console information if the specified Friend data partner has not yet gotten a Wii number.
The console information registered in the server gets updated each time you login to Wi-Fi Connection. The game code that is registered in the server is the game code read out from ROM, and not the game code specified by the DWC_Init function.
The function fails to obtain the information when it is unable to connect to the GameSpy server.
CONFIDENTIAL