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>PostNewsUrl</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>::PostNewsUrl</CODE> Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14<a href="../../../../nn/Result/Overview.html">Result</a> PostNewsUrl( 15 const wchar_t * subject, 16 const wchar_t * message, 17 const <a href="../../../../nn_types/u8.html">u8</a> * url, 18 <a href="../../../../nn_types/u8.html">u8</a> * workBuf, 19 const <a href="../../../../nn_types/u8.html">u8</a> * picture = NULL, 20 size_t pictureSize = 0, 21 <a href="../../../../nn_types/u32.html">u32</a> serialId = 0, 22 <a href="../../../../nn_types/u32.html">u32</a> dataVersion = 0, 23 <a href="../../../../nn_types/u64.html">u64</a> jumpParam = 0 24); 25</pre> 26 </div> 27<h2>Parameters</h2> 28 <div class="section"> 29 <table class="arguments"> 30 <thead> 31 <tr> 32 <td width="15" /> 33<th>Name</th> 34<td>Description</td> 35 </tr> 36 </thead> 37 <tr> 38<td>in</td> 39<th>subject</th> 40<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> 41 </tr> 42 <tr> 43<td>in</td> 44<th>message</th> 45<td>Specifies the message body. Use UTF-16LE and keep the string length within MESSAGE_LEN (including the null terminator). The buffer size of this and <SPAN class="argument">url</SPAN> combined must be 6,000 bytes or smaller. Data are copied internally by function.</td> 46 </tr> 47 <tr> 48<td>in</td> 49<th>url</th> 50<td>Specifies the URL. Use UTF-8 and keep the string length within MESSAGE_URL_URL_SIZE (including the null terminator). The buffer size of this and <SPAN class="argument">message</SPAN> combined must be 6,000 bytes or smaller. Data are copied internally by function.</td> 51 </tr> 52 <tr> 53<td>in</td> 54<th>workBuf</th> 55<td>Specifies the work buffer for posting a notification that has an embedded URL. Calculate the size using <CODE>GetWorkBufferSizeForNewUrl</CODE>.</td> 56 </tr> 57 <tr> 58<td>in</td> 59<th>picture</th> 60<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> 61 </tr> 62 <tr> 63<td>in</td> 64<th>pictureSize</th> 65<td>Specifies a size for the image, using a value equal to or less than <CODE>PICTURE_SIZE</CODE>.</td> 66 </tr> 67 <tr> 68<td>in</td> 69<th>serialId</th> 70<td>Specifies the Notification serial ID. For now, always specify <CODE>0</CODE>.</td> 71 </tr> 72 <tr> 73<td>in</td> 74<th>dataVersion</th> 75<td>Specifies the Notification data version. For now, always specify <CODE>0</CODE>.</td> 76 </tr> 77 <tr> 78<td>in</td> 79<th>jumpParam</th> 80<td>Specifies the jump parameter. You can get this value when the application was started from the Notifications applet.</td> 81 </tr> </table> 82 </div> 83<h2>Return Values</h2> 84<div class="section">Returns the result of the operation. </div> 85<h2>Description</h2> 86 <div class="section"> 87<p>Posts a notification with an embedded URL.</p><!-- write here --></div> 88<h2>Revision History</h2> 89 <div class="section"> 90 <dl class="history"> 91 <dt>2011/09/29</dt> 92<dd>Changed the function arguments.<br /> 93 </dd> 94 <dt>2011/09/16</dt> 95<dd>Initial version.<br /> 96 </dd> 97 </dl> 98 </div> 99 <hr><p>CONFIDENTIAL</p></body> 100</html>