Parallel port low-level access

Hi guys,

I need to play with the data pins of LPT1. Correct me if I'm wrong, but I believe that the best way to do this is with DeviceIoControl. I have found a snipet of code in which the dwIoControlCode parameter of DeviceIoControl is IOCTL_PP_WRITE_DATA, but this value does not seem to be defined in standard VC6 includes, nor in the 2003 Platform SDK. Searches on MSDN, MSN and Google return no helpfull hits.

Could it be defined in the DDK If so, do I need to get the whole DDK to get this value

Has anyone ever heard of the IOCTL_PP_WRITE_DATA const

Thanks for any feedback on this :-)



Answer this question

Parallel port low-level access

  • Aguila

    I also found InpOut32, great stuff.
    I get the point: you can't play with the ports like you want to anymore. Gotta go thru drivers and services.

    Thanks for the help!
    Joe

  • mukundb

    IOCTL_PP* is not defined in the DDK. My weapon of choice to do anything with I/O ports is Port95NT, Google it and take the first hit (beware of plug-and-play). For a fun book about playing with parallel ports: http://www.lvr.com/parprtib.htm



  • nasbags

    This forum is for Visual C++ tools issues.  For Platform SDK questions, you can go to the MSDN Discussion groups here: http://msdn.microsoft.com/newsgroups/topic.aspx url=/MSDN-FILES/028/201/015/topic.xml

    Thanks.

     OTP


  • Parallel port low-level access