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>chan</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>callback</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>Only the <code>CARD_ATTR_PUBLIC</code> bit is set to a memory card file created by <code><a href="CARDCreate.html">CARDCreate</a></code>/<code><a href="CARDCreateAsync.html">CARDCreateAsync</a></code>. <em><strong>The <code>CARD_ATTR_PUBLIC</code> must not be turned off </strong></em> <i><b>by a game program</b></i><em><strong>.</strong></em></P>
52
53<P>A game program can set <code>CARD_ATTR_NO_COPY</code> and/or <code>CARD_ATTR_NO_MOVE</code> bits if required.<strong>A game program must not modify any other bits.</strong></P>
54<P><STRONG><B>Note:</B></STRONG>This function is provided for debugging purposes. Applications should not use this function.</P>
55<H2>See Also</H2>
56<P><a target="contents" href="toc.html">Card Functions</a>, <br> <a href="CARDGetAttributes.html"><code>CARDGetAttributes</code></a>, <a href="CARDSetAttributes.html"><code>CARDSetAttributes</code></a></P>
57<H2>Revision History</H2>
58<P>2006/03/01 Initial version.</P>
59<hr>
60<P>CONFIDENTIAL</p>
61</BODY>
62</HTML>