阅读:1217回复:2
to y5318
你可以把Win98下虚拟打印机安装驱动程序的那段代码给我吗?
我不知道用98DDK 你只要给:AddPrinterDriver这一段的就可以 谢谢! |
|
沙发#
发布于:2003-08-08 11:24
我是这样写的:(win98下的)
DRIVER_INFO_2 di2; ZeroMemory(&di2, sizeof(DRIVER_INFO_2)); di2.cVersion = 3; di2.pName = \"Virtual Printer\"; di2.pEnvironment = \"Windows 4.0\"; di2.pDriverPath = \"vprinter.dll\"; di2.pDataFile = \"vprinter.GPD\"; di2.pConfigFile = \"VPRINTER.INF\"; AddPrinterDriver(NULL, 2, (LPBYTE)&di2); |
|
板凳#
发布于:2003-08-08 11:27
我是这样写的:(win98下的)
DRIVER_INFO_2 di2; ZeroMemory(&di2, sizeof(DRIVER_INFO_2)); di2.cVersion = 3; di2.pName = \"Virtual Printer\"; di2.pEnvironment = \"Windows 4.0\"; di2.pDriverPath = \"vprinter.dll\"; di2.pDataFile = \"vprinter.GPD\"; di2.pConfigFile = \"VPRINTER.INF\"; AddPrinterDriver(NULL, 2, (LPBYTE)&di2); 有不对的地方还望大家指出 |
|