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>NWC24SetDlPriority</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>NWC24SetDlPriority</H1> 12 13<H2>C Specification</H2> 14<DL> 15<DD><PRE><CODE>#define NWC24_DL_PRIORITY_LOWEST 255 16#define NWC24_DL_PRIORITY_DEFAULT 192 17#define NWC24_DL_PRIORITY_LIMIT 128 18</CODE></PRE> 19<DD><PRE><CODE>#include <revolution/nwc24.h></CODE></PRE> 20<DD><PRE><CODE><A HREF="../Types/NWC24Err.html">NWC24Err</A> NWC24SetDlPriority( <A HREF="../Types/NWC24DlTask.html">NWC24DlTask</A>* <VAR>taskPublic</VAR>, u8 <VAR>priority</VAR> );</CODE></PRE> 21</DL> 22 23<H2>Description</H2> 24<P> 25Sets the priority of a download task. In general, the application can use values in the range of <CODE>NWC24_DL_PRIORITY_LIMIT</CODE> to <CODE>NWC24_DL_PRIORITY_LOWEST</CODE>, but there are restrictions based on the number of registered tasks and the update check interval. For details, see the <I>WiiConnect24 Programming Guidelines.</I> 26</P> 27 28<H2>Arguments</H2> 29<TABLE border="1" cellpadding="3" cellspacing="0.1" class="argument"> 30 <TR> 31<TD class="name"><code><VAR>taskPublic</VAR></code></TD> 32 <TD class="description"> 33Pointer to the download task. 34 </TD> 35 </TR> 36 <TR> 37<TD class="name"><code><VAR>priority</VAR></code></TD> 38 <TD class="description"> 39The priority of the download task (0 is the highest priority). 40 </TD> 41 </TR> 42</TABLE> 43 44<h2>Return Values</h2> 45<P> 46<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, or the download task is invalid.<BR> 47</P> 48 49<H2>See Also</H2> 50<P> 51<A href="NWC24GetDlPriority.html"><CODE>NWC24GetDlPriority</CODE></A> 52</P> 53 54<H2>Revision History</H2> 55<P> 562007/09/20 Added text regarding guidelines for the number of registered tasks, the priority and the interval.<BR>2006/12/05 Initial version.<BR>fc 57</P> 58 59<hr><p>CONFIDENTIAL</p></body> 60</HTML>