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><SUP></SUP>
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,
16     u8 * pParam = NULL,
17     size_t paramSize = 0,
18     s32 * 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 state. </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 application must decide how to respond based on this value (whether to resume normally or exit).</p><p>If a value of <CODE>nn::applet::CTR::WAKEUP_BY_CANCEL</CODE> is received, promptly exit the application.</p><p>For any other value, resume the application normally.</p></div>
70  <hr><p>CONFIDENTIAL</p></body>
71</html>