Winusb APIs - How to use

Hi All,
I am writing a usb driver. My host side driver is not winusb driver. Still
to develop host side application, can i use winusb APIs?
Or i will need host side device specific APIs /IOCTL /PDK?

Please guide me.

Thanks & Regards,
Shalaka

You cannot use winusb.dll if you are using your own driver. Why can’t you use winusb.sys?

d

-----Original Message-----
From: “Shalaka Gujar”
To: “Windows System Software Devs Interest List”
Sent: 10/11/2008 5:06 AM
Subject: [ntdev] Winusb APIs - How to use

Hi All,

I am writing a usb driver. My host side driver is not winusb driver. Still to develop host side application, can i use winusb APIs?
Or i will need host side device specific APIs /IOCTL /PDK?

Please guide me.

Thanks & Regards,
Shalaka
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

I already have a host side device with driver. I am not writing a driver for
host side device.
Can i suppress my original driver of host device and use winusb as host
driver for my host device?

Please guide me.

Regards,
Shalaka

Subject: RE: Winusb APIs - How to use
From: Doron Holan
Date: Sat, 11 Oct 2008 09:09:30 -0700
X-Message-Number: 13

You cannot use winusb.dll if you are using your own driver. Why can’t you
use winusb.sys?

d

-----Original Message-----
From: “Shalaka Gujar”
To: “Windows System Software Devs Interest List”
Sent: 10/11/2008 5:06 AM
Subject: [ntdev] Winusb APIs - How to use

Hi All,

I am writing a usb driver. My host side driver is not winusb driver. Still
to develop host side application, can i use winusb APIs?
Or i will need host side device specific APIs /IOCTL /PDK?

Please guide me.

Thanks & Regards,
Shalaka

If you want to do that, sure. This will not be transparent to your app though. The app will have to change to use the winusb DLL APIs

d

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Shalaka Gujar
Sent: Sunday, October 12, 2008 11:31 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Winusb APIs - How to use

I already have a host side device with driver. I am not writing a driver for host side device.
Can i suppress my original driver of host device and use winusb as host driver for my host device?

Please guide me.

Regards,
Shalaka

Subject: RE: Winusb APIs - How to use
From: Doron Holan >
Date: Sat, 11 Oct 2008 09:09:30 -0700
X-Message-Number: 13

You cannot use winusb.dll if you are using your own driver. Why can’t you use winusb.sys?

d

-----Original Message-----
From: “Shalaka Gujar” >
To: “Windows System Software Devs Interest List” >
Sent: 10/11/2008 5:06 AM
Subject: [ntdev] Winusb APIs - How to use

Hi All,

I am writing a usb driver. My host side driver is not winusb driver. Still to develop host side application, can i use winusb APIs?
Or i will need host side device specific APIs /IOCTL /PDK?

Please guide me.

Thanks & Regards,
Shalaka
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Yes, WinUSB API can be used from the application only if WinUSB driver
is loaded for the device.
I used WinUSB api for bulk and interrupt transfers successfully. If
you are not dealing with Isochronous transfers, then you can load
WinUSB driver and use the client routines from the application.

Regards.

On Mon, Oct 13, 2008 at 12:14 PM, Doron Holan wrote:
> If you want to do that, sure. This will not be transparent to your app
> though. The app will have to change to use the winusb DLL APIs
>
>
>
> d
>
>
>
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Shalaka Gujar
> Sent: Sunday, October 12, 2008 11:31 PM
> To: Windows System Software Devs Interest List
> Subject: RE:[ntdev] Winusb APIs - How to use
>
>
>
>
>
> I already have a host side device with driver. I am not writing a driver for
> host side device.
>
> Can i suppress my original driver of host device and use winusb as host
> driver for my host device?
>
>
>
> Please guide me.
>
>
>
> Regards,
>
> Shalaka
>
>
>
> Subject: RE: Winusb APIs - How to use
> From: Doron Holan
> Date: Sat, 11 Oct 2008 09:09:30 -0700
> X-Message-Number: 13
>
> You cannot use winusb.dll if you are using your own driver. Why can’t you
> use winusb.sys?
>
> d
>
> -----Original Message-----
> From: “Shalaka Gujar”
> To: “Windows System Software Devs Interest List”
> Sent: 10/11/2008 5:06 AM
> Subject: [ntdev] Winusb APIs - How to use
>
>
>
> Hi All,
>
> I am writing a usb driver. My host side driver is not winusb driver. Still
> to develop host side application, can i use winusb APIs?
> Or i will need host side device specific APIs /IOCTL /PDK?
>
> Please guide me.
>
> Thanks & Regards,
> Shalaka
>
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the
> List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer

