#define STARTDOC 10 |
short Control(lpDevice, STARTDOC, lpDocName, NULL) | |||
LPPDEVICE lpDevice; | |||
LPSTR lpDocName; |
The STARTDOC escape informs the device driver that a new print job is starting and that all subsequent NEWFRAME escapes should be spooled under the same job, until an ENDDOC escape occurs.
This ensures that documents longer than one page will not be interspersed with other jobs.
lpDevice
Points to a PDEVICE structure specifying the destination device.
lpDocName
Points to a null-terminated string specifying the name of the document. The document name is displayed in Print Manager.
The return value is positive if successful. Otherwise, it is -1 if an error occurs, such as insufficient memory or an invalid port specification.