# 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.

© Copyright 2016-2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm