<div class="content"><p>This method returns the <a href="../ms-dtco/d3244003-a8f5-4791-9f68-6ac96524a28d" data-linktype="relative-path">STxInfo</a>
(<a href="../ms-dtco/c367c571-33f3-44ac-85cb-4b9ebbb2779d" data-linktype="relative-path">[MS-DTCO]</a>
section 2.2.5.10) of the currently active <a href="482ab606-0b55-4821-8b6d-d453351406c5#gt_61e1de21-a78d-4d20-b184-eda380386871" data-linktype="relative-path">transaction</a> and the
CurrentTSN value.</p><dl>
<dd>
<div><pre> HRESULT GetSeqAndTxViaExport(
   [in] unsigned long ulKnownSeq,
   [in] unsigned long ulcbWhereabouts,
   [in, size_is(ulcbWhereabouts)] BYTE* rgbWhereabouts,
   [out] unsigned long* pulCurrentSeq,
   [out] unsigned long* pulcbExportCookie,
   [out, size_is(,*pulcbExportCookie)] 
     BYTE** prgbExportCookie
 );
</pre></div>
</dd></dl><p><b>ulKnownSeq: </b>The caller&#39;s CurrentTSN value of
the currently active transaction known by the client.</p><p><b>ulcbWhereabouts: </b>The unsigned size, in bytes,
of <i>rgbWhereabouts</i>.</p><p><b>rgbWhereabouts: </b>The <a href="../ms-dtco/f5ab2327-10b0-469c-ac79-f35da8daa3ff" data-linktype="relative-path">SWhereabouts</a>
instance ([MS-DTCO] section 2.2.5.11) of the caller&#39;s local DTCO transaction
manager implementation.</p><p><b>pulCurrentSeq: </b>The <a href="482ab606-0b55-4821-8b6d-d453351406c5#gt_ef97ef16-ebb2-45e5-8543-d1b189bdb659" data-linktype="relative-path">TSN</a> of the currently active
transaction.</p><p><b>pulcbExportCookie: </b>The unsigned size, in
bytes, of <i>prgbExportCookie</i>.</p><p><b>prgbExportCookie: </b>An STxInfo of the currently
active transaction (as specified in [MS-DTCO] section 2.2.5.10).</p><p><b>Return Values: </b>The method MUST return a
positive value or zero, to indicate successful completion, or a negative value
to indicate failure. The client MUST treat any negative return value as a fatal
error.</p><p>When processing this <a href="482ab606-0b55-4821-8b6d-d453351406c5#gt_d4ad46fe-cbab-43f2-a125-b2f125824f33" data-linktype="relative-path">ORPC</a> call, the <a href="e105692e-61da-49dd-9bb1-09cd6b8c67bc" data-linktype="relative-path">ITransactionStream
Server (section 3.23)</a> MUST do the following:</p><ul><li><p><span><span> 
</span></span>If the DtcCap_CanExport bit is not set in the DtcCapabilities
value, it MUST return CO_E_NOT_SUPPORTED.</p>
</li><li><p><span><span> 
</span></span>If <i>ulKnownSeq</i> is the same as the CurrentTSN value, the
ITransactionStream Server MUST:</p>
<ul><li><p><span><span>  </span></span>Set
<i>pulCurrentSeq</i> to <i>ulKnownSeq</i>.</p>
</li><li><p><span><span>  </span></span>Set
<i>pulcbExportCookie</i> to zero.</p>
</li><li><p><span><span>  </span></span>Set
<i>prgbExportCookie</i> to NULL.</p>
</li></ul></li><li><p><span><span> 
</span></span>Otherwise, the ITransactionStream Server MUST:</p>
<ul><li><p><span><span>  </span></span>Set
<i>pulCurrentSeq</i> to the CurrentTSN value.</p>
</li><li><p><span><span>  </span></span>Set
<i>pulcbExportCookie</i> to the size of <i>prgbExportCookie</i>.</p>
</li><li><p><span><span>  </span></span>Copy
the STxInfo of the currently active transaction to the <i>prgbExportCookie</i>
out parameter. </p>
</li></ul></li></ul></div>