Which component would be the most appropriate component to develop

Discussion in 'Windows Vista Drivers' started by ssylee, May 26, 2008.

  1. ssylee

    ssylee Guest

    I have previously posted a question with respect to the WDK print processor
    example in terms of the installation and use of it as I'm unclear about some
    details of the MSDN documentation. I've basically managed to
    build the genprint example for Vista environment, but I am confused when I'm
    reading about the section on MSDN about "Installing a Print Processor." It
    says that I have to write an INF file before using the AddPrinter function
    while taking in a PRINTER_INFO_2 structure. There are a few questions that I
    don't understand:

    1. Do I need to have a printer driver and a print monitor dll files ready
    with the genprint dll files before I add the print processor and associate
    the print processor with a print queue?
    2. I tried to call AddPrinter after calling AddPrintProcessor in a test app,
    however, the compiler complaint about one of the parameter type conversion
    being inappropriate. Is this why the WDK documentation tells the developers
    to use an INF file to associate the print processor with a print queue?

    Secondly, I have tried to use the oemuni as well as its cousin examples
    (bitmap unidrv printer and watermarkuni), but I have received the following
    errors most of the time:

    COemUni2 - QueryInterface NULL Returning E_NOINTERFACE
    COemUni2 - GetInfo() exit pcbNeeded is NULL! ERROR_INVALID_PARAMETER

    BITMAP - same problem as above

    WATERMARKUNI:
    IWmarkUni::GetInfo() exit pcbNeeded is NULL! ERROR_INVALID_PARAMETER

    From the error message, it looks like I'm not getting any messages during
    the device communication stage, which could explain why I'm only getting an
    output file when I select "Print to File" option. Your attention to my
    questions would be much appreciated. Thanks.
     
    ssylee, May 26, 2008
    #1
    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.