B
beginner
I use following code to install my printer driver:
TestDriver_info.cVersion=2;
TestDriver_info.pName="MyDriver";
TestDriver_info.pEnvironment="Windows NT x86";
TestDriver_info.pDriverPath="C:\Windows\System32
\spool\drivers\w32x86\myDriverDrv.dll";
TestDriver_info.pDataFile="C:\Windows\System32
\spool\drivers\w32x86\myDriver.ppd"; ;
TestDriver_info.pConfigFile="C:\Windows\System32
\spool\drivers\w32x86\myDriverUi.dll"; ;
if(!AddPrinterDriver(NULL,3,(LPBYTE)&TestDriver_info))
{
return FALSE;
}
After the above code was executed, my driver was supposed
to install into directory
<winsysdir>\spooler\driver\w32x86\2\; but it did not. The
driver was installed to <winsysdir>\spooler\driver\w32x86
\67539\. This is strange. I used the same code to install
other driver, and it worked for other driver.
Why this piece of code does not work for my driver?
anything wrong with my driver dll? I thought even my
driver has some problem, it may not be work correctly
but it should be able to be installed.
Please help me out. Thank you very much in advance.
Jim
TestDriver_info.cVersion=2;
TestDriver_info.pName="MyDriver";
TestDriver_info.pEnvironment="Windows NT x86";
TestDriver_info.pDriverPath="C:\Windows\System32
\spool\drivers\w32x86\myDriverDrv.dll";
TestDriver_info.pDataFile="C:\Windows\System32
\spool\drivers\w32x86\myDriver.ppd"; ;
TestDriver_info.pConfigFile="C:\Windows\System32
\spool\drivers\w32x86\myDriverUi.dll"; ;
if(!AddPrinterDriver(NULL,3,(LPBYTE)&TestDriver_info))
{
return FALSE;
}
After the above code was executed, my driver was supposed
to install into directory
<winsysdir>\spooler\driver\w32x86\2\; but it did not. The
driver was installed to <winsysdir>\spooler\driver\w32x86
\67539\. This is strange. I used the same code to install
other driver, and it worked for other driver.
Why this piece of code does not work for my driver?
anything wrong with my driver dll? I thought even my
driver has some problem, it may not be work correctly
but it should be able to be installed.
Please help me out. Thank you very much in advance.
Jim