Hi,

Thanks . I am able to load winusb driver on my host side device. I took the
help of “WinUsb_HowTo.doc”. As per instructions given in the document, i
write my “.inf” file for my host side device and it works…

can i use winusb in wireless usb application? I am writing wireless usb
driver and application for the same. At host side, i have planned to use
winusb APIs for data transfer. Am i on right track?

Please guide me.

Regards,
Shalaka

Subject: RE: RE:Winusb APIs - How to use
From: Doron Holan
Date: Sun, 12 Oct 2008 23:44:07 -0700
X-Message-Number: 5

If you want to do that, sure. This will not be transparent to your app
though. The app will have to change to use the winusb DLL APIs

d

From: xxxxx@lists.osr.com [mailto:
xxxxx@lists.osr.com] On Behalf Of Shalaka Gujar
Sent: Sunday, October 12, 2008 11:31 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Winusb APIs - How to use

I already have a host side device with driver. I am not writing a driver for
host side device.
Can i suppress my original driver of host device and use winusb as host
driver for my host device?

Please guide me.

Regards,
Shalaka

Subject: RE: Winusb APIs - How to use
From: Doron Holan xxxxx@microsoft.com>>
Date: Sat, 11 Oct 2008 09:09:30 -0700
X-Message-Number: 13

You cannot use winusb.dll if you are using your own driver. Why can’t you
use winusb.sys?

d

-----Original Message-----
From: “Shalaka Gujar” >>
To: “Windows System Software Devs Interest List” mailto:xxxxx>
Sent: 10/11/2008 5:06 AM
Subject: [ntdev] Winusb APIs - How to use

Hi All,

I am writing a usb driver. My host side driver is not winusb driver. Still
to develop host side application, can i use winusb APIs?
Or i will need host side device specific APIs /IOCTL /PDK?

Please guide me.

Thanks & Regards,
Shalaka</mailto:xxxxx>

Hi,

Yes, i am able to load my host as winusb driver.

Thanks.

Regards,
Shalaka

Subject: Re: RE:Winusb APIs - How to use
From: Bhaskar
Date: Mon, 13 Oct 2008 12:21:59 +0530
X-Message-Number: 9

Yes, WinUSB API can be used from the application only if WinUSB driver
is loaded for the device.
I used WinUSB api for bulk and interrupt transfers successfully. If
you are not dealing with Isochronous transfers, then you can load
WinUSB driver and use the client routines from the application.

Regards.

On Mon, Oct 13, 2008 at 12:14 PM, Doron Holan
wrote:
> If you want to do that, sure. This will not be transparent to your app
> though. The app will have to change to use the winusb DLL APIs
>
>
>
> d
>
>
>
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Shalaka Gujar
> Sent: Sunday, October 12, 2008 11:31 PM
> To: Windows System Software Devs Interest List
> Subject: RE:[ntdev] Winusb APIs - How to use
>
>
>
>
>
> I already have a host side device with driver. I am not writing a driver
for
> host side device.
>
> Can i suppress my original driver of host device and use winusb as host
> driver for my host device?
>
>
>
> Please guide me.
>
>
>
> Regards,
>
> Shalaka
>
>
>
> Subject: RE: Winusb APIs - How to use
> From: Doron Holan
> Date: Sat, 11 Oct 2008 09:09:30 -0700
> X-Message-Number: 13
>
> You cannot use winusb.dll if you are using your own driver. Why can’t you
> use winusb.sys?
>
> d
>
> -----Original Message-----
> From: “Shalaka Gujar”
> To: “Windows System Software Devs Interest List”
> Sent: 10/11/2008 5:06 AM
> Subject: [ntdev] Winusb APIs - How to use
>
>
>
> Hi All,
>
> I am writing a usb driver. My host side driver is not winusb driver. Still
> to develop host side application, can i use winusb APIs?
> Or i will need host side device specific APIs /IOCTL /PDK?
>
> Please guide me.
>
> Thanks & Regards,
> Shalaka
>

