阅读:5998回复:8
请问printprocessor在INF文件中该怎样写,100分
我是一msplot为基础,然后加入了3行(分别标记了“第几次改动”),但总是安装不上,请各位指教。
; Plotter.inf for DDK ; ; List of supported printers, manufacturers ; [Version] Signature="$Windows NT$" Provider=%MS% ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318} Class=Printer [ClassInstall32.NT] AddReg=printer_class_addreg [printer_class_addreg] HKR,,,,%PrinterClassName% HKR,,Icon,,"-4" HKR,,Installer32,,"ntprint.dll,ClassInstall32" HKR,,NoDisplayClass,,1 HKR,,EnumPropPages32,,"printui.dll,PrinterPropPageProvider" ; ; Manufacturer section. ; ; This section lists all of the manufacturers ; that we will display in the Dialog box ; [Manufacturer] %HP%=HP ; ; Model sections. ; ; Each section here corresponds with an entry listed in the ; [Manufacturer] section, above. The models will be displayed in the order ; that they appear in the INF file. ; [HP] "Hewlett-Packard HP-GL/2 Plotter" = HPGL2PEN.PCD, HPHewlett-Packard_HP7319,Hewlett-Packard_HP-GL/2_Plotter "HP 7550 Plus" = HP7550PL.PCD, HPHP_7550_Plus04A9,HP_7550_Plus "HP DesignJet 200 (C3180A)" = HP20022.PCD, HPHP_DesignJet_200_(0417,HP_DesignJet_200_(C3180A) "HP DesignJet 200 (C3181A)" = HP20036.PCD, HPHP_DesignJet_200_(C446,HP_DesignJet_200_(C3181A) "HP DesignJet 220 (D/A1)" = HP22024.PCD, HPHP_DesignJet_220_(D7E6,HP_DesignJet_220_(D/A1) "HP DesignJet 220 (E/A0)" = HP22036.PCD, HPHP_DesignJet_220_(85DA,HP_DesignJet_220_(E/A0) "HP DesignJet 230 (D/A1)" = HP23024.PCD, HPHP_DesignJet_230_(45EB,HP_DesignJet_230_(D/A1) "HP DesignJet 230 (E/A0)" = HP23036.PCD, HPHP_DesignJet_230_(77D6,HP_DesignJet_230_(E/A0) "HP DesignJet 250C (D/A1)" = HP25024.PCD, HPHP_DesignJet_250C_441B,HP_DesignJet_250C_(D/A1) "HP DesignJet 250C (E/A0)" = HP25036.PCD, HPHP_DesignJet_250C_1627,HP_DesignJet_250C_(E/A0) "HP DesignJet 330 (D/A1)" = HP33024.PCD, HPHP_DesignJet_330_(80BA,HP_DesignJet_330_(D/A1) "HP DesignJet 330 (E/A0)" = HP33036.PCD, HPHP_DesignJet_330_(B285,HP_DesignJet_330_(E/A0) "HP DesignJet 350C (D/A1)" = HP35024.PCD, HPHP_DesignJet_350C_BA1F,HP_DesignJet_350C_(D/A1) "HP DesignJet 350C (E/A0)" = HP35036.PCD, HPHP_DesignJet_350C_EA23,HP_DesignJet_350C_(E/A0) "HP DesignJet 600 (C2847A)" = HP60022.PCD, HPHP_DesignJet_600_(8A89,HP_DesignJet_600_(C2847A) "HP DesignJet 600 (C2848A)" = HP60036.PCD, HPHP_DesignJet_600_(89B9,HP_DesignJet_600_(C2848A) "HP DesignJet 650C (C2858A)" = HP650C22.PCD, HPHP_DesignJet_650C_BACD,HP_DesignJet_650C_(C2858A) "HP DesignJet 650C (C2858B)" = HP650C22.PCD, HPHP_DesignJet_650C_4ACD,HP_DesignJet_650C_(C2858B) "HP DesignJet 650C (C2859A)" = HP650C36.PCD, HPHP_DesignJet_650C_7A9C,HP_DesignJet_650C_(C2859A) "HP DesignJet 650C (C2859B)" = HP650C36.PCD, HPHP_DesignJet_650C_8A9C,HP_DesignJet_650C_(C2859B) "HP DesignJet 750C (D/A1) Color" = HP75024.PCD, HPHP_DesignJet_750C_C9A0,HP_DesignJet_750C_(D/A1)_Color "HP DesignJet 750C (E/A0) Color" = HP75036.PCD, HPHP_DesignJet_750C_F965,HP_DesignJet_750C_(E/A0)_Color "HP DesignJet 750C (D/A1) Mono" = HP750M24.PCD, HPHP_DesignJet_750C_296D,HP_DesignJet_750C_(D/A1)_Mono "HP DesignJet 750C (E/A0) Mono" = HP750M36.PCD, HPHP_DesignJet_750C_2C2C,HP_DesignJet_750C_(E/A0)_Mono "HP DesignJet 755CM" = HP755CM.PCD, HPHP_DesignJet_755CM3DC5,HP_DesignJet_755CM "HP DesignJet 755CM 600 dpi Mono" = HP755CMM.PCD, HPHP_DesignJet_755CM59A7,HP_DesignJet_755CM_600_dpi_Mono "HP DesignJet (C3180A)" = HPDESIGN.PCD, HPHP_DesignJet_(C3180624,HP_DesignJet_(C3180A) "HP DraftMaster RX/MX" = HPDMRXMX.PCD, HPHP_DraftMaster_RX/AC09,HP_DraftMaster_RX/MX "HP DraftMaster SX" = HPDMSX.PCD, HPHP_DraftMaster_SXC3CE,HP_DraftMaster_SX "HP DraftPro Plus (C3170A)" = HPDPP22.PCD, HPHP_DraftPro_Plus_(4F58,HP_DraftPro_Plus_(C3170A) "HP DraftPro Plus (C3171A)" = HPDPP36.PCD, HPHP_DraftPro_Plus_(8F09,HP_DraftPro_Plus_(C3171A) ; Copy Sections ; ; Lists of files that are actually copied. These sections are referenced ; from the installer sections, above. Only create a section if it contains ; two or more files (if we only copy a single file, identify it in the ; installer section, using the @filename notation) or if it's a color ; profile (since the DestinationDirs can only handle sections, and not ; individual files). ; [HP20022.PCD] CopyFiles=@HP20022.PCD,PLOTTER DataSection=PLOTTER_DATA [HP20036.PCD] CopyFiles=@HP20036.PCD,PLOTTER DataSection=PLOTTER_DATA [HP22024.PCD] CopyFiles=@HP22024.PCD,PLOTTER DataSection=PLOTTER_DATA [HP22036.PCD] CopyFiles=@HP22036.PCD,PLOTTER DataSection=PLOTTER_DATA [HP23024.PCD] CopyFiles=@HP23024.PCD,PLOTTER DataSection=PLOTTER_DATA [HP23036.PCD] CopyFiles=@HP23036.PCD,PLOTTER DataSection=PLOTTER_DATA [HP25024.PCD] CopyFiles=@HP25024.PCD,PLOTTER DataSection=PLOTTER_DATA [HP25036.PCD] CopyFiles=@HP25036.PCD,PLOTTER DataSection=PLOTTER_DATA [HP33024.PCD] CopyFiles=@HP33024.PCD,PLOTTER DataSection=PLOTTER_DATA [HP33036.PCD] CopyFiles=@HP33036.PCD,PLOTTER DataSection=PLOTTER_DATA [HP35024.PCD] CopyFiles=@HP35024.PCD,PLOTTER DataSection=PLOTTER_DATA [HP35036.PCD] CopyFiles=@HP35036.PCD,PLOTTER DataSection=PLOTTER_DATA [HP60022.PCD] CopyFiles=@HP60022.PCD,PLOTTER DataSection=PLOTTER_DATA [HP60036.PCD] CopyFiles=@HP60036.PCD,PLOTTER DataSection=PLOTTER_DATA [HP650C22.PCD] CopyFiles=@HP650C22.PCD,PLOTTER DataSection=PLOTTER_DATA [HP650C36.PCD] CopyFiles=@HP650C36.PCD,PLOTTER DataSection=PLOTTER_DATA [HP75024.PCD] CopyFiles=@HP75024.PCD,PLOTTER DataSection=PLOTTER_DATA [HP75036.PCD] CopyFiles=@HP75036.PCD,PLOTTER DataSection=PLOTTER_DATA [HP750M24.PCD] CopyFiles=@HP750M24.PCD,PLOTTER DataSection=PLOTTER_DATA [HP750M36.PCD] CopyFiles=@HP750M36.PCD,PLOTTER DataSection=PLOTTER_DATA [HP7550PL.PCD] CopyFiles=@HP7550PL.PCD,PLOTTER DataSection=PLOTTER_DATA [HP755CM.PCD] CopyFiles=@HP755CM.PCD,PLOTTER DataSection=PLOTTER_DATA [HP755CMM.PCD] CopyFiles=@HP755CMM.PCD,PLOTTER DataSection=PLOTTER_DATA [HPDESIGN.PCD] CopyFiles=@HPDESIGN.PCD,PLOTTER DataSection=PLOTTER_DATA [HPDMRXMX.PCD] CopyFiles=@HPDMRXMX.PCD,PLOTTER DataSection=PLOTTER_DATA [HPDMSX.PCD] CopyFiles=@HPDMSX.PCD,PLOTTER DataSection=PLOTTER_DATA [HPDPP22.PCD] CopyFiles=@HPDPP22.PCD,PLOTTER DataSection=PLOTTER_DATA [HPDPP36.PCD] CopyFiles=@HPDPP36.PCD,PLOTTER DataSection=PLOTTER_DATA [HPGL2PEN.PCD] CopyFiles=@HPGL2PEN.PCD,PLOTTER DataSection=PLOTTER_DATA [PLOTTER] PLOTTER.DLL PLOTUI.DLL PLOTUI.HLP GENPRINT.DLL ////第一处改动 ; ; Data Sections ; ; These sections contain data that is shared between devices. ; [PLOTTER_DATA] DriverFile=PLOTTER.DLL ConfigFile=PLOTUI.DLL HelpFile=PLOTUI.HLP PrintProcessor="vanilla.dll,GENPRINT.DLL" ////第2处改动 ; ; Call SetupSetDirectoryId with 66000 to set the target directory at runtime ; (depending on which environment drivers are getting installed) ; [DestinationDirs] DefaultDestDir=66000 ; ; Source Disk Section ; This was added to enable Web Point&Print. ; All files added to this must also be added to Layout.INF ; [SourceDisksNames.x86] 1 = ,,,"I386" [SourceDisksFiles] hp20022.pcd = 1 hp20036.pcd = 1 hp22024.pcd = 1 hp22036.pcd = 1 hp23024.pcd = 1 hp23036.pcd = 1 hp25024.pcd = 1 hp25036.pcd = 1 hp33024.pcd = 1 hp33036.pcd = 1 hp35024.pcd = 1 hp35036.pcd = 1 hp60022.pcd = 1 hp60036.pcd = 1 hp650c22.pcd = 1 hp650c36.pcd = 1 hp75024.pcd = 1 hp75036.pcd = 1 hp750m24.pcd = 1 hp750m36.pcd = 1 hp7550pl.pcd = 1 hp755cm.pcd = 1 hp755cmm.pcd = 1 hpdesign.pcd = 1 hpdmrxmx.pcd = 1 hpdmsx.pcd = 1 hpdpp22.pcd = 1 hpdpp36.pcd = 1 hpgl2pen.pcd = 1 plotter.dll = 1 plotui.dll = 1 plotui.hlp = 1 genprint.dll = 1 ////第3处改动 ; ; Localizable Strings ; [Strings] MS="Microsoft Windows 2000" PrinterClassName="Printers" ; Manufacturers HP="HP" [ |
|
最新喜欢:xmuhl |
沙发#
发布于:2004-10-23 18:00
提示什么错误?找不到硬件信息吗?
|
|
|
板凳#
发布于:2004-10-23 18:34
显示:未安装打印驱动程序,操作无法完成
|
|
地板#
发布于:2004-10-23 18:40
我单用msplot的这个DLL是可以正常安装的,但是我想把那个print processor给关联到msplot上,是语法不对吧,还请大侠帮忙
|
|
地下室#
发布于:2004-10-24 13:25
还有一处要加上,指定目标路径
[DestinationDirs] DefaultDestDir=66000 Processor=66001 |
|
|
5楼#
发布于:2004-10-24 13:25
genprint.dll的处理不对,应该如下:
genprint.dll要单独拷贝,并指定目标路径 [HPGL2PEN.PCD] CopyFiles=@HPGL2PEN.PCD,PLOTTER CopyFiles=Processor //// DataSection=PLOTTER_DATA [PLOTTER] PLOTTER.DLL PLOTUI.DLL PLOTUI.HLP [Processor] genprint.dll [DestinationDirs] DefaultDestDir=66000 Processor=66001 |
|
|
6楼#
发布于:2004-10-25 09:11
Thank you. print processor 已经成功安装上了,可是没看到什么效果呀,我看print processor里面的源码实现了很多的GDI函数什么的,怎么一点效果也没有呀。如何在我的打印机的属性页面里添加一些属性呢(对页面的操作),我想应该是oemuni(绘制插件),绘制插件在INF中该怎么写,DDK中没介绍呀
|
|
7楼#
发布于:2004-10-25 10:38
oemuni(绘制插件)我也安装上了,可是还是没效果。
我想要的效果就是:在我的虚拟打印机上点右键,然后点属性,然后点打印首选项,出现的就是对打印数据进行编辑的页面。现在我的只有布局一个栏,只能调整横向打印或纵向打印,我想多加几个功能,DDK中应该有这部分的源码,不知道是哪一个。或者是该用CPSUI来配合实现这个呢(CPSUI到底是什么呢) |
|
驱动中牛
|
8楼#
发布于:2007-10-24 10:21
ding
|