AbortPrinter function winspool
The AbortPrinter function deletes a printer's spool file if the printer is configured for spooling.
BOOL AbortPrinter(
_In_ HANDLE hPrinter
);
Implementation
int AbortPrinter(int hPrinter) => _AbortPrinter(hPrinter);