Rendering Plugin's EnablePDEV

Discussion in 'Windows Vista Drivers' started by Andrew, Oct 21, 2003.

  1. Andrew

    Andrew Guest

    Hello,

    I am currently developing a common rendering plugin for 5 serial
    printers, In EnablePDEV() I tried using the pPrinterName parameter to
    differentiate between my 5 printers so that I can insert customized
    code for each printer model. My problem is, when I set the port to
    FILE: It seems that the value of pPrinterName is always the default
    printer(not the currently selected printer), It works fine when set to
    other ports like LPT1.

    Is this a specification?
    Or maybe I'M doing it all wrong, Can anybody tell me how to get the
    currently selected printer during or before EnablePDEV timing.


    Thanks in advance
    -andrew
     
    Andrew, Oct 21, 2003
    #1
    1. Advertisements

  2. Or maybe I'M doing it all wrong, Can anybody tell me how to get the
    Use interface provided to you in PublishDriverInterface and read content of
    ..gpd file associated with each printer. This, of course, implies that each
    printer has some common feature in their .gpd file (hide it from UI as well)
    and each of them has distinct default option. Alternatively you can use OEM
    data section in .gpd.
     
    Serguei Narojnyi, Oct 26, 2003
    #2
    1. Advertisements

  3. Andrew

    Andrew Guest

    Thanks for the reply. I'll look into that option-using the
    PublishDriverInterface. It seems that the pPrinterName in
    the EnablePdev is not being refreshed so currently what I
    did was to getteh Handle to the printer from pdevobj and
    from there on, retrieved a PRINTER_INFO structure to get
    the driver name. It seems to work fine, still have to do
    some testing though.
     
    Andrew, Oct 28, 2003
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.