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

  1. /****************************************************************************
  2.  *  LONG APIENTRY EndDocument( HDC hdcPrinter )                             *
  3.  *  Purpose          This function ends a print job started by the          *
  4.  *                   StartDocument function.                                *
  5.  *                                                                          *
  6.  *  Parameters       hdcPrinter contains a handle to a previously           *
  7.  *                   opened printer device context.                         *
  8.  *                                                                          *
  9.  *  Return Value     This function returns DEV_OK if no error occurred,     *
  10.  *                   otherwise it returns a value of DEVESC_ERROR or        *
  11.  *                   or DEVESC_NOTIMPLEMENTED.                              *
  12.  ****************************************************************************/
  13.  
  14.     #define INCL_DEV
  15.     #include <os2.h>
  16.  
  17. /****************************************************************************/
  18.     LONG EXPENTRY EndDocument( HDC hdcPrinter )
  19.     {
  20.         return DevEscape( hdcPrinter,DEVESC_ENDDOC,0L,NULL,NULL,NULL );
  21.     }
  22. /****************************************************************************/
  23.