vprint.c
上传用户:yuandong
上传日期:2022-08-08
资源大小:954k
文件大小:2k
源码类别:

Delphi控件源码

开发平台:

C++ Builder

  1. /****************************************************************************
  2. *                                                                           *
  3. * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY     *
  4. * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE       *
  5. * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR     *
  6. * PURPOSE.                                                                  *
  7. *                                                                           *
  8. * Copyright (C) 1993-95  Microsoft Corporation.  All Rights Reserved.       *
  9. *                                                                           *
  10. ****************************************************************************/
  11. #include        <windows.h>
  12. #include <windef.h>
  13. #include        <ntmindrv.h>
  14. NTMD_INIT    ntmdInit;                 /* Function address in RasDD */
  15. /*
  16.  *   Include the module initialisation function so that RasDD will
  17.  * recognise our module.
  18.  */
  19. #define _GET_FUNC_ADDR    1
  20. #include       "modinit.c"
  21. /***************************** Function Header *****************************
  22.  * CBFilterGraphics
  23.  *   Manipulate output data before calling RasDD's buffering function.
  24.  *       This function is called with the raw bit data that is to be
  25.  *       sent to the printer.
  26.  *
  27.  *
  28.  ****************************************************************************/
  29. int
  30. CBFilterGraphics( lpdv, lpBuf, len )
  31. void  *lpdv;
  32. BYTE  *lpBuf;
  33. int    len;
  34. {
  35. ntmdInit.WriteSpoolBuf(lpdv, " ", 0); 
  36.     return  0;                /* Value not used ! */
  37. }