1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html xmlns="http://www.w3.org/1999/xhtml"> 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>FS_OpenTopLevelDirectory</title> 7<link rel="stylesheet" href="../../css/nitro.css" type="text/css" /> 8</head> 9<body> 10 11<h1>FS_OpenTopLevelDirectory <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></h1> 12<h2>Syntax</h2> 13<pre><code> 14#include <nitro/fs.h> 15 16BOOL FS_OpenTopLevelDirectory(<a href="../fs_file_type.html">FSFile</a> *dir); 17</code></pre> 18 19<h2>Arguments</h2> 20<table style="width:100%"> 21<tbody> 22<tr> 23<td style="width:13%"><CODE>dir</CODE></td> 24<td style="width:87%">The <CODE>FSFile</CODE> structure where the handle is stored.</td> 25</tr> 26</tbody> 27</table> 28 29<h2>Return Values</h2> 30<p>This function always succeeds and returns TRUE.</p> 31 32<h2>Description</h2> 33<p>Opens the top-level directory that contains a list of the usable archive names.<br /> If you call the <a href="FS_ReadDirectory.html"><code>FS_ReadDirectory</code></a> function for the directory handler retrieved with this function, the archives that are currently mounted into the program are returned one at a time. The name of the mounted archive has a colon appended (for example, <I>rom:</I>).</p> 34 35<h2>Notes</h2> 36<ul> 37<li>This function cannot be called from the interrupt handler (IRQ mode). Also note that in some cases processing may not end if interrupts are disabled.</li> 38</ul> 39 40<h2>See Also</h2> 41<p><code><a href="../fs_file_type.html">FSFile</a> <br /> <a href="FS_ReadDirectory.html">FS_ReadDirectory</a><br /> <a href="FS_CloseDirectory.html">FS_CloseDirectory</a></code></p> 42 43<h2>Revision History</h2> 44<p> 452008/12/04 Initial version. 46</p> 47<hr><p>CONFIDENTIAL</p></body> 48</html> 49