首页 Soft PlugIn RAN乱 Dev开发 Info资料 English WAP 留言 登陆 注册
-
Posted by Yippee | 评论(0) | 引用(0) | 阅读3650次
printer driver DDK

  Win2000或者更高版本的驱动程序的职责如下:
l         通过提供一些GDI不支持的特殊打印能力来辅助GDI完成打印任务。
l         负责传送渲染完成的图像数据流到打印缓冲(Print Spooler)中。
l         提供一个用户界面用来配置与打印文档及打印机相关的可配置参数,如选定入纸、出纸托盘,拷贝份数,图像分辨率及朝向等等。。。
Win2000打印驱动由打印驱动组件集构成,它们分为绘图、用户界面操作两部分,并分隔为不同的DLL。

WINDOWS DDK自带了三类打印驱动程序:
       Microsoft Universal Printer Driver
       Microsoft Postscript Printer Driver
       Microsoft Plotter Driver

http://www.paulyao.com/resources/whitepapers/WinHecWP2.html
The Windows Universal Printer Driver
The purpose of this white paper is to provide an introduction to Windows printer drivers in general, and to the Universal Printer Driver - UNIDRV - in particular. UNIDRV runs on various versions of Windows, including Windows NT 4.0 (Service Pack 6), Windows 2000, and Windows XP.
Outline:
The Role of Printer Drivers
Types of Printer Drivers
The Universal Printer Driver
UNDRIV Plug-Ins

Customizing MicroSoft’s Printer Driver Rendering Plug-In
http://www.aech.net/Driver/Rendering%20Plug-In.ppt
Introduction to Rendering Plug-In Rendering Plug-In的作用
協助Graphics DLL (Renderer) 完成繪制作業 。
Rendering Plug-In有兩種形式:
COM-Based Rendering Functions
Non-COM-Based Rendering Functions
為GDI bitmap data創建一個Buffer,並把地址傳到::ImageProcessing函數中
::ImageProcessing處理完成後可以使用IPrintOemDriverUni:: DrvWriteSpoolBuf,將資料傳到Spooler中

Sample Rendering Plug-Ins Directory: DDKsrcprintoemdllsoemuni
Files:
Ddihook.cpp       Non-COM-Based的實現函數
Enable.cpp         用於創建DRVENABLEDATA及PDEV
Intrface.cpp(.h)    IPrintOemUni的實現函數
Demode.cpp(.h)  DEVMODE的定義及管理功能

http://www.daxia.com:82/PC端驱动、界面程序开发/WINDOWS驱动相关/Windows%20Driver%20Model(WDM)-中文/2004-08-31_win2kDDK4.pdf
第4卷 图形驱动程序设计指南
第1部分 图形驱动程序
第2部分 显示器及视频微端口驱动程序
第3部分 打印机驱动程序及假脱机打印部件

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/graphics/hh/graphics/custdrvr_b2df98ef-4631-4425-87c4-6860c4cbd405.xml.asp
   MSDN Home >  MSDN Library >  Win32 and COM Development >  Driver Development Kit >  Display and Print Devices >  Design Guide >  Printer Drivers and Spooler Components >  Customizing Microsoft's Printer Drivers
Display and Print Devices: Windows DDK Rendering Plug-Ins
mk: at MSITStore:o:DDK2khelpd_grafx dot chm::/hh/dtc/d_grafx/custdrvr_91rb.htm

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/graphics/hh/graphics/plotter_c91a6304-4803-40d5-b29f-88b8930c19e7.xml.asp
MSDN Home >  MSDN Library >  Win32 and COM Development >  Driver Development Kit >  Display and Print Devices >  Design Guide >  Printer Drivers and Spooler Components 
 Display and Print Devices: Windows DDK Microsoft Plotter Driver
 
http://www.osronline.com Everything Windows Driver Development
http://www.wd-3.com/ The Independent Newsletter of Windows Driver Programming
http://www.aech.net/PrinterandScanner.htm Printer & Scanner  Poxen Studio.
http://www.easysw.com/index.php Internet Printing and Publishing Software
http://www.tech-archive.net/ www.tech-archive.net  > Archive  > Development  > microsoft.public.development.device.drivers
www.tech-archive.net  > Archive  > Development  > microsoft.public.win32.programmer.tapi 

我曾經在 Win98 用 unidrv 開發 在 Win2000 用 plotter 開發 從來沒有使用 pscript 開發 不過你講的那個範例我好像也有參考過 如果你只是想要加入浮水印的話 不管使用哪一種 driver 的架構 都可以做得到的~~
你只需要在接到影像資料後 把你要加入的浮水印和影像資料重疊 應該就可以了~~ 其他的流程就跟原來 driver 的寫法一樣 但是~~有一個小小的問題 就是~~如果你並沒有原本印表機 driver 的 source code 的話 那就無法直接用這種方式加上去了 可能要想一個方法外掛
感謝RaynorPao兄的回應...
我現在已經可以在要列印的資料上面印出我想要的string了...是利用DrvWriteSpoolBuf這個function...我把要印的string餵給buffer即可...

microsoft.public.development.device.drivers
http://www.microsoft.com/china/community/Newsgroup/NGList.aspx
欢迎来到新闻组,这是一个在线交流微软技术及产品使用心得的空间


字体:

Permanant URI永久地址 http://www.shengfang.org/blog/p/printerdriverDDK.php
Trackback URI引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1129437644

2005年10月16日12:40星期日  [Info资料] 追踪此文的RSS
提示:
此文还没有评论。

称呼:    登陆   注册
   不注册,但记住我的信息
邮件:
(非必须)
评论: [UBB代码帮助]
粗体 斜体 下划线 链接 水平线 引用



验证码: 请输入你看见的数字
关闭UBB      提交时自动将内容复制到剪贴板

公告
Fire and Motion!

统计信息
[Yippee]||[统计]||日志:1790
在线: 13||用户: 2563 [列表]
今日:574||到访:2682213
Rss:841941||评论:1585

最新日志

最新评论

友情链接

日历

最新引用

搜索

归档

杂项
Get RSS Feed (Version 2.0)
Get Atom Feed (Version 0.3)
编码:  UTF-8