"Find text from a stream / textbox / handle"

Have a need to know if there is such an API.

Thanks,