Jump to content

PrtAbort: Difference between revisions

From EDM2
Created page with "PrtAbort terminates operations to the output device identified by hDevice handle. == Syntax == PrtAbort(hDevice); == Parameters == ; hDevice (HFILE) - input : The device ..."
 
Line 25: Line 25:


== Related Functions ==
== Related Functions ==
* [[]]
*  




[[Category:Prt]]
[[Category:Prt]]

Revision as of 17:21, 29 August 2017

PrtAbort terminates operations to the output device identified by hDevice handle.

Syntax

PrtAbort(hDevice);

Parameters

hDevice (HFILE) - input
The device handle returned by PrtOpen.

Returns

None.

Remarks

Any output data that is held in buffers for the physical device driver is emptied. PrtAbort does not close the device, therefore, the presentation driver must call PrtClose after ending operations. If PrtWrite is called to write to a device whose output has been ended, the call is not honored by the system.

Presentation drivers do not use PrtClose to end an output operation. The effect of PrtClose is to output any buffered data before closing the device.

Example Code

#include <os2.h>

HFILE    hDevice;  /*  The device handle returned by PrtOpen. */

PrtAbort(hDevice);

Related Functions