DWC_NdInitAsync

C Specification


#include <nd/dwc_nd.h>

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

Description

Starts the initialization of the download library. HTTP communications are conducted in the background during initialization. Give plenty of processing time for threads that have lower priority than the priority of the main thread. Two types of download servers will be available: one for development and one for the final product. The download server will be switched along with the authentication server when it is switched using the DWC_SetAuthServer function.

You must apply to Nintendo before specifying the arguments gamecd and passwd.

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

The Download Library starts at the point TRUE is returned as the return value. Be sure that enough memory has been allocated for initialization even if an error occurs 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 Successful.
The callback function is called when initialization is complete.
FALSE Failure.
Use the DWC_GetLastError function to get the error information.

See Also

DWCNdCallback, DWC_SetAuthServer, DWC_GetLastError

Revision History

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


CONFIDENTIAL