文档介绍:Win32 API Reference
Win32 API Reference for HLA
2
AbortDoc
The AbortDoc function stops the current print job and erases everything drawn since the last call
to the StartDoc function.
AbortDoc: procedure
(
hdc:dword
);
stdcall;
returns( "eax" );
external( "__imp__******@4" );
Parameters
hdc
[in] Handle to the device context for the print job.
Return Values
If the function eeds, the return value is greater than zero.
If the function fails, the return value is SP_ERROR.
Windows NT/Windows 2000: To get extended error information, call GetLastError.
Remarks
Applications should call the AbortDoc function to stop a print job if an error occurs, or to stop a
print job after the user cancels that job. To end a essful print job, an application should call
the EndDoc function.
If Print Manager was used to start the print job, calling AbortDoc erases the entire spool job, so
that the printer receives nothing. If Print Manager was not used to start the print job, the data may
already have been sent to the printer. In this case, the printer driver resets the printer (when possi-
ble) and ends the print job.
Requirements
Windows NT/2000: Requires Windows NT or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in .
Library: Use .
See Also
Printing and Print Spooler Overview, Printing and Print Spooler Functions, EndDoc, SetAbort-
Page 1
Volume 1
Proc, StartDoc
AbortPath
The AbortPath function closes and discards any paths in the specified device context.
AbortPath: procedure
(
hdc:dword
);
stdcall;
returns( "eax" );
external( "__imp__******@4" );
Parameters
hdc
[in] Handle to the device context from which a path will be discarded.
Return Values
If the function eeds, the return value is nonzero.
If the function fails, the return value is zero.
Windows NT/2000: To get extended error information, call GetLastError.
Remarks
If there is an open path br