BOOL AbortPrinter(hPrinter) | |||
HANDLE hPrinter; |
The AbortPrinter function deletes a Printer's spool file if the printer is configured for spooling. If the Printer is configured so that the data is sent directly to the Printer, then this function has no effect.
hPrinter
Indicates the open Printer handle that this function is to be performed upon. This Handle is obtained with the OpenPrinter function.
The return value is TRUE if the function was successful, or FALSE if an error occurred. To obtain extended error information, use the GetLastError function.