fpCloseDocument()

Closes a KVDocument that was opened with fpOpenDocumentFromFile() or fpOpenDocumentFromStream(). Call this function when you no longer need the KVDocument, to free the memory that was allocated.

You must call this function on all open documents created by a KeyView Filter session, before calling fpShutdown() on the session.

Syntax

BOOL (pascal* fpCloseKVDocument)(KVDocument pDocument);

Arguments

pDocument

A KVDocument that you created with fpOpenDocumentFromFile() or fpOpenDocumentFromStream().

Returns

This functions returns TRUE on success or FALSE on failure.