Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword
Like this
3Activity
×
0 of .
Results for:
No results containing your search query
P. 1
WinUsb HowTo

WinUsb HowTo

Ratings: (0)|Views: 1,264|Likes:
Published by eljar

More info:

Published by: eljar on Jun 24, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, DOCX, TXT or read online from Scribd
See More
See less

05/21/2013

pdf

text

original

 
 
How to Use WinUSB toCommunicate with a USB Device
March 9, 2010
 
Abstract
Independent
har
dw
ar
e
v
endo
rs (
IHV
s)
w
h
o
ma
nuf 
ac
tu
r
e
USB
de
vic
e
s m
u
s
t
 
often
 
p
r
o
vi
de
a
w
ay
fo
r a
ppl
ica
t
i
on
s
to
acc
e
ss
t
h
e
 
de
vic
e
s
fe
a
tu
r
e
s.
H
is
to
rica
ll
y,
t
his hasm
e
a
nt
 
u
si
ng
 
t
h
e
Wi
ndow
s® Driv
e
r M
odel
(WDM)
to
im
ple
m
ent
a
fun
c
t
i
on
 
d
riv
e
r
fo
r
t
h
e
 
de
vic
e
a
nd
i
n
s
t
a
ll
i
ng
 
t
h
e
 
d
riv
e
r i
n
 
t
h
e
 
de
vic
e
s
t
ack ab
o
v
e
sys
te
m-s
uppl
i
ed
 
p
r
oto
c
ol
 
d
riv
e
rs. Th
e
Wi
ndow
s Driv
e
r F
ound
a
t
i
on
(WDF) is
now
 
t
h
e
 
p
r
efe
rr
ed
m
odel
 
fo
r USB
d
riv
e
rs.
It
 
p
r
o
vi
de
s
IHV
s
w
i
t
h
t
hr
ee
 
opt
i
on
s
fo
r
p
r
o
vi
d
i
ng
acc
e
ss
to
a USB
de
vic
e:
 
y
 
I
m
ple
m
ent
i
ng
a
u
s
e
r-m
ode
 
d
riv
e
r by
u
si
ng
 
t
h
e
WDF
u
s
e
r-m
ode
 
d
riv
e
r
ram
ewo
rk(UMDF).
y
 
I
m
ple
m
ent
i
ng
a k
e
r
nel
-m
ode
 
d
riv
e
r by
u
si
ng
 
t
h
e
WDF k
e
r
nel
-m
ode
 
d
riv
e
r
ram
ewo
rk (KMDF).
y
 
In
s
t
a
ll
i
ng
Wi
n
Usb.sys as
t
h
e
 
de
vic
e
s
fun
c
t
i
on
 
d
riv
e
r a
nd
 
p
r
o
vi
d
i
ng
a
n
a
ppl
ica
t
i
on
 
t
ha
t
acc
e
ss
e
s
t
h
e
 
de
vic
e
by
u
si
ng
 
t
h
e
Wi
n
USB AP
I
.This
w
hi
te
 
p
a
pe
r
p
r
o
vi
de
s
gu
i
del
i
ne
s
fo
r
w
h
en
 
to
 
u
s
e
 
e
ach
opt
i
on
a
nd
i
n
c
lude
s a
det
ai
led
 
w
a
l
k
t
hr
oug
h
of 
h
ow
 
to
i
n
s
t
a
ll
Wi
n
Usb.sys as a
de
vic
e
s
fun
c
t
i
on
 
d
riv
e
r a
nd
 
u
s
e
 
t
h
e
Wi
n
USB AP
I
 
to
c
o
mm
un
ica
te
 
w
i
t
h
t
h
e
 
de
vic
e
.This i
nfo
rma
t
i
on
a
ppl
i
e
s
fo
r
t
h
e
 
follow
i
ng
 
ope
ra
t
i
ng
sys
te
ms
:
 Wi
ndow
s 7Wi
ndow
s S
e
rv
e
r
®
2008Wi
ndow
s
V
is
t
Wi
ndow
s XPR
efe
r
en
c
e
s a
nd
r
e
s
ou
rc
e
s
d
isc
u
ss
ed
h
e
r
e
ar
e
 
l
is
ted
a
t
 
t
h
e
 
end
 
of 
 
t
his
p
a
pe
r.F
o
r
t
h
e
 
l
a
te
s
t
i
nfo
rma
t
i
on
, s
ee:
 h
ttp://www
.micr
o
s
oft
.c
o
m
/w
h
d
c
/
c
onne
c
t/u
sb
/w
i
nu
sb_h
owto
.ms
px
 
 
How
 
to
Us
e
Wi
n
USB
to
C
o
mm
un
ica
te
 
