Usage of parport.sys

Discussion in 'Windows Vista Drivers' started by yangchu, Jul 18, 2005.

  1. yangchu

    yangchu Guest

    Parallel port(LPTx) is needed in my project. I used to take WinIo or
    GiveIo or DriverX and some other vendor drivers to control the port, which
    were simple to write a program with, but in my new project, interrupt would
    be much more frequently caused from the parallel port, after reading the spec
    of the system driver parport.sys, I decided to use it this time.
    By reading words about parport.sys in the MSDN, I knew that if I want to
    use that driver, I must include the head file parellel.h, I found parallel.h
    in the DDK, and found that I should include more DDK headfiles in my VC++
    project if I want to include parallel.h, so I wounder how could I use the
    driver correctly(are there any examples for this situation? ), or if there
    are other ways to solve my problem? Please tell me if you know, thanks very
    much.
     
    yangchu, Jul 18, 2005
    #1
    1. Advertisements

  2. yangchu

    Pavel A. Guest

    The include file you want to use in usermode application,
    is ntddpar.h. Ioctls defined in parallel.h are mostly internal and not
    intended to be called from user mode.

    On the other hand, if you write a kernel driver that calls parallel.sys, you
    won't be using VC++ compiler.

    Regards,
    --PA
     
    Pavel A., Jul 20, 2005
    #2
    1. Advertisements

  3. yangchu

    yangchu Guest

    I see. After reading ntddpar.h, I found that if I want to get interrupt
    control from parallel port, I need to find another driver or rewrite one
    myself.
    Thanks again for telling me.
     
    yangchu, Jul 21, 2005
    #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.