1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META http-equiv="Content-Style-Type" content="text/css"> 6<TITLE>NWC24GetMsgSize</TITLE> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8</HEAD> 9<BODY> 10<H1>NWC24GetMsgSize</H1> 11 12<H2>C Specification</H2> 13<DL> 14<DD><PRE><CODE>#include <revolution/nwc24.h></CODE></PRE> 15<DD><PRE><CODE><A HREF="../Types/NWC24Err.html">NWC24Err</A> NWC24GetMsgSize( const <A HREF="../Types/NWC24MsgObj.html">NWC24MsgObj</A>* <EM>obj</EM>, u32* <EM>size</EM> );</CODE></PRE> 16</DL> 17 18<H2>Description</H2> 19<P> 20Returns the total size of the message. The value obtained with this function is the data size when the message is actually saved to the message box or sent/received, after MIME encoding of attached data has been done and headers have been added. 21</P> 22<P> 23When creating a new message, this value cannot be obtained until the message is committed by calling <A href="NWC24CommitMsg.html"><CODE>NWC24CommitMsg</CODE></A>. 24</P> 25 26<H2>Arguments</H2> 27<TABLE border="1" cellpadding="3" cellspacing="0.1"> 28 <TR> 29<TD width="120" bgcolor="#ffffe8"><code><em><strong>obj</strong></em></code></TD> 30 <TD width="520"> 31The message object from which settings are to be extracted. 32 </TD> 33 </TR> 34 <TR> 35<TD width="120" bgcolor="#ffffe8"><code><em><strong>size</strong></em></code></TD> 36 <TD width="520"> 37Pointer to the location storing the extracted information (the total size of the message). 38 </TD> 39 </TR> 40</TABLE> 41 42<h2>Return Values</h2> 43<P> 44<code>NWC24_OK</code>: Ended normally (value returned in *<code><em><strong>size</strong></em></code>).<BR> <code>NWC24_ERR_PROTECTED</code>: Either the message object could not be accessed, or the size was not determined because it was not yet committed. 45</P> 46 47<H2>See Also</H2> 48<P> 49<A href="NWC24CommitMsg.html"><CODE>NWC24CommitMsg</CODE></A> 50</P> 51 52<H2>Revision History</H2> 53<P>2007/01/30 Initial version.</P> 54 55<hr><p>CONFIDENTIAL</p></body> 56</HTML>