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 main thread's priority. Two types of download servers will be 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.

You must apply to Nintendo ahead of time regarding information to be provided in the gamecd and passwd arguments.

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 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. When initialization is complete, a callback function is called.
FALSE Failure
Be sure to get error information using the DWC_GetLastErrorEx function.

See Also

DWCNdCallback, DWC_SetAuthServer, DWC_GetLastErrorEx

Revision History

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


CONFIDENTIAL