Eric_Ni
驱动牛犊
驱动牛犊
  • 注册日期2003-12-31
  • 最后登录2004-01-05
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1523回复:4

求购虚拟打印的缘代码

楼主#
更多 发布于:2004-01-05 11:05
联系方式:eric_ni@tom.com
wowocock
VIP专家组
VIP专家组
  • 注册日期2002-04-08
  • 最后登录2016-01-09
  • 粉丝16
  • 关注2
  • 积分601分
  • 威望1651点
  • 贡献值1点
  • 好评度1227点
  • 原创分1分
  • 专家分0分
沙发#
发布于:2004-01-14 12:57
不错 。。。。。。
花开了,然后又会凋零,星星是璀璨的,可那光芒也会消失。在这样 一瞬间,人降生了,笑者,哭着,战斗,伤害,喜悦,悲伤憎恶,爱。一切都只是刹那间的邂逅,而最后都要归入死亡的永眠
zhengyun_ustc
驱动牛犊
驱动牛犊
  • 注册日期2003-10-17
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2004-01-13 18:45
可以参考,下面的codeguru的例子可比ddk例子简单:
Print monitor that prints into a directory

www.codeguru.com/printing/printspool.html

--------------------------------------------------------------------------------

This article was contributed by Peter Herweg.

Environment: Visual C++ 6.0, Windows NT 4.0 / Windows2000

Recently we had to do some printing on our IIS-Server. Printing on a physically existing printer was no problem. But after that we tried to print into files and send the files to the appropriate user.
Printing to \"FILE:\"-port caused the spooler-service to ask for a destination file, which you had to type in manually. Of course this was not the right approach for our IIS-server.

After studying the MSDN I found \"The Print Monitor API\" (refer to this for further information) which explains how to implement a print monitor. A print monitor is a DLL that exports some specific functions to enable the print spooler to do customized tasks--for example to print not to a printer but into a directory.

I used the print monitor example from the Microsoft DDK as a template to implement this print monitor. The example in the DDK was very complicated and did more than I wanted it to do (it should just redirect the print jobs into appropriate files).

Notice that the file WINSPLP.H was shipped with the Microsoft Windows NT 4.0 DDK.

Eric_Ni
驱动牛犊
驱动牛犊
  • 注册日期2003-12-31
  • 最后登录2004-01-05
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2004-01-05 11:32
例子呢?我找不到win98ddk,能把例子发给我吗?谢谢
y5318
驱动中牛
驱动中牛
  • 注册日期2001-09-18
  • 最后登录2018-05-29
  • 粉丝1
  • 关注0
  • 积分14分
  • 威望22点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
  • 社区居民
地下室#
发布于:2004-01-05 11:17
你在DDK的例子里面有啊,你只要编译以下就可以了,不知这样的回答对你有没有帮助,~_~
游客

返回顶部