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>nn::applet::CTR::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>Arguments</h2>
20    <div class="section">
21<p>None.</p>
22    </div>
23<h2>Return Values</h2>
24<div class="section">Returns the result of the operation. </div>
25<h2>Description</h2>
26    <div class="section">
27<p>Prepares to exit a program.</p><!-- write here --><P>
28This function loads the relevant data if the data has not been loaded when control transitions to the system side such as the HOME Menu.
29</P><P>
30Then call the <a href="../../../nn/applet/CTR/CloseApplication.html"><CODE>nn::applet::CTR::CloseApplication</CODE></a> function after this one to exit the program.
31</P><P>
32However, if this function's return value indicates failure, do not call <a href="../../../nn/applet/CTR/CloseApplication.html"><CODE>nn::applet::CTR::CloseApplication</CODE></a>.
33</P><P>
34Failure could be due to a bug in the program, the HOME Menu not existing, or some other development mistake.
35</P></div>
36<h2>Revision History</h2>
37    <div class="section">
38      <dl class="history">
39        <dt>2010/12/01</dt>
40<dd>Added description of failure.<br />
41        </dd>
42        <dt>2010/11/10</dt>
43<dd>Initial version.<br />
44        </dd>
45      </dl>
46    </div>
47  <hr><p>CONFIDENTIAL</p></body>
48</html>
49