Use an existing kernel-mode driver with a new user-mode driver

Use an existing kernel-mode driver with a new user-mode driver

Post by RGNsc » Thu, 28 Jun 2007 22:56:02


I have to write a WIA user-mode driver (so a *.dll) and I have to use an
existing kernel-mode driver (usbscan.sys) in order to communicate with the
device.

Where can I find a guideline?

Thank you!
 
 
 

Use an existing kernel-mode driver with a new user-mode driver

Post by a3Vhc2h » Fri, 29 Jun 2007 14:34:00

Starting point is possibly the Windows Driver Kit documentation.

Also the blog contains usefull information and link:

http://www.yqcomputer.com/

--
Sincerely,
Maruf Maniruzzaman,
Software Engineer,
KAZ Software Limited,
Dhaka, Bangladesh.
http://www.yqcomputer.com/
http://www.yqcomputer.com/

 
 
 

Use an existing kernel-mode driver with a new user-mode driver

Post by Tim Robert » Sat, 30 Jun 2007 13:26:01


No, that doesn't have anything to do with either usbscan.sys or WIA.
--
Tim Roberts, XXXX@XXXXX.COM
Providenza & Boekelheide, Inc.
 
 
 

Use an existing kernel-mode driver with a new user-mode driver

Post by Tim Robert » Sat, 30 Jun 2007 13:35:37


Where have you looked?

A WIA minidriver is not particularly hard, but there are a lot of routines
to fill in. The samples are a good start.
--
Tim Roberts, XXXX@XXXXX.COM
Providenza & Boekelheide, Inc.
 
 
 

Use an existing kernel-mode driver with a new user-mode driver

Post by RGNsc » Sat, 30 Jun 2007 15:56:04

Thanks for your answers.

I am studying the "wiascanr" minidriver sample.
I read the "USB Driver" in "Imaging Devices" from the WDK.
I saw the CreateFile and an example of the DeviceIoControl.

I will make some research on I/O control codes... But it would be great if I
find a guideline for the use of ReadFile/Bulk IN, WriteFile/Bulk OUT in order
to receive or send data to a real device, not the fake device of the sample.

Cedric