我想做个打印机驱动程序自动安装,
用AddPrinterDriver 和 AddPrinter两个函数做,
在手工装驱动后AddPrinter函数工作的很好。
但使用AddPrinterDriver却怎样都不行。
不晓得PDriverInfo3参数怎样写,大家有没有具体的例子。
只要关于AddPrinterDriver的就可以了,如果我搞不定的话可能要失业了。
大伙帮帮忙,分不够可以再加的
用AddPrinterDriver 和 AddPrinter两个函数做,
在手工装驱动后AddPrinter函数工作的很好。
但使用AddPrinterDriver却怎样都不行。
不晓得PDriverInfo3参数怎样写,大家有没有具体的例子。
只要关于AddPrinterDriver的就可以了,如果我搞不定的话可能要失业了。
大伙帮帮忙,分不够可以再加的
解决方案 »
- 已知地球上两点经纬度,如何求其相对方位?
- 用什么语言,开发环境来开发一个C/S架构的局域网共享播放器?
- 这个SQL语句如何写
- 统计因为非典至今还放假的公司
- 如何有选择的对ListView进行改变颜色??? 想了好几天了郁闷中。
- 我有一个50多个字段的表!用到报表时,在设计报表的时候我在一行中写下了所有的字段,但在预览时却只能看见前几个字段,后面的看不见了!
- 北狼问大家好,哪位同志使过mapx这东西,在delphi中怎么和它有机结合到一起,具体请进
- 誰要李維的書
- 怎样实现在一台主机去监视其台网络中机子的屏幕操作
- 请问,钩子可以不放DLL中而放在程序的EXE中吗?(200分求解)
- 关于DBEDIT控件数据提交问题
- 如何将一个WORD类型的变量赋给一个两个BYTE的数组?在线等。
DWORD cVersion;
LPTSTR pName;
LPTSTR pEnvironment;
LPTSTR pDriverPath;
LPTSTR pDataFile;
LPTSTR pConfigFile;
LPTSTR pHelpFile;
LPTSTR pDependentFiles;
LPTSTR pMonitorName;
LPTSTR pDefaultDataType;
} DRIVER_INFO_3;
MemberscVersionSpecifies a printer-driver version number. pNamePoints to a null-terminated string that specifies the name of the driver (for example, "QMS 810"). pEnvironmentPoints to a null-terminated string that specifies the environment for which the driver was written (for example, "Windows x86" or "Windows NT R4000"). pDriverPathPoints to a null-terminated string that specifies a filename or full path and filename for the file that contains the device driver (for example, "C:\DRIVERS\PSCRIPT.DLL"). pDataFilePoints to a null-terminated string that specifies a filename or a full path and filename for the file that contains driver data (for example, "C:\DRIVERS\QMS810.PPD"). pConfigFilePoints to a null-terminated string that specifies a filename or a full path and filename for the device driver's configuration dynamic-link library (for example, "C:\DRIVERS\PSCRPTUI.DLL"). pHelpFilePoints to a null-terminated string that specifies a filename or a full path and filename for the device driver's help file.pDependentFilesPoints to a null-terminated string that specifies the files the driver is dependent on. Each filename in the string is also terminated with a null (for example, "PSCRIPT.DLL\0QMS810.PPD\0PSCRPTUI.DLL\0PSPCRIPTUI.HLP\0PSTEST.TXT\0\0").pMonitorNamePoints to a null-terminated string that specifies a language monitor (for example, "PJL monitor"). This member can be NULL and should be specified only for printers capable of bidirectional communication.pDefaultDataTypePoints to a null-terminated string that specifies the default data type of the print job (for example, "EMF").
naughtyboy能请教你吗?我的QQ:150383457
这件事真的很急,我都搞了几天了
恭喜楼主了
公司不让上QQ,没办法
sigh