The AbortDoc function stops the current print job and erases everything drawn since the last call to the StartDoc function. This function replaces the ABORTDOC printer escape.
int AbortDoc(
HDC hdc |
// handle to device context |
); |
If the function succeeds, the return value is greater than zero.
If the function fails, the return value is SP_ERROR. To get extended error information, call GetLastError.
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 successful print job, an application should call the EndDoc function.
If Windows 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 possible) and ends the print job.
EndDoc, SetAbortProc, StartDoc
file: /Techref/os/win/api/win32/func/src/f00_9.htm, 2KB, , updated: 2000/4/7 11:19, local time: 2024/11/9 14:43,
3.147.27.71:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://linistepper.com/techref/os/win/api/win32/func/src/f00_9.htm"> AbortDoc</A> |
Did you find what you needed? |