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<TITLE>CNTChangeDir</TITLE>
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8</HEAD>
9<BODY>
10<H1>CNTChangeDir</H1>
11
12<H2>Syntax</H2>
13<DL>
14  <DD>
15  <PRE><CODE>#include &lt;revolution/cnt.h&gt;</CODE></PRE>
16  <DD><CODE>BOOL CNTChangeDir(CNTHandle* <EM>handle</EM>, const char* <EM>dirName</EM>);</CODE>
17</DL>
18<H2>Arguments</H2>
19<TABLE border="1" width="100%">
20  <TBODY>
21    <TR>
22      <TD><EM><STRONG><CODE>handle</CODE></STRONG></EM></TD>
23      <TD>Pointer to <CODE>CNTHandle</CODE> structure.</TD>
24    </TR>
25    <TR>
26      <TD><EM><STRONG><CODE>dirName</CODE></STRONG></EM></TD>
27      <TD>Directory to be changed.</TD>
28    </TR>
29  </TBODY>
30</TABLE>
31<H2>Return Values</H2>
32<P>Returns <code>CNT_RESULT_OK</code> when the process ends normally. Returns <code>CNT_RESULT_INVALID</code> if the specified path does not exist, or if the specified path is not a directory.</P>
33<H2>Description</H2>
34<P>This function changes the current directory of the <CODE>CNTHandle</CODE> structure. Any relative path specified with <A href="CNTOpen.html"><CODE>CNTOpen</CODE></A> after this change is assumed to be a relative path from the new current directory of <CODE>CNTHandle</CODE>.</P>
35<H2>See Also</H2>
36<P><CODE><A href="CNTOpen.html">CNTOpen</A></CODE></P>
37<H2>Revision History</H2>
38<p>
392006/12/04 Added result code descriptions.<br>2006/09/08 Initial version.
40</p>
41<hr><p>CONFIDENTIAL</p></body>
42</HTML>