I am glad that winusb is working for you?BUT, if your eventual goal is to have these wireless usb devices be controlled by KM drivers (let?s say a wireless usb keyboard so it will be controlled by hidusb), you will need to integrate into usbhub or create your own bus driver which supports the URB interface. Either option will require a KM driver, winusb just doesn?t work in that scenario.

d

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Shalaka Gujar
Sent: Tuesday, October 14, 2008 6:09 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] RE:Winusb APIs - How to use

Hi,

Thanks . I am able to load winusb driver on my host side device. I took the help of “WinUsb_HowTo.doc”. As per instructions given in the document, i write my “.inf” file for my host side device and it works…

can i use winusb in wireless usb application? I am writing wireless usb driver and application for the same. At host side, i have planned to use winusb APIs for data transfer. Am i on right track?

Please guide me.

Regards,
Shalaka

Subject: RE: RE:Winusb APIs - How to use
From: Doron Holan >
Date: Sun, 12 Oct 2008 23:44:07 -0700
X-Message-Number: 5

If you want to do that, sure. This will not be transparent to your app though. The app will have to change to use the winusb DLL APIs

d

From: xxxxx@lists.osr.commailto:xxxxx [mailto:xxxxx@lists.osr.commailto:xxxxx] On Behalf Of Shalaka Gujar
Sent: Sunday, October 12, 2008 11:31 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Winusb APIs - How to use

I already have a host side device with driver. I am not writing a driver for host side device.
Can i suppress my original driver of host device and use winusb as host driver for my host device?

Please guide me.

Regards,
Shalaka

Subject: RE: Winusb APIs - How to use
From: Doron Holan mailto:xxxxx>>
Date: Sat, 11 Oct 2008 09:09:30 -0700
X-Message-Number: 13

You cannot use winusb.dll if you are using your own driver. Why can’t you use winusb.sys?

d

-----Original Message-----
From: “Shalaka Gujar” mailto:xxxxx>>
To: “Windows System Software Devs Interest List” mailto:xxxxx>>
Sent: 10/11/2008 5:06 AM
Subject: [ntdev] Winusb APIs - How to use

Hi All,

I am writing a usb driver. My host side driver is not winusb driver. Still to develop host side application, can i use winusb APIs?
Or i will need host side device specific APIs /IOCTL /PDK?

Please guide me.

Thanks & Regards,
Shalaka
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>

Hi,

I am a bit confused. From below mail thread, i have concluded that for wusb
driver, we should have host side device driver.
However, we can use winusb but then we need to integrate winusb driver(host
side) into usbhub.
Will it be right way to integrate into usbhub ? or it will be better to have
original driver.

Please guide me.

Regards,
Shalaka

Subject: RE: RE:RE:Winusb APIs - How to use
From: Doron Holan
Date: Tue, 14 Oct 2008 13:58:24 -0700
X-Message-Number: 41

I am glad that winusb is working for you?BUT, if your eventual goal is to
have these wireless usb devices be controlled by KM drivers (let’s say a
wireless usb keyboard so it will be controlled by hidusb), you will need to
integrate into usbhub or create your own bus driver which supports the URB
interface. Either option will require a KM driver, winusb just doesn’t work
in that scenario.

d

From: xxxxx@lists.osr.com [mailto:
xxxxx@lists.osr.com] On Behalf Of Shalaka Gujar
Sent: Tuesday, October 14, 2008 6:09 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] RE:Winusb APIs - How to use

Hi,

Thanks . I am able to load winusb driver on my host side device. I took the
help of “WinUsb_HowTo.doc”. As per instructions given in the document, i
write my “.inf” file for my host side device and it works…

can i use winusb in wireless usb application? I am writing wireless usb
driver and application for the same. At host side, i have planned to use
winusb APIs for data transfer. Am i on right track?

Please guide me.

Regards,
Shalaka

Subject: RE: RE:Winusb APIs - How to use
From: Doron Holan xxxxx@microsoft.com>>
Date: Sun, 12 Oct 2008 23:44:07 -0700
X-Message-Number: 5

If you want to do that, sure. This will not be transparent to your app
though. The app will have to change to use the winusb DLL APIs

d

From: xxxxx@lists.osr.commailto:xxxxx@lists.osr.com> [mailto:xxxxx@lists.osr.com
mailto:xxxxx] On Behalf Of Shalaka Gujar
Sent: Sunday, October 12, 2008 11:31 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Winusb APIs - How to use

