1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<title>NANDSetStatus</title>
9</head>
10
11<body>
12
13<h1>NANDSetStatus</h1>
14
15<h2>C Specification</h2>
16<dl><dd><pre><code>
17#include &lt;revolution/nand.h&gt;
18
19s32 NANDSetStatus( const char *path, const NANDStatus *stat );
20</code></pre></dd></dl>
21
22<h2>Arguments</h2>
23<p>
24<TABLE border="1" >
25  <tr>
26<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>path</EM></STRONG></CODE></TD>
27<TD width="520">Specifies the path of the target file or directory.</TD>
28  </tr>
29  <tr>
30<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>stat</EM></STRONG></CODE></TD>
31<TD width="520">Pointer to a NANDStatus structure.</TD>
32  </tr>
33</TABLE>
34</p>
35
36<h2>Return Values</h2>
37<p>
38Returns one of the following codes:
39<p>
40<code>NAND_RESULT_OK<br> NAND_RESULT_ACCESS<br> NAND_RESULT_CORRUPT<br> NAND_RESULT_INVALID<br> NAND_RESULT_NOEXISTS<br> NAND_RESULT_NOTEMPTY<br> NAND_RESULT_UNKNOWN<br> NAND_RESULT_FATAL_ERROR<br></code>
41</p>
42</p>
43
44<H2>Description</H2>
45<p>
46Sets the status of the specified file or directory. This operation cannot be performed on a file or directory that has an owner ID which is different from the owner ID of the application program. If this operation is performed on a file, the size of the file must be zero.
47</p>
48
49<h2>See Also</h2>
50<p>
51<code><a href="./NANDStatus.html">NANDStatus</a></code>, <code><a href="./NANDGetStatus.html">NANDGetStatus</a></code>, <code><a href="./NANDGetStatusAsync.html">NANDGetStatusAsync</a></code>, <code><a href="./NANDSetStatusAsync.html">NANDSetStatusAsync</a></code>
52</p>
53
54<H2>Revision History</H2>
55<p>06/16/2006 Initial version.</p>
56
57</body>
58</html>
59