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/