I already have a host side device with driver. I am not writing a driver for
host side device.
Can i suppress my original driver of host device and use winusb as host
driver for my host device?

Please guide me.

Regards,
Shalaka

Subject: RE: Winusb APIs - How to use
From: Doron Holan xxxxx@microsoft.com>mailto:xxxxxxxxxx@microsoft.com>>>
Date: Sat, 11 Oct 2008 09:09:30 -0700
X-Message-Number: 13

You cannot use winusb.dll if you are using your own driver. Why can’t you
use winusb.sys?

d

-----Original Message-----
From: “Shalaka Gujar” >mailto:xxxxx>>
To: “Windows System Software Devs Interest List” mailto:xxxxxmailto:xxxxxxxxxx@lists.osr.com>>>
Sent: 10/11/2008 5:06 AM
Subject: [ntdev] Winusb APIs - How to use

Hi All,

I am writing a usb driver. My host side driver is not winusb driver. Still
to develop host side application, can i use winusb APIs?
Or i will need host side device specific APIs /IOCTL /PDK?

Please guide me.

Thanks & Regards,
Shalaka</mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:>

You can use winusb. My point is that if you ever want the remote wireless usb devices to show up on the local host as local devices, you need a bus driver to do this. winusb cannot be a bus driver

d

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Shalaka Gujar
Sent: Wednesday, October 15, 2008 6:42 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] RE:RE:Winusb APIs - How to use

Hi,

I am a bit confused. From below mail thread, i have concluded that for wusb driver, we should have host side device driver.
However, we can use winusb but then we need to integrate winusb driver(host side) into usbhub.
Will it be right way to integrate into usbhub ? or it will be better to have original driver.

Please guide me.

Regards,
Shalaka

Subject: RE: RE:RE:Winusb APIs - How to use
From: Doron Holan >
Date: Tue, 14 Oct 2008 13:58:24 -0700
X-Message-Number: 41

I am glad that winusb is working for you?BUT, if your eventual goal is to have these wireless usb devices be controlled by KM drivers (let’s say a wireless usb keyboard so it will be controlled by hidusb), you will need to integrate into usbhub or create your own bus driver which supports the URB interface. Either option will require a KM driver, winusb just doesn’t work in that scenario.

d

From: xxxxx@lists.osr.commailto:xxxxx [mailto:xxxxx@lists.osr.commailto:xxxxx] On Behalf Of Shalaka Gujar
Sent: Tuesday, October 14, 2008 6:09 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] RE:Winusb APIs - How to use

Hi,

Thanks . I am able to load winusb driver on my host side device. I took the help of “WinUsb_HowTo.doc”. As per instructions given in the document, i write my “.inf” file for my host side device and it works…

can i use winusb in wireless usb application? I am writing wireless usb driver and application for the same. At host side, i have planned to use winusb APIs for data transfer. Am i on right track?

Please guide me.

Regards,
Shalaka

Subject: RE: RE:Winusb APIs - How to use
From: Doron Holan mailto:xxxxx>>
Date: Sun, 12 Oct 2008 23:44:07 -0700
X-Message-Number: 5

If you want to do that, sure. This will not be transparent to your app though. The app will have to change to use the winusb DLL APIs

d

From: xxxxx@lists.osr.commailto:xxxxxmailto:xxxxx> [mailto:xxxxx@lists.osr.commailto:xxxxxmailto:xxxxx>] On Behalf Of Shalaka Gujar
Sent: Sunday, October 12, 2008 11:31 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Winusb APIs - How to use

I already have a host side device with driver. I am not writing a driver for host side device.
Can i suppress my original driver of host device and use winusb as host driver for my host device?

Please guide me.

Regards,
Shalaka

Subject: RE: Winusb APIs - How to use
From: Doron Holan mailto:xxxxx>mailto:xxxxxmailto:xxxxx>>>
Date: Sat, 11 Oct 2008 09:09:30 -0700
X-Message-Number: 13

You cannot use winusb.dll if you are using your own driver. Why can’t you use winusb.sys?

d

