From: Ken on
Hi.
I want to initialize dmDeviceName field of DEVMODE structure. So that to
save the configuration information of the printer to registry during
PRINTER_EVENT_INITIALIZE event of DrvPrinterEvent() funcion.

But during DrvPrinterDriverEvent() we can get(as parameter to this function)
the name of printer being installed along with the local host name.

ex:
\\localhost\printername\

Including the local host name , the name of the printer exceedes the maximum
number of charaters that is defined i wingdi.h header file.

Is there any method to get the name of the printer without the local host
name?

Thanks In Advance..
Ken

From: Scott Robins on
OpenPrinter and GetPrinter/Setprinter are your friends. Although I haven't
tried it at PRINTER_EVENT_INITIALIZE time.

Are you sure you need to do this?

ScottR
--
Scott Robins