w
i
t
h a USB D
e
vic
e
- 2March 9, 2010© 2010 Micr
o
s
oft
C
o
r
po
ra
t
i
on
. A
ll
ri
g
h
t
s r
e
s
e
rv
ed
.
Disclaimer:
This is a preliminary document and may be changed substantially prior to final commercial release of the software described herein.The information contained in this document represents the current view of Microsoft Corporation on theissues discussed as of the date of publication. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information presented after the date of publication.This White Paper is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS,IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS DOCUMENT.Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation.Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rightscovering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks,copyrights, or other intellectual property.Unless otherwise noted, the example companies, organizations, products, domain names, e-mail addresses,logos, people, places and events depicted herein are fictitious, and no association with any real company,organization, product, domain name, email address, logo, person, place or event is intended or should beinferred.© 2010 Microsoft Corporation. All rights reserved.Microsoft, MSDN, Windows, Windows Server, and Windows Vista are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.The names of actual companies and products mentioned herein may be the trademarks of their respectiveowners.
Revision History
Da
te
Cha
nge
 March 9, 2010
 
U
pd
a
ted
 
t
h
e
 
IN
F sam
ple
i
n
 
t
h
e
s
e
c
t
i
on
How
 
to
 
In
s
t
a
ll
Wi
n
Usb.sys as a F
un
c
t
i
on
 Driv
e
r.March 30, 2009
 
A
dded
a
dd
i
t
i
on
a
l
i
nfo
rma
t
i
on
 
fo
r c
o
mm
un
ica
t
i
ng
 
w
i
t
h
endpo
i
nt
s.D
e
c
e
mb
e
r 6, 2007
 
A
dded
a s
e
c
t
i
on
 
on
DFU
to
 
t
h
e
Wi
n
USB FAQ.
 
R
e
m
o
v
ed
 
t
h
e
 
note
 
r
o
m Tab
le
1 i
nd
ica
t
i
ng
 
t
ha
t
Wi
n
USB
doe
s
not
s
uppo
r
t
 Wi
n
USB s
ele
c
t
iv
e
s
u
s
pend
 
on
Wi
ndow
s XP.A
ugu
s
t
30, 2007Cr
e
a
ted
 
 
How
 
to
Us
e
Wi
n
USB
to
C
o
mm
un
ica
te
 
w
i
t
h a USB D
e
vic
e
- 3March 9, 2010© 2010 Micr
o
s
oft
C
o
r
po
ra
t
i
on
. A
ll
ri
g
h
t
s r
e
s
e
rv
ed
.
Contents
Int
r
odu
c
t
i
on
................................................................................................................4S
u
mmary
of 
Wi
n
USB, UMDF, a
nd
KMDF Ca
p
abi
l
i
t
i
e
s ..................................................5G
u
i
del
i
ne
s
fo
r Pr
o
vi
d
i
ng
Acc
e
ss
to
USB D
e
vic
e
s...........................................................6
Int
r
odu
c
t
i
on
 
to
Wi
n
USB ..............................................................................................6Wi
n
USB FAQ ...............................................................................................................7
How
 
to
 
In
s
t
a
ll
Wi
n
Usb.sys as a F
un
c
t
i
on
Driv
e
r ...........................................................8
How
 
to
Us
e
 
t
h
e
Wi
n
USB AP
I
..................................................................................... 12Ob
t
ai
n
a
H
a
ndle
 
to
 
t
h
e
D
e
vic
e
a
nd
 
In
i
t
ia
l
iz
e
Wi
n
USB ............................................ 13Ob
t
ai
n
 
t
h
e
D
e
vic
e
Pa
t
h ..................................................................................... 13Ob
t
ai
n
a Fi
le
 
H
a
ndle
 
fo
r
t
h
e
D
e
vic
e
................................................................... 15
In
i
t
ia
l
iz
e
Wi
n
USB .............................................................................................. 16C
onf 
i
gu
r
e
 
t
h
e
D
e
vic
e
............................................................................................ 16C
o
mm
un
ica
te
 
w
i
t
h E
ndpo
i
nt
s ............................................................................... 18C
ont
r
ol
R
eque
s
t
s .............................................................................................. 18Wi
n
USB
I/
O R
eque
s
t
s ....................................................................................... 19Wi
n
USB Wri
te
R
eque
s
t
s ................................................................................... 20D
ef 
a
ult
Wi
n
USB Wri
te
B
e
havi
o
r........................................................................ 20Wi
n
USB R
e
a
d
R
eque
s
t
s .................................................................................... 21D
ef 
a
ult
Wi
n
USB R
e
a
d
B
e
havi
o
r ........................................................................ 21Pi
pe
P
ol
ici
e
s ..................................................................................................... 21Wi
n
USB P
owe
r Ma
n
a
ge
m
ent
............................................................................ 23S
ele
c
t
iv
e
S
u
s
pend
............................................................................................. 23D
ete
c
t
i
ng
 
Idle
................................................................................................... 24F
utu
r
e
F
e
a
tu
r
e
C
on
si
de
ra
t
i
on
s .................................................................................. 24S
u
mmary .................................................................................................................. 24R
e
s
ou
rc
e
s ................................................................................................................. 24

Activity (3)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
Ancd Desa liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->