## Printer Device Driver

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

### GplThreadAbortDoc

Description

This function is called to abort output from the thread that is referenced by the thread instance handle that was passed in. After output is stopped, the function will attempt to restore the printer to a known state where it can process data from another print job.

The first issue to consider when using this function is that the device may be executing a command that has a large amount of data that it is expecting to receive as a block. Therefore the parameter ulAbortChar passed in on GplThreadStart is sent ulAbortCharCount times.

The second issue to consider is that the abort string 'pszAbortString' provided in GplThreadStart() is sent last.

Format

    BOOL APIENTRY GplThreadAbortDoc( HTHREAD  hThread );

Parameter

hThread (HTHREAD) Handle to thread instance.

Returns

Success TRUE
Failure FALSE