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>WaitForStarting</title> 8 </head> 9 <body> 10<h1><CODE>nn::applet::CTR::WaitForStarting</CODE> Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14<a href="../../../nn/applet/CTR/WakeupState.html">AppletWakeupState</a> WaitForStarting( 15<a href="../../../nn/applet/CTR/AppletId.html">AppletId</a> * pSenderId = NULL, 16u8 * pParam = NULL, 17size_t paramSize = 0, 18s32 * pReadLen = NULL, 19<a href="../../../nn/Handle/Overview.html">nn::Handle</a> * pHandle = NULL, 20<a href="../../../nn/fnd/TimeSpan/Overview.html">nn::fnd::TimeSpan</a> timeout = NN_APPLET_WAIT_INFINITE 21); 22</pre> 23 </div> 24<h2>Arguments</h2> 25 <div class="section"> 26 <table class="arguments"> 27 <thead> 28 <tr> 29 <td width="15" /> 30<th>Name</th> 31<td>Description</td> 32 </tr> 33 </thead> 34 <tr> 35<td>out</td> 36<th>pSenderId</th> 37<td>ID of the Applet that sent the event.</td> 38 </tr> 39 <tr> 40<td>out</td> 41<th>pParam</th> 42<td>Parameter buffer.</td> 43 </tr> 44 <tr> 45<td>in</td> 46<th>paramSize</th> 47<td>Parameter buffer size.</td> 48 </tr> 49 <tr> 50<td>out</td> 51<th>pReadLen</th> 52<td>Amount of data to read.</td> 53 </tr> 54 <tr> 55<td>out</td> 56<th>pHandle</th> 57<td>Handler.</td> 58 </tr> 59 <tr> 60<td>in</td> 61<th>timeout</th> 62<td>Timeout interval.</td> 63 </tr> </table> 64 </div> 65<h2>Return Values</h2> 66<div class="section">Returns the reason that processing was resumed. </div> 67<h2>Description</h2> 68 <div class="section"> 69<p>Waits for this object's start event.</p><p>This function returns until the start event is received. This function returns a value from the <CODE>AppletWakeupState</CODE> enumerated type. The program must decide how to respond based on this value (whether to resume normally or exit).</p><p>For example, the application must be closed immediately when <CODE>nn::applet::CTR::WAKEUP_BY_CANCEL</CODE> is received.</p><p>When a press of the POWER button is detected (when <a href="../../../nn/applet/CTR/IsExpectedToProcessPowerButton.html">IsExpectedToProcessPowerButton()</a> == true) the application must be exited, regardless of the return value. </p><p>Also, if the application continues running after the button press, to release the HOME button transition lock and other transition locks, the <a href="../../../nn/applet/CTR/ClearHomeButtonState.html">ClearHomeButtonState()</a> function must be called. (See the <a href="../../../nn/applet/CTR/ClearHomeButtonState.html">ClearHomeButtonState()</a> topic for details.)</p><!-- write here --></div> 70<h2>Revision History</h2> 71 <div class="section"> 72 <dl class="history"> 73 <dt>2010/11/10</dt> 74<dd>Initial version.<br /> 75 </dd> 76 </dl> 77 </div> 78 <hr><p>CONFIDENTIAL</p></body> 79</html>