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<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<TITLE>CARDSetAttributesAsync</TITLE>
9</HEAD>
10<BODY>
11<H1>CARDSetAttributesAsync</H1>
12<H2>C Specification</H2>
13<DL>
14  <DD>
15<PRE><code>#include &lt;revolution/card.h&gt;
16
17#define CARD_ATTR_PUBLIC        0x04u  // Any program can read the file
18#define CARD_ATTR_NO_COPY       0x08u  // IPL cannot copy the file
19#define CARD_ATTR_NO_MOVE       0x10u  // IPL cannot move the file
20
21typedef void (*CARDCallback)( s32 chan, s32 result );
22
23s32 CARDSetAttributesAsync( s32 chan, s32 fileNo, u8 attr, CARDCallback callback );</code></PRE>
24</DL>
25<H2>Arguments</H2>
26<TABLE border="1" cellpadding="3" cellspacing="0.1">
27  <TBODY>
28    <TR>
29<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><code>chan</code></EM></STRONG></CODE></STRONG></EM></TD>
30<TD width="520">EXI channel number.</TD>
31    </TR>
32    <TR>
33<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><em><strong><code>fileNo</code></strong></em></CODE></STRONG></EM></TD>
34<TD width="520">File entry number.</TD>
35    </TR>
36    <TR>
37<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><code>attr</code></EM></STRONG></CODE></STRONG></EM></TD>
38<TD width="520">Attributes to set.</TD>
39    </TR>
40    <TR>
41<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><EM><STRONG><CODE>callback</CODE></STRONG></EM></CODE></STRONG></EM></TD>
42<TD width="520">Callback function to notify about the result.</TD>
43    </TR>
44  </TBODY>
45</TABLE>
46<H2>Return Values</H2>
47<P>One of the following codes:</P>
48<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_READY</CODE></P>
49<H2>Description</H2>
50<P>Asynchronously sets file attributes using a file number.</P>
51<P>By default, only the <code>CARD_ATTR_PUBLIC</code> bit is set to a Memory Card file created by the <code><a href="CARDCreate.html">CARDCreate</a></code>/<code><a href="CARDCreateAsync.html">CARDCreateAsync</a></code> function. <STRONG>The <code>CARD_ATTR_PUBLIC</code> must not be cleared by a game program.</STRONG></P>
52
53<P>A game program can set a <code>CARD_ATTR_NO_COPY</code> bit and/or <code>CARD_ATTR_NO_MOVE</code> bit if required.<strong>A game program must not modify any other bits.</strong></P>
54<P><STRONG>Note:</STRONG>
55 This function is provided for debugging. Do not use in programs.</P>
56<H2>See Also</H2>
57<P><a target="contents" href="card.html">Memory Card Functions</a>, <br> <a href="CARDGetAttributes.html"><code>CARDGetAttributes</code></a>, <a href="CARDSetAttributes.html"><code>CARDSetAttributes</code></a></P>
58<H2>Revision History</H2>
59<P>03/01/2006 Initial version.</P>
60</BODY>
61</HTML>