From: Ken on 24 Jul 2006 06:44 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 26 Jul 2006 09:55 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
|
Pages: 1 Prev: Creating a KMDF NDIS <==> USB driver Next: PacketStackSize |