NWC24GetDlTaskMine

C Specification

#include <revolution/nwc24.h>
NWC24Err NWC24GetDlTaskMine( NWC24DlTask* taskPublic );
NWC24Err NWC24GetDlTaskMineEx( NWC24DlTask* taskPublic, u32 param );

Description

Gets the download task which was previously registered by the application currently running.
If more than one are registered, the one with the lowest ID is always obtained.

The target for NWC24GetDlTaskMineEx can be narrowed to only those that match the value of the user parameter. This is useful when a single application is handling multiple tasks.

Arguments

taskPublic Pointer to the location where the download task will be stored.
param The value of the user parameter.

Return Values

NWC24_OK: Acquired normally (the value is returned in *taskPublic).
NWC24_ERR_INVALID_VALUE: The value of taskPublic is NULL.
NWC24_ERR_NOT_FOUND: The download task could not be found.

See Also

NWC24GetDlTaskByAppId, NWC24GetDlParameter, NWC24SetDlParameter

Revision History

2007/08/29 Added NWC24GetDlTaskMineEx.
2006/12/05 Initial version.


CONFIDENTIAL