<div class="content"><p>The BytesInJournal method is received by the server in an
RPC_REQUEST packet. In response, the server MUST return the <a href="../ms-mqdmpr/2e026a09-999e-478f-8c4c-5344b661e579" data-linktype="relative-path">Queue</a>.TotalBytes
of the Queue that is associated with the represented
Queue.JournalQueueReference.</p><dl>
<dd>
<div><pre> [propget] HRESULT BytesInJournal(
   [out, retval] VARIANT* pvBytesInJournal
 );
</pre></div>
</dd></dl><p><b>pvBytesInJournal: </b>A pointer to a <a href="3b7be3f7-651c-4f9c-930b-a9a7c4355ad8#gt_a3af3eaf-64b7-499b-a95f-193cd4c27812" data-linktype="relative-path">VARIANT</a> that, when
successfully completed, contains an unsigned 64-bit integer (VT_UI8) that
specifies the number of <a href="3b7be3f7-651c-4f9c-930b-a9a7c4355ad8#gt_85c78cf0-1fb6-4e5d-85f5-a2e9f58a6b9e" data-linktype="relative-path">message</a>
bytes in the Queue that is associated with the represented
Queue.JournalQueueReference.</p><p><b>Return Values: </b>The method MUST return S_OK
(0x00000000) to indicate success or an implementation-specific error <a href="../ms-dtyp/a9046ed2-bfb2-4d56-a719-2824afce59ac" data-linktype="relative-path">HRESULT</a>
on failure.</p><p>When the <a href="3b7be3f7-651c-4f9c-930b-a9a7c4355ad8#gt_434b0234-e970-4e8c-bdfa-e16a30d96703" data-linktype="relative-path">server</a>
processes this call, it MUST follow these guidelines:</p><ul><li><p><span><span> 
</span></span>If the <b>ObjectIsInitialized</b> instance variable is False:</p>
<ul><li><p><span><span>  </span></span>The
server MUST return MQ_ERROR_UNINITIALIZED_OBJECT (0xC00E0094), and MUST take no
further action.</p>
</li></ul></li><li><p><span><span> 
</span></span>The server MUST generate a <b>QMMgmt Get Info</b> event with the
following inputs:</p>
<ul><li><p><span><span>  </span></span><b>iPropID</b>
= PROPID_MGMT_QUEUE_BYTES_IN_JOURNAL</p>
</li><li><p><span><span>  </span></span>If
the <b>rStatus</b> return value is not equal to MQ_OK (0x00000000), the server
MUST return <b>rStatus</b> and MUST take no further action.</p>
</li><li><p><span><span>  </span></span>Else:</p>
<ul><li><p><span><span> 
</span></span>The <i>plJournalMessageCount</i> output variable MUST be set to
the value of the returned <b>rPropVar</b>. </p>
</li></ul></li></ul></li></ul></div>