IXpsPrintJob::Cancel method (xpsprint.h)
[IXpsPrintJob::Cancel is not supported and may be altered or unavailable in the future. ]
Cancels the print job.
Syntax
HRESULT Cancel();
Return value
If the method succeeds, it returns S_OK; otherwise, it returns an HRESULT error code.
Remarks
Any spooling or printing that is in progress at the time this method is called will be canceled.
This function is thread-safe and synchronized with the job status of the print job object.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | xpsprint.h |