<div class="content"><p> </p><p>The ElfrCloseEL (Opnum 2) method instructs the server to
close a handle to the <span><a href="e74c8719-c30e-4f7a-bef7-82753cc0e159#gt_bb3fad7e-60bf-46d4-9c3f-7caea47a743e" data-linktype="relative-path">event log</a></span>, freeing
resources on the server that maintained an association between the handle and
the corresponding event log. This handle MUST have been obtained via the <span><a href="ea6c92d3-05d1-4194-b5a0-686847cd8574" data-linktype="relative-path">ElfrOpenELW (section 3.1.4.3)</a></span>
method, the <span><a href="ba5ecaf7-8ed5-4506-a4f0-11f70614c269" data-linktype="relative-path">ElfrOpenELA (section 3.1.4.4)</a></span>
method, the <span><a href="4db1601c-7bc2-4d5c-8375-c58a6f8fc7e1" data-linktype="relative-path">ElfrOpenBELW (section 3.1.4.1)</a></span>
method, or the <span><a href="6dcf59eb-11ca-416f-9cc4-8f6c2979baad" data-linktype="relative-path">ElfrOpenBELA (section 3.1.4.2)</a></span>
method. </p><dl>
<dd>
<div><pre> NTSTATUS ElfrCloseEL(
   [in, out] IELF_HANDLE* LogHandle
 );
</pre></div>
</dd></dl><p><b>LogHandle: </b>Handle to an event log. This parameter is
a server context handle, as specified in section <span><a href="de54bfbc-fbe4-43b8-b8e1-b8a6b2189604" data-linktype="relative-path">2.2.6</a></span>.</p><p><b>Return Values: </b>The method MUST return STATUS_SUCCESS
(0x00000000) on success; otherwise, it MUST return an implementation-based,
nonzero NTSTATUS value specified in <span><a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a></span>.</p><p>In response to this request from the client, the server MUST
first check that the handle is valid. The server MUST fail the operation with
the error STATUS_INVALID_HANDLE (0xC0000008) if the handle is invalid. The
server SHOULD make sure that the handle has come from the
ElfrOpenELW (section 3.1.4.3) method, the
ElfrOpenELA (section 3.1.4.4) method, the
ElfrOpenBELW (section 3.1.4.1) method, or the ElfrOpenBELA (section 3.1.4.2)
method.<a id="Appendix_A_Target_39"></a><a aria-label="Product behavior note 39" href="4acc4fbc-1378-4120-83d1-cfb4ae0240e0#Appendix_A_39" data-linktype="relative-path">&lt;39&gt;</a></p><p>If the handle is valid, the server MUST free the resources
taken by this handle in the server.<a id="Appendix_A_Target_40"></a><a aria-label="Product behavior note 40" href="4acc4fbc-1378-4120-83d1-cfb4ae0240e0#Appendix_A_40" data-linktype="relative-path">&lt;40&gt;</a> </p></div>