Re: Question about DRIVER_INFO_2 for AddPrinterDriverEx

Tech-Archive recommends: Fix windows errors by optimizing your registry



"Before calling the AddPrinterDriverEx function, all files required by the
driver must be copied to the system's printer-driver directory. To retrieve
the name of this directory, call the GetPrinterDriverDirectory function."

Please have a look in the AddPrinterDriverEx "remarks" section.

--
Christoph Lindemann
Undocumented Printing
http://www.undocprint.org/


"Manfred Wilner" <mwilner@xxxxxxxxxxxxxxx> wrote in message
news:DB9E17BD-C3CF-490E-9630-86F05E26A67D@xxxxxxxxxxxxxxxx
I want to pre install my printer driver from an application using
AddPrinterDriverEx.
My driver is Unidrv based and I am filling the DRIVER_INFO_2 structure
with
my driver name
Windows NT x86 as environment
unidrv.dll as driver path
my.GPD as data file
myui.dll as config file

When executing this I get the error 2 back that means file not found. Do I
have to include the full path even though an OEM.INF is in the INF
directory?

Thank you for your help.
--
\Manfred



.