# fpOpenStreamEx2()

This function opens a stream for filtering and enables you to set bitwise flags for each stream.

## Syntax

    void * pascal fpOpenStreamEx2(
        void             *pContext,
        KVInputStream    *pInput,
        DWORD             dwFlags);

## Arguments

`pContext` | A pointer returned from fpInit() or fpInitWithLicenseData().
`pInput` | A pointer to the developer-assigned instance of KVInputStream. The `KVInputStream` structure defines the input stream that contains the source.
`dwFlags` | Instructions on how to process a stream. See Flags for dwFlags.

## Returns

- If the call is successful, the return value is a `void *` pointer passed to fpFilterStream(), fpCanFilterStream(), and fpCloseStream().
- If the call is unsuccessful, the return value is `NULL`.

## Discussion

- Before you call this function, you must create an input stream either by using the fpFileToInputStreamCreate() function, or by using code similar to the coding example in the Filter sample program. See Use the C-Language Implementation of the API for more information.
- After filtering is complete, call fpCloseStream() to free the memory allocated by this function.

_FT_HTML5_bannerTitle.htm