-----Original Message-----
From: “Shalaka Gujar” mailto:xxxxx>mailto:xxxxxmailto:xxxxx>>>
To: “Windows System Software Devs Interest List” mailto:xxxxx>mailto:xxxxxmailto:xxxxx>>>
Sent: 10/11/2008 5:06 AM
Subject: [ntdev] Winusb APIs - How to use

Hi All,

I am writing a usb driver. My host side driver is not winusb driver. Still to develop host side application, can i use winusb APIs?
Or i will need host side device specific APIs /IOCTL /PDK?

Please guide me.

Thanks & Regards,
Shalaka
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>

Hi,

Thanks Doron. I have suppressed original host driver and written my own inf
file for winusb. Am i on right track? or should i need to install virtual
winusb device and keep the original driver as it is.

I am dealing with local device and host and not the remote one.
Please guide me.

Regards,
Shalaka

RE: RE:RE:RE:Winusb APIs - How to use

You can use winusb. My point is that if you ever want the remote wireless
usb devices to show up on the local host as local devices, you need a bus
driver to do this. winusb cannot be a bus driver d From:
xxxxx@lists.osr.com[mailto:
xxxxx@lists.osr.com] On Behalf Of Shalaka Gujar Sent: Wednesday, October 15,
2008 6:42 AM To: Windows System Software Devs Interest List Subject:
RE:[ntdev] RE:RE:Winusb APIs - How to use Hi, I am a bit confused. From
below mail thread, i have concluded that for wusb driver, we should have
host side device driver. However, we can use winusb but then we need to
integrate winusb driver(host side) into usbhub. Will it be right way to
integrate into usbhub ? or it will be better to have original driver. Please
guide me. Regards, Shalaka Subject: RE: RE:RE:Winusb APIs - How to use From:
Doron Holan > Date: Tue, 14 Oct 2008 13:58:24 -0700 X-Message-Number: 41 I
am glad that winusb is working for you?BUT, if your eventual goal is to have
these wireless usb devices be controlled by KM drivers (let’s say a wireless
usb keyboard so it will be controlled by hidusb), you will need to integrate
into usbhub or create your own bus driver which supports the URB interface.
Either option will require a KM driver, winusb just doesn’t work in that
scenario. d From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf
Of Shalaka Gujar Sent: Tuesday, October 14, 2008 6:09 AM To: Windows System
Software Devs Interest List Subject: RE:[ntdev] RE:Winusb APIs - How to use
Hi, Thanks . I am able to load winusb driver on my host side device. I took
the help of “WinUsb_HowTo.doc”. As per instructions given in the document, i
write my “.inf” file for my host side device and it works… can i use
winusb in wireless usb application? I am writing wireless usb driver and
application for the same. At host side, i have planned to use winusb APIs
for data transfer. Am i on right track? Please guide me. Regards, Shalaka
Subject: RE: RE:Winusb APIs - How to use From: Doron Holan >> Date: Sun, 12
Oct 2008 23:44:07 -0700 X-Message-Number: 5 If you want to do that, sure.
This will not be transparent to your app though. The app will have to change
to use the winusb DLL APIs d From: xxxxx@lists.osr.com> [mailto:
xxxxx@lists.osr.com>] On Behalf Of Shalaka Gujar Sent: Sunday, October 12,
2008 11:31 PM To: Windows System Software Devs Interest List Subject:
RE:[ntdev] Winusb APIs - How to use I already have a host side device with
driver. I am not writing a driver for host side device. Can i suppress my
original driver of host device and use winusb as host driver for my host
device? Please guide me. Regards, Shalaka Subject: RE: Winusb APIs - How to
use From: Doron Holan >>>> Date: Sat, 11 Oct 2008 09:09:30 -0700
X-Message-Number: 13 You cannot use winusb.dll if you are using your own
driver. Why can’t you use winusb.sys? d -----Original Message----- From:
“Shalaka Gujar” >>>> To: “Windows System Software Devs Interest List” >>>>
Sent: 10/11/2008 5:06 AM Subject: [ntdev] Winusb APIs - How to use Hi All, I
am writing a usb driver. My host side driver is not winusb driver. Still to
develop host side application, can i use winusb APIs? Or i will need host
side device specific APIs /IOCTL /PDK? Please guide me. Thanks & Regards,
Shalaka — NTDEV is sponsored by OSR For our schedule of WDF, WDM,
debugging and other seminars visit: http://www.osr.com/seminars To
unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=3DListServer