How to create/control Virtual IO Ports from a WDM Driver?

Hi Experts,
I need to allocate some virtual IO ports from my driver and i
need
to do some processing whenever a read/write access happens on that IO ports.
Any ideas/links/pointers how i can accomplish this?

I am writing a WDM driver for USB to Parallel Port. In
Windows 98
if spooler option is not checked, then the printer driver directly access
the IO Ports.
As my device is a USB device it does not have any IO ports.

Thanks a million…

regards,
Vijay

—Share what you know. Learn what you don’t.—