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 name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<TITLE>CARDSetStatus</TITLE> 9</HEAD> 10<BODY> 11<H1>CARDSetStatus</H1> 12<H2>C Specification</H2> 13<DL> 14 <DD> 15<PRE><code>#include <revolution/card.h> 16 17#define CARD_READ_SIZE 512</code></PRE> 18 <DD> 19<PRE>s32 CARDSetStatus(s32 chan, s32 fileNo, <a href="CARDStat.html"><code>CARDStat</code></a>* stat)<code>;</code></PRE> 20</DL> 21<H2>Arguments</H2> 22<TABLE border="1" cellpadding="3" cellspacing="0.1"> 23 <TBODY> 24 <TR> 25<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><code>chan</code></EM></STRONG></CODE></STRONG></EM></TD> 26<TD width="520">EXI channel number.</TD> 27 </TR> 28 <TR> 29<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><em><strong><code>fileNo</code></strong></em></CODE></STRONG></EM></TD> 30<TD width="520">File entry number.</TD> 31 </TR> 32 <TR> 33<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><CODE>stat</CODE></EM></STRONG></CODE></STRONG></EM></TD> 34<TD width="520">Pointer to file status to set.</TD> 35 </TR> 36 </TBODY> 37</TABLE> 38<H2>Return Values</H2> 39<P>One of the following codes:</P> 40<P><code>CARD_RESULT_FATAL_ERROR<br> CARD_RESULT_NOCARD<br> CARD_RESULT_NOFILE<br> CARD_RESULT_NOPERM<br> CARD_RESULT_BUSY<br> CARD_RESULT_IOERROR<br> CARD_RESULT_READY</code></P> 41<H2>Description</H2> 42<P>Synchronously sets a file status using a file number. This function does not return until settings have been set.</P> 43<P><em><strong>Note:</strong></em> <code>stat->iconAddr</code> must be set to <code>0xffffffff</code> or less than <code>CARD_READ_SIZE</code>. At least one icon is required in a game file.</P> 44<P><em><strong>Note:</strong></em> The 64-byte comment data specified by <code>start->commentAddr</code> must not cross the 8-KB boundary of the file (i.e., the comment data must fit into one 8-KB block of the file).</P> 45<H2>See Also</H2> 46<P><a target="contents" href="card.html">Memory Card Functions</a>, <br> <a href="CARDStat.html"><code>CARDStat</code></a></P> 47<P><STRONG><STRONG>Note:</STRONG></STRONG> 48 This function is provided for debugging. Do not use in programs.</P> 49<H2>Revision History</H2> 50<P>03/01/2006 Initial version.</P> 51</BODY> 52</HTML>