home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / STDPRN.ZIP / STARTDOC.C < prev    next >
Text File  |  1989-07-30  |  2KB  |  32 lines

  1. /****************************************************************************
  2.  *  LONG APIENTRY StartDocument( HDC hdcPrinter,PSZ pszDocName )            *
  3.  *  Purpose         This function allows the application to signal          *
  4.  *                  that a new print job is starting.                       *
  5.  *                                                                          *
  6.  *  Parameters      hdcPrinter contains a handle to a previously            *
  7.  *                  opened printer device context.                          *
  8.  *                                                                          *
  9.  *                  pszDocName points to a null-terminated ASCII            *
  10.  *                  containing the name of the document.                    *
  11.  *                                                                          *
  12.  *  Return Value    This function returns DEV_OK if no error occurred,      *
  13.  *                  otherwise it returns a value of DEVESC_ERROR or         *
  14.  *                  or DEVESC_NOTIMPLEMENTED.                               *
  15.  ****************************************************************************/
  16.  
  17.     #define INCL_DEV
  18.     #include <os2.h>
  19.     #include <string.h>
  20.  
  21. /****************************************************************************/
  22.     LONG EXPENTRY StartDocument( HDC hdcPrinter,PSZ pszDocName )
  23.     {
  24.         return DevEscape( hdcPrinter,
  25.                           DEVESC_STARTDOC,
  26.                           (LONG) strlen(pszDocName),
  27.                           pszDocName,
  28.                           NULL,
  29.                           NULL );
  30.     }
  31. /****************************************************************************/
  32.