## Printer Device Driver

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

### GplThreadOutput

Description

This function is used to pass data to a thread instance (referenced by the thread instance handle passed in) for output. GplThreadStart must be called prior to calling GplThreadOutput.

Format

    BOOL APIENTRY GplThreadOutput( HTHREAD  hThread,

                                   PBYTE    pBytes,

                                   ULONG    ulCount,

                                   ULONG    fulDataType );

Parameters

hThread (HTHREAD) Thread instance handle.

pBytes (PBYTE) Pointer to data to buffer.

ulCount (ULONG) Size of data (byte size) pointed to by pBytes parameter

fulDataType (ULONG) Data type flag.

THREAD_DT_PRINTERLANGUAGE Data is printer language commands and only requires an abort string to be sent when aborting during this buffer. See pszAbortString in GplThreadStart.

THREAD_DT_BINARY Data is binary (raster) data and requires a series of bytes to be sent to ensure the printer is not in binary transfer mode before the abort string can be sent. See ucAbortChar in GplThreadStart.

Returns

Success TRUE
Failure FALSE