Windows:使用rundll32

时间:2016-10-10 09:09:06

标签: windows printing driver

我是编程的新手,遇到了这个问题(我使用的是Windows 7 64x)。我正在运行此命令RUNDLL32.EXE PRINTUI.DLL,PrintUIEntry /ia /m "Printer" /f "C:\Program Files (x86)\Project\bin\drivers\Print\printer.inf并且它给出了错误说Operation could not be completed (error 0x00000002)我已经搜索过并找到了一些解决方案,例如重新启动Print Spooler等等。但它们都没有为我工作,所以我进行了搜索,错误0x00000002表示The system cannot find the file specified.我已打开并且inf文件看起来像这样:

[Version]
Signature="$Windows NT$"
Provider="Ukve"
ClassGUID={4D36E979-D525-7CE-BLC1-08002BE10318}
Class=Printer
CatalogFile=printer.cat
DriverVer=03/26/2015,6
DriverPackageDisplayName="Printer Adapter"

[Manufacturer]
"Ukve" = printer, NTamd64

[printer]
"Ukve Printer" = printer.gpd, printer

[printer.NTamd64]
"Printer" = printer.gpd, printer

[printer.gpd]
CopyFiles=@printer.gpd
DataSection=UNIDRV_DATA
Include=NTPRINT.INF
Needs=UNIDRV.OEM,TTFSUB.OEM

[DestinationDirs]
DefaultDestDir=66000

[SourceDisksNames]
1 = "Printer Disk"

[SourceDisksFiles]
printer.gpd = 1

我可以看到printer.gpd文件与打印机安全目录位于同一目录中。我的问题取决于这个,什么文件可能会丢失?希望你能干,谢谢。

1 个答案:

答案 0 :(得分:0)

我认为Windows无法连接到打印机。请参阅以下路径: https://support.microsoft.com/en-in/kb/2793718