hi
I am trying to add printer using
AddPrinterDriverEx & Addprinter Function
For AddprinterDriverEx fucntion i am using DRIVER_INFO_3
structure
In that if i give ConfigFile=RASDDUI.dll i am not facing problem
in AddPrinter Function
But if ConfigFile=xxx.dll, in this file i am adding somemore
property pages etc… then i am facing problem in AddPrinter
Function & the error it is giving is 1801(Printer name is
Invalid)
But if the same is done through AddPrinter wizard its not giving
problem
Can anybody show the light to overcome this problem
thanks in advance
IIRC, the driver files need to be copied to the 2 folder before calling
AddPrinterDriver(Ex) and AddPrinter. Maybe in the case of rasddui, since
the file already exists, AddPrinter has no problem with it. In any case,
did you check the registry entries after the call to AddPrinterDriverEx?
Do the appropriate driver entries exist under
x86\Drivers\Version-2> ?
- Ashwin
This posting is provided “AS IS” with no warranties, and confers no
rights.
-----Original Message-----
From: asha natraj [mailto:xxxxx@rediffmail.com]
Sent: Saturday, February 08, 2003 12:21 AM
To: NT Developers Interest List
Subject: [ntdev] AddPrinter
hi
I am trying to add printer using
AddPrinterDriverEx & Addprinter Function
For AddprinterDriverEx fucntion i am using DRIVER_INFO_3
structure
In that if i give ConfigFile=RASDDUI.dll i am not facing problem
in AddPrinter Function
But if ConfigFile=xxx.dll, in this file i am adding somemore
property pages etc… then i am facing problem in AddPrinter
Function & the error it is giving is 1801(Printer name is
Invalid)
But if the same is done through AddPrinter wizard its not giving
problem
Can anybody show the light to overcome this problem
thanks in advance
—
You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to xxxxx@lists.osr.com