1<html> 2 3<head> 4<META http-equiv="Content-Type" content="text/html; charset=utf-8"> 5<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<title>OSIsTitleInstalled</title> 9</head> 10 11<body> 12 13<h1>OSIsTitleInstalled</h1> 14 15<h2>Syntax</h2> 16 17<dl> 18 <dd><pre><code>#include <revolution/discnand.h></code></pre> 19 </dd> 20 <dd><pre><code>#define OSTITLE_STACK_SIZE 2048</code></pre></dd> 21 <dd><pre><code>BOOL OSIsTitleInstalled(OSTitleId <i>titleId</i>);</code></pre> 22 </dd> 23</dl> 24<h2>Arguments</h2> 25 26<table border="1" cellpadding="3" cellspacing="0"> 27 <tr> 28<td width="120" bgcolor="#ffffe8"><code><b><i>titleId</i></b></code></td> 29<td width="520">Title ID of the NAND application you want to check.</td> 30 </tr> 31</table> 32 33<h2>Return Values</h2> 34<p>Returns <CODE>TRUE</CODE> if the NAND application has been installed in an executable state.</p> 35<h2>Description</h2> 36<P> 37Checks to see whether the specified NAND application has been installed in an executable state. The function prepares a buffer of sufficient size in the stack for a normal NAND application (as defined by the macro constant <CODE>OSTITLE_STACK_SIZE</CODE>) and then executes <a href="OSGetTitleStatus.html"><code>OSGetTitleStatus</code></a>. The function will return <CODE>TRUE</CODE> only if <CODE>OSGetTitleStatus</CODE> returns <code>OSTITLE_RESULT_OK</code> and the application state is <code>OSTITLE_STATUS_INSTALLED</code>. If the function returns <CODE>FALSE</CODE>, it may be because the process has failed, so be aware that the return of <CODE>FALSE</CODE> does not necessarily mean that the NAND application is not installed. 38</P> 39<P> 40A large buffer is secured from the stack, so if this is difficult to work, use the <a href="OSGetTitleStatus.html"><code>OSGetTitleStatus</code></a> function to pass memory secured by the application. 41</P> 42 43<h2>See Also</h2> 44<p><a href="OSGetTitleStatus.html">OSGetTitleStatus</a> 45<H2>Revision History</H2> 46<P> 472009/10/16 Changed the <CODE>include</CODE> file.<BR> 2007/07/18 Changed <B>Description</B> and added <CODE>OSGetTitleStatus</CODE>.<BR> 2007/04/20 Initial version. 48</P> 49<hr><p>CONFIDENTIAL</p></body> 50</html>