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>CARDSetAttributes</TITLE> 9</HEAD> 10<BODY> 11<H1>CARDSetAttributes</H1> 12<H2>C Specification</H2> 13<DL> 14 <DD> 15<PRE><code>#include <revolution/card.h> 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 21s32 CARDSetAttributes( s32 chan, s32 fileNo, u8 attr );</code></PRE> 22</DL> 23<H2>Arguments</H2> 24<TABLE border="1" cellpadding="3" cellspacing="0.1"> 25 <TBODY> 26 <TR> 27<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><code>chan</code></EM></STRONG></CODE></STRONG></EM></TD> 28<TD width="520">EXI channel number.</TD> 29 </TR> 30 <TR> 31<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><em><strong><code>fileNo</code></strong></em></CODE></STRONG></EM></TD> 32<TD width="520">File entry number.</TD> 33 </TR> 34 <TR> 35<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><code>attr</code></EM></STRONG></CODE></STRONG></EM></TD> 36<TD width="520">Attributes to set.</TD> 37 </TR> 38 </TBODY> 39</TABLE> 40<H2>Return Values</H2> 41<P>One of the following codes:</P> 42<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> 43<H2>Description</H2> 44<P>Synchronously sets file attributes using a file number.</P> 45<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> or <code><a href="CARDCreateAsync.html">CARDCreateAsync</a></code> functions. <STRONG>The <code>CARD_ATTR_PUBLIC</code> must not be cleared by a game program.</STRONG></P> 46 47<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> 48<P><STRONG><STRONG>Note:</STRONG>This function is provided for debugging. Do not use in programs.</P> 49<H2>See Also</H2> 50<P><a target="contents" href="card.html">Memory Card Functions</a>, <br> <a href="CARDGetAttributes.html"><code>CARDGetAttributes</code></a>, <a href="CARDSetAttributesAsync.html"><code>CARDSetAttributesAsync</code></a></P> 51<H2>Revision History</H2> 52<P>03/01/2006 Initial version.</P> 53</BODY> 54</HTML>