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>ProcessPowerButton</title> 8 </head> 9 <body> 10 <h1><CODE>nn::applet::CTR::ProcessPowerButton</CODE> Function</h1> 11 <h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14bool ProcessPowerButton( 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 a value indicating whether it is necessary to wait. </div> 25 <h2>Description</h2> 26 <div class="section"> 27 <p>Processes POWER Button transitions.</p><!-- write here --><P> 28 This function is used to handle POWER Button transitions when this is required by the <a href="../../../nn/applet/CTR/IsExpectedToProcessPowerButton.html"><CODE>nn::applet::CTR::IsExpectedToProcessPowerButton</CODE></a> function. 29</P><P> 30 The return value indicates whether it is necessary to wait with the <a href="../../../nn/applet/CTR/WaitForStarting.html"><CODE>nn::applet::CTR::WaitForStarting</CODE></a> function after this function is called. If this is <CODE>true</CODE>, call the function. If this is <CODE>false</CODE>, you do not need to call the function. (Of course, even if you call the function it will simply exit without waiting.) 31</P><P> 32 Example 33</P><PRE> 34 if ( applet::IsExpectedToProcessPowerButton() ) 35 { 36 <FONT color="red">applet::ProcessPowerButton();</FONT> 37 applet::WaitForStarting(); 38 if ( applet::IsExpectedToCloseApplication() ) 39 { 40 _close_application(); 41 } 42 } 43</PRE></div> 44 <h2>Revision History</h2> 45 <div class="section"> 46 <dl class="history"> 47 <dt>2010/12/09</dt> 48 <dd>Initial version.<br /> 49 </dd> 50 </dl> 51 </div> 52 <hr><p>CONFIDENTIAL</p></body> 53</html>