SplQmClose

SplQmClose closes the spool file. It corresponds to the DevCloseDC function.

Syntax
rc = SplQmClose(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

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

A request to close the spooled output without first issuing a an ENDDOC was attempted.
 * PMERR_ENDDOC_NOT_ISSUED (0x210B)

The spooler handle is invalid.
 * PMERR_SPL_INV_HSPL (0x4005)

Remarks
This function is used to close a spool file that was opened with SplQmOpen. 
 * 1) define INCL_SPL
 * 2) include 

HSPL hspl; /* spooler handle. */

SplQmClose(hspl); 

Example Code

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

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

rc = SplQmClose(hspl); 

Related Functions

 * Prerequisite Functions :SplQmOpen
 * Related Functions: DevCloseDC