NWC24SetDlFlags

C Specification

#include <revolution/nwc24.h>
NWC24Err NWC24SetDlFlags( NWC24DlTask* taskPublic, u32 flags );

Description

Sets the flags for controlling the behavior of the download task.

Arguments

taskPublic Pointer to the download task to be set.
flags Valid flags.
Name Description
NWC24_DL_FLAG_SEND_USERINFO Includes the Wii user information in the download request header. This should be used for debugging purposes.
NWC24_DL_FLAG_USE_MYPUBLICKEY Performs signature authentication using the public key set by the application with NWC24SetDlPublicKey.
NWC24_DL_FLAG_RAW_CONTENT Disables the signature verification feature and loads the completely unprocessed data as is.
NWC24_DL_FLAG_USE_MYSECRETKEY Decrypts the content using the secret key set by the application with NWC24SetDlSecretKey.(This can be used only with NWC24_DLTYPE_MULTIPART_V2 and NWC24_DLTYPE_OCTETSTREAM_V2.)
NWC24_DL_FLAG_GROUP_WRITABLE Enables changing of task contents among applications with the same company code.

Return Values

NWC24_OK: Ended normally.
NWC24_ERR_LIB_NOT_OPENED: The library has not been opened.
NWC24_ERR_PROTECTED: The download task is write protected.
NWC24_ERR_INVALID_VALUE: The value of taskPublic is NULL, the download task is invalid, or the specification of flags is invalid.

See Also

NWC24GetDlFlags

Revision History

2007/06/06 Added descriptions of new flags.
2006/12/05 Initial version.


CONFIDENTIAL