I would write an utility to program parallel port
for I2C. The user mode program cannot in/out the
I/O port directly on Windows 2K/XP. What should I
do to solve the problem?

As I konw, I need a kernel mode driver to read/write
the I/O port. What should the kernel driver do? and
how?

Best Regards

Jackal Huang

RE: How to program parallel port on Windows 2K/XP? by Arnold

Arnold
Tue Jul 20 04:41:02 CDT 2004

Hi!
I worked with the parallel port before and I used dlportio to talk dirctly to the port. You can find this driver at: http://www.driverlinx.com/DownLoad/DlPortIO.htm. It contains all kind of function to communicate with the parallel port. I hope it helps.
--
Oreo


"Jackal Huang" wrote:

> I would write an utility to program parallel port
> for I2C. The user mode program cannot in/out the
> I/O port directly on Windows 2K/XP. What should I
> do to solve the problem?
>
> As I konw, I need a kernel mode driver to read/write
> the I/O port. What should the kernel driver do? and
> how?
>
> Best Regards
>
> Jackal Huang
>

RE: How to program parallel port on Windows 2K/XP? by anonymous

anonymous
Tue Jul 20 21:47:35 CDT 2004

I would like to know how to implement in the kernel driver.
Use READ_PORT_UCHAR/WRITE_PORT_UCHAR to in/out parallel
port (eg. 378h)directly in the kernel driver??
or what another procedure I should do before read/write
the parallel port?

Best Regards

Jackal Huang
>-----Original Message-----
>Hi!
>I worked with the parallel port before and I used
dlportio to talk dirctly to the port. You can find this
driver at:
http://www.driverlinx.com/DownLoad/DlPortIO.htm. It
contains all kind of function to communicate with the
parallel port. I hope it helps.
>--
>Oreo
>
>
>"Jackal Huang" wrote:
>
>> I would write an utility to program parallel port
>> for I2C. The user mode program cannot in/out the
>> I/O port directly on Windows 2K/XP. What should I
>> do to solve the problem?
>>
>> As I konw, I need a kernel mode driver to read/write
>> the I/O port. What should the kernel driver do? and
>> how?
>>
>> Best Regards
>>
>> Jackal Huang
>>
>.
>

Re: How to program parallel port on Windows 2K/XP? by Spiro

Spiro
Wed Jul 21 02:07:00 CDT 2004

Hello,

<anonymous@discussions.microsoft.com> wrote:

> I would like to know how to implement in the kernel driver. Use
> READ_PORT_UCHAR/WRITE_PORT_UCHAR to in/out parallel port (eg.
> 378h)directly in the kernel driver??

Yes, this works, but it is not recommended. Have a look at the DDK
documentation ("Parallel Ports and Devices").

> or what another procedure I should do before read/write the parallel
> port?

If you want to use it, you should get the informatione from the
parport.sys driver (IOCTL_INTERNAL_GET_PARALLEL_PORT_INFO, and the
like), allocate it (IOCT_INTERNAL_PARALLEL_PORT_ALLOCATE), use it (with
READ_PORT_UCHAR/WRITE_PORT_UCHAR), using the information you got before
with the help of IOCTL_INTERNAL_GET_PARALLEL_PORT_INFO.

After you're done, free it (IOCTL_INTERNAL_PARALLEL_PORT_FREE).

For details, read the DDK info, please.

Regards,
Spiro.

--
Spiro R. Trikaliotis
http://www.trikaliotis.net/
http://www.viceteam.org/