1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
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    <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" />
7<title>PrepareToCloseApplication</title>
8  </head>
9  <body>
10<h1><CODE><a href="../../../nn/Overview.html">nn</a>::<a href="../../../nn/applet/Overview.html">applet</a>::<a href="../../../nn/applet/CTR/Overview.html">CTR</a>::PrepareToCloseApplication</CODE> Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14<a href="../../../nn/Result/Overview.html">Result</a> PrepareToCloseApplication(
15     void
16);
17</pre>
18    </div>
19<h2>Parameters</h2>
20    <div class="section">
21<p>None.</p>
22    </div>
23<h2>Return Values</h2>
24<div class="section">Returns the function's execution result. Returns one of the <a href="../../../nn/Result/Overview.html"><CODE>Result</CODE></A> values listed below. <br />
25      <table class="arguments">
26        <thead>
27          <tr>
28<th>Value</th>
29<td>Description</td>
30          </tr>
31        </thead>
32        <tr>
33<th><CODE>Result::IsSuccess</CODE></th>
34<td>Process was successful.</td>
35        </tr>
36      </table> </div>
37<h2>Description</h2>
38    <div class="section">
39<p>Prepares to exit a program.</p><!-- write here --><P><B>It is not necessary to use this function because it is called automatically as needed from within <CODE><a href="../../../nn/applet/CTR/CloseApplication.html">nn::applet::CTR::CloseApplication</a></CODE>.</B></P><P>
40This function loads the relevant data if the data has not been loaded when control transitions to the system side such as the HOME Menu.
41</P><P>
42Then call the <a href="../../../nn/applet/CTR/CloseApplication.html"><CODE>nn::applet::CTR::CloseApplication</CODE></a> function after this one to exit the program.
43</P><P>
44There is no need to check the return value because this function always succeeds.
45</P></div>
46<h2>Revision History</h2>
47    <div class="section">
48      <dl class="history">
49        <dt>2011/02/25</dt>
50<dd>Added note about automatic call within <CODE><a href="../../../nn/applet/CTR/CloseApplication.html">nn::applet::CTR::CloseApplication</a></CODE>.<br />
51        </dd>
52        <dt>2011/02/24</dt>
53<dd>Revised information about return value<br />
54        </dd>
55        <dt>2010/12/01</dt>
56<dd>Added description of failure.<br />
57        </dd>
58        <dt>2010/11/10</dt>
59<dd>Initial version.<br />
60        </dd>
61      </dl>
62    </div>
63  <hr><p>CONFIDENTIAL</p></body>
64</html>
65