1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META http-equiv="Content-Style-Type" content="text/css">
6<TITLE>NWC24SetDlFlags</TITLE>
7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
8<LINK rel="stylesheet" type="text/css" href="../nwc24.css">
9</HEAD>
10<BODY>
11<H1>NWC24SetDlFlags</H1>
12
13<H2>C Specification</H2>
14<DL>
15<DD><PRE><CODE>#include &lt;revolution/nwc24.h&gt;</CODE></PRE>
16<DD><PRE><CODE><A HREF="../Types/NWC24Err.html">NWC24Err</A> NWC24SetDlFlags( <A HREF="../Types/NWC24DlTask.html">NWC24DlTask</A>* <VAR>taskPublic</VAR>, u32 <VAR>flags</VAR> );</CODE></PRE>
17</DL>
18
19<H2>Description</H2>
20<P>
21Sets the flags for controlling the behavior of the download task.
22</P>
23
24<H2>Arguments</H2>
25<TABLE border="1" cellpadding="3" cellspacing="0.1" class="argument">
26  <TR>
27<TD class="name"><code><var>taskPublic</var></code></TD>
28    <TD class="description">
29Pointer to the download task to be set.
30    </TD>
31  </TR>
32  <TR>
33<TD class="name"><code><var>flags</var></code></TD>
34    <TD class="description">
35Valid flags.<BR>
36      <TABLE border="1" cellspacing="0.1" class="const">
37        <THEAD>
38          <tr>
39<TD class="name">Name</TD>
40<TD class="description">Description</TD>
41          </tr>
42        </THEAD>
43        <TBODY>
44          <tr>
45<TD class="name"><code>NWC24_DL_FLAG_SEND_USERINFO</code></TD>
46<TD class="description">Includes the Wii user information in the download request header. This should be used for debugging purposes.</TD>
47          </tr>
48          <tr>
49<TD class="name"><code>NWC24_DL_FLAG_USE_MYPUBLICKEY</code></TD>
50<TD class="description">Performs signature authentication using the public key set by the application with <CODE><A href="NWC24SetDlPublicKey.html">NWC24SetDlPublicKey</A></CODE>.</TD>
51          </tr>
52          <tr>
53<TD class="name"><code>NWC24_DL_FLAG_RAW_CONTENT</code></TD>
54<TD class="description">Disables the signature verification feature and loads the completely unprocessed data as is.</TD>
55          </tr>
56          <tr>
57<TD class="name"><code>NWC24_DL_FLAG_USE_MYSECRETKEY</code></TD>
58<TD class="description">Decrypts the content using the secret key set by the application with <CODE><A href="NWC24SetDlSecretKey.html">NWC24SetDlSecretKey</A></CODE>.(This can be used only with <CODE><A HREF="../Types/NWC24DlType.html">NWC24_DLTYPE_MULTIPART_V2</A></CODE> and <CODE><A HREF="../Types/NWC24DlType.html">NWC24_DLTYPE_OCTETSTREAM_V2</A></CODE>.)</TD>
59          </tr>
60          <tr>
61<TD class="name"><code>NWC24_DL_FLAG_GROUP_WRITABLE</code></TD>
62<TD class="description">Enables changing of task contents among applications with the same company code.</TD>
63          </tr>
64        </TBODY>
65      </TABLE>
66    </TD>
67  </TR>
68</TABLE>
69
70<h2>Return Values</h2>
71<P>
72<code>NWC24_OK</code>: Ended normally.<BR> <code>NWC24_ERR_LIB_NOT_OPENED</code>: The library has not been opened.<BR> <code>NWC24_ERR_PROTECTED</code>: The download task is write protected.<BR> <code>NWC24_ERR_INVALID_VALUE</code>: The value of <code><VAR>taskPublic</VAR></code> is NULL, the download task is invalid, or the specification of <code><VAR>flags</VAR></code> is invalid.<BR> <BR>
73</P>
74
75<H2>See Also</H2>
76<P>
77<A href="NWC24GetDlFlags.html"><CODE>NWC24GetDlFlags</CODE></A>
78</P>
79
80<H2>Revision History</H2>
81<P>
822007/06/06 Added descriptions of new flags.<BR> 2006/12/05 Initial version.
83</P>
84
85<hr><p>CONFIDENTIAL</p></body>
86</HTML>