## Printer Device Driver

[prev][next][parent][TOC]

### GplThreadFlushBuffer

Description

This function causes all data buffers currently being managed by the thread instance to be flushed (written) to their final output destination (for example, parallel port and spool file).

This call allows a flag to be set so that all the data buffers are sent ( flushed) before this call returns (fwait == TRUE) or synchronously (fwait = = FALSE).

Format

    BOOL APIENTRY GplThreadFlushBuffer( HTHREAD  hThread,

                                        BOOL     fWait );

Parameters

hThread (HTHREAD) Handle to thread instance.

fWait (BOOL) Flag indicating flush asynchronously or synchronously.

Returns

Success TRUE
Failure FALSE