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>PostNews</title> 8 </head> 9 <body> 10<h1><CODE><a href="../../../../nn/Overview.html">nn</a>::<a href="../../../../nn/news/Overview.html">news</a>::<a href="../../../../nn/news/CTR/Overview.html">CTR</a>::<a href="../../../../nn/news/CTR/user/Overview.html">user</a>::PostNews</CODE> Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14<a href="../../../../nn/Result/Overview.html">Result</a> PostNews( 15 const wchar_t * subject, 16 const wchar_t * message, 17 const <a href="../../../../nn_types/u8.html">u8</a> * picture = NULL, 18 size_t pictureSize = 0, 19 <a href="../../../../nn_types/u32.html">u32</a> serialId = 0, 20 <a href="../../../../nn_types/u32.html">u32</a> dataVersion = 0, 21 <a href="../../../../nn_types/u64.html">u64</a> jumpParam = 0 22); 23</pre> 24 </div> 25<h2>Parameters</h2> 26 <div class="section"> 27 <table class="arguments"> 28 <thead> 29 <tr> 30 <td width="15" /> 31<th>Name</th> 32<td>Description</td> 33 </tr> 34 </thead> 35 <tr> 36<td>in</td> 37<th>subject</th> 38<td>Specifies the subject. Use a UTF16-LE string of up to <CODE>SUBJECT_LEN</CODE> characters (including the NULL terminator). Data is copied within the function.</td> 39 </tr> 40 <tr> 41<td>in</td> 42<th>message</th> 43<td>Specifies the message. Use a UTF16-LE string of up to <CODE>MESSAGE_LEN</CODE> characters (including the NULL terminator). Data is copied within the function.</td> 44 </tr> 45 <tr> 46<td>in</td> 47<th>picture</th> 48<td>Specifies an image. Use a format of <a href="../../../../nn/jpeg/Overview.html">JPEG</a> or MPO (two JPEG images) and a size of 400 x 240 pixels. Data is copied within the function.</td> 49 </tr> 50 <tr> 51<td>in</td> 52<th>pictureSize</th> 53<td>Specifies a size for the image, using a value equal to or less than <CODE>PICTURE_SIZE</CODE>.</td> 54 </tr> 55 <tr> 56<td>in</td> 57<th>serialId</th> 58<td>Specifies the Notification serial ID. For now, always specify <CODE>0</CODE>.</td> 59 </tr> 60 <tr> 61<td>in</td> 62<th>dataVersion</th> 63<td>Specifies the Notification data version. For now, always specify <CODE>0</CODE>.</td> 64 </tr> 65 <tr> 66<td>in</td> 67<th>jumpParam</th> 68<td>Specifies the jump parameter. You can get this value when the application was started from the Notifications applet.</td> 69 </tr> </table> 70 </div> 71<h2>Return Values</h2> 72<div class="section">Returns the result of the operation. </div> 73<h2>Description</h2> 74 <div class="section"> 75<p>Posts a message.</p><!-- write here --></div> 76<h2>Revision History</h2> 77 <div class="section"> 78 <dl class="history"> 79 <dt>2011/04/07</dt> 80<dd>Added parameter for jumping from Notifications to application (details will be added when application jump specifications are published).<br /> 81 </dd> 82 <dt>2010/11/10</dt> 83<dd>Initial version.<br /> 84 </dd> 85 </dl> 86 </div> 87 <hr><p>CONFIDENTIAL</p></body> 88</html>