CloseInput Method

Log Parser

CloseInput Method

Releases all the resources and performs any necessary cleanup.

C++ Syntax

HRESULT STDMETHODCALLTYPE CloseInput(IN VARIANT_BOOL bAbort);

Script Syntax

CloseInput(bAbort);


Parameters

bAbort
A Boolean value set to TRUE if the query execution has been aborted, or FALSE if the query execution has completed successfully.


Return Value

None.


Remarks

  • This is the last method invoked by Log Parser before releasing the custom input format COM object.


Examples

C++ example:

HRESULT CProcessesInputContext::CloseInput( IN VARIANT_BOOL bAbort )
{
    // Close the snapshot handle
    if( m_hSnapshot != INVALID_HANDLE_VALUE )
    {
        CloseHandle( m_hSnapshot );
        m_hSnapshot = INVALID_HANDLE_VALUE;
    }

    return S_OK;
}

VBScript example:

Function CloseInput(bAbort)

    m_objQFEArray = Array()

End Function


See also:

ILogParserInputContext Interface
OpenInput Method
Run Time Interaction
Custom Plugins


© 2004 Microsoft Corporation. All rights reserved.