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>IsExpectedToReplySleepQuery</title>
8  </head>
9  <body>
10<h1><CODE>nn::applet::CTR::IsExpectedToReplySleepQuery</CODE> Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14bool IsExpectedToReplySleepQuery(
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 <CODE>true</CODE> if waiting for a reply. </div>
25<h2>Description</h2>
26    <div class="section">
27<p>Checks whether the sleep notification state is waiting for a reply.</p><!-- write here --><P>
28In other words, the state indicates that the sleep notification callback has returned <CODE>nn::applet::CTR::REPLY_LATER</CODE> and has not yet returned <CODE>nn::applet::CTR::REPLY_ACCEPT</CODE> or <CODE>nn::applet::CTR::REJECT</CODE>.
29</P><P>
30See the <a href="../../../nn/applet/CTR/GetSleepNotificationState.html"><CODE>nn::applet::CTR::GetSleepNotificationState</CODE></a> function reference for details on sleep notification states.
31</P><P>
32This function is an inline function that only checks whether the return value from the <a href="../../../nn/applet/CTR/GetSleepNotificationState.html"><CODE>nn::applet::CTR::GetSleepNotificationState</CODE></a> function is <CODE>nn::applet::CTR::NOTIFY_SLEEP_QUERY</CODE>, as in the code sample below.
33</P><PRE>
34    inline bool IsExpectedToReplySleepQuery(void)
35    {
36        return (GetSleepNotificationState() ==
37                nn::applet::CTR::NOTIFY_SLEEP_QUERY)
38                ? <CODE>true</CODE>: false;
39    }
40</PRE></div>
41<h2>Revision History</h2>
42    <div class="section">
43      <dl class="history">
44        <dt>2010/12/01</dt>
45<dd>Initial version.<br />
46        </dd>
47      </dl>
48    </div>
49  <hr><p>CONFIDENTIAL</p></body>
50</html>