SplQmAbort

SplQmAbort stops the generation of the spool file. It automatically closes the spool file (see SplQmClose).

Syntax
rc = SplQmAbort(hspl);

Parameters

 * hspl (HSPL) - input
 * Spooler handle.

Return Code

 * rc (BOOL) - returns
 * Success indicator.


 * TRUE Successful completion
 * FALSE Error occurred.


 * Error Conditions
 * Possible returns from WinGetLastError

PMERR_SPL_QUEUE_ERROR (0x4004) No spooler queue supplied or found.

PMERR_SPL_INV_HSPL (0x4005) The spooler handle is invalid.

Sample
This function is used to stop the generation of spool files and automatically close the spool file. 
 * 1) define INCL_SPL
 * 2) include 

HSPL hspl; /* spooler handle. */

SplQmAbort(hspl); 

Calling Sequence

 * 1) define INCL_SPL /* Or use INCL_PM, */
 * 2) include 

HSPL   hspl;  /*  Spooler handle. */ BOOL   rc;    /*  Success indicator. */

rc = SplQmAbort(hspl); 

Related Functions

 * Prerequisite Functions
 * SplQmOpen


 * Related Functions
 * DevEscape