DWC_NdInitAsync

Syntax


#include <nd/dwc_nd.h>

BOOL DWC_NdInitAsync( DWCNdCallback callback, char *gamecd, char *passwd );
				

Description

Starts initialization of the Download library.

HTTP communications are conducted in the background during initialization. Give plenty of processing time for the threads whose priority is lower than that of the main thread. Two types of download servers are available: one for development and one for the final product. You can switch between these servers by switching authentication servers with the DWC_SetAuthServer function.

Regarding specifying the gamecd and passwd arguments, you must apply for permission with Nintendo ahead of time if you wish to do this.

The callback function specified by callback is called when the initialization process completes.

The Download library starts at the point where the function returns TRUE. Be sure that enough memory has been allocated for initialization, even if an error occured during asynchronous processing.

Arguments

callback Pointer to the callback function called in response to notifications from the Download library.
gamecd Pointer to the game name required when accessing the download server.
passwd Pointer to the password string required when accessing the download server.

Return Values

TRUE Success. When initialization is complete, a callback function is called.
FALSE Failure.
Use the DWC_GetLastErrorEx function to get the error information.

See Also

DWCNdCallback
DWC_SetAuthServer
DWC_GetLastErrorEx

Revision History

2006/08/25 Added a note about the occurrence of errors during asynchronous processing.
2006/07/24 Added information about switching the download server.
2006/04/26 Initial version.


CONFIDENTIAL