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>WriteMessage</title>
8  </head>
9  <body>
10<h1><CODE>nn::cec::CTR::MessageBox::WriteMessage</CODE> Member Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14<a href="../../../../nn/Result/Overview.html"><CODE>nn::Result</CODE></a> WriteMessage(
15const <a href="../../../../nn/cec/CTR/Message/Overview.html">Message</a> & cecMessage,
16const <a href="../../../../nn/cecd/CTR/CecBoxType.html"><CODE>CecBoxType</CODE></a> boxType,
17<a href="../../../../nn/cec/CTR/MessageId/Overview.html">MessageId</a> & messageIdOut
18);
19
20<a href="../../../../nn/Result/Overview.html"><CODE>nn::Result</CODE></a> WriteMessage(
21const <a href="../../../../nn/cec/CTR/Message/Overview.html">Message</a> & cecMessage,
22const <a href="../../../../nn/cecd/CTR/CecBoxType.html"><CODE>CecBoxType</CODE></a> boxType,
23<a href="../../../../nn/cec/CTR/MessageId/Overview.html">MessageId</a> & messageIdOut,
24bool withWriteBoxInfo
25);
26</pre>
27    </div>
28<h2>List of Overloaded Member Functions</h2>
29    <div class="section">
30      <table class="members">
31        <tr>
32          <td>
33<a href="./WriteMessage(0).html">WriteMessage ( const Message &, const CecBoxType, MessageId & ) </a>
34          </td>
35<td>Writes a <a href="../../../../nn/cec/CTR/Message/Overview.html">message</a> to the system save region.</td>
36        </tr>
37        <tr>
38          <td>
39<a href="./WriteMessage(1).html">WriteMessage ( const Message &, const CecBoxType, MessageId &, bool ) </a>
40          </td>
41<td>Writes a <a href="../../../../nn/cec/CTR/Message/Overview.html">message</a> to the system save region.</td>
42        </tr> </table>
43    </div>
44<h2>Description of <CODE>WriteMessage ( const Message &, const CecBoxType, MessageId & )</CODE></h2>
45<div class="section"><p>The message cannot be written if its size is larger than 100 KB or if writing it would exceed the box's maximum storage capacity or maximum number of messages. After writing, the written data is committed after <CODE>CloseMessageBox</CODE> or <CODE>CommitMessageBox</CODE> are called. <br /> When the function writes the message, it checks the EULA agreement version, and if the icon file is not configured, the function returns <a href="../../../../nn/cec/ResultNotAgreeEula/Overview.html">ResultNotAgreeEula</a>. <br />You must initialize the FS library before calling this function because this function uses the <a href="../../../../nn/fs/Overview.html">FS</a> library to check the EULA.</p></div>
46<h2>Description of <CODE>WriteMessage ( const Message &, const CecBoxType, MessageId &, bool )</CODE></h2>
47<div class="section"><p>The message cannot be written if its size is larger than 100 KB or if writing it would exceed the box's maximum storage capacity or maximum number of messages. After writing, the written data is committed when <CODE>CloseMessageBox</CODE> or <CODE>CommitMessageBox</CODE> is called. If you set <SPAN class="argument">withWriteBoxInfo</SPAN> equal to <CODE>false</CODE>, updates to the internal message list are skipped. This allows you to shorten the amount of time taken to write multiple consecutive messages. Note that the <CODE>GetMessageBoxXXX</CODE> functions are unable to get accurate information if the list has not been updated. <br /> When the function writes the message, it checks the EULA agreement version, and if the icon file is not configured, the function returns <a href="../../../../nn/cec/ResultNotAgreeEula/Overview.html">ResultNotAgreeEula</a>. <br />You must initialize the FS library before calling this function because this function uses the <a href="../../../../nn/fs/Overview.html">FS</a> library to check the EULA.</p></div>
48  <hr><p>CONFIDENTIAL</p></body>
49</html>