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=utf-8">
5<META http-equiv="Content-Style-Type" content="text/css">
6<TITLE>CNTGetCurrentDir</TITLE>
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8</HEAD>
9<BODY>
10<H1>CNTGetCurrentDir</H1>
11
12<H2>Syntax</H2>
13<DL>
14  <DD>
15  <PRE><CODE>#include <revolution/cnt.h></CODE></PRE>
16<DD><CODE>s32 CNTGetCurrentDir(CNTHandle* <EM>handle</EM>, char* <EM>path</EM>, u32 <EM>maxlen</EM>);</CODE>
17</DL>
18<H2>Arguments</H2>
19<TABLE class="arguments" border="1" width="100%">
20  <TBODY>
21    <TR>
22<TH><EM><STRONG><CODE>handle</CODE></STRONG></EM></TH>
23<TD>Pointer to <CODE>CNTHandle</CODE> structure.</TD>
24    </TR>
25    <TR>
26<TH><EM><STRONG><CODE>path</CODE></STRONG></EM></TH>
27<TD>Pointer to the buffer storing the current directory path.</TD>
28    </TR>
29    <TR>
30<TH><EM><STRONG><CODE>maxlen</CODE></STRONG></EM></TH>
31<TD>The buffer size.</TD>
32    </TR>
33  </TBODY>
34</TABLE>
35<H2>Return Values</H2>
36<P>Returns <CODE>CNT_RESULT_OK</CODE> if the path is obtained successfully.</P>
37<H2>Description</H2>
38<P>Gets the current directory inside the <CODE>CNTHandle</CODE> structure.</P>
39<H2>See Also</H2>
40<P><A href="CNTChangeDir.html"><CODE>CNTChangeDir</CODE></A></P>
41<H2>Revision History</H2>
42<P>
432006/12/12 Removed the restriction on path length.<br> 2006/09/08 Initial version.
44</P>
45<hr><p>CONFIDENTIAL</p></body>
46</HTML>