summaryrefslogtreecommitdiff
path: root/usb/ufxclientsample/README.md
blob: 1030135c72dddb7851dd05f96b602977e7c481ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
page_type: sample
description: "Demonstrates how to create a Windows USB function controller driver using the USB function class extension driver (UFX)."
languages:
- cpp
products:
- windows
- windows-wdk
---

# USB Function Client Driver

This is a skeleton sample driver that shows how to create a Windows USB function controller driver using the USB function class extension driver (UFX).

This sample demonstrates the following:

- Registration with the UFX class extension driver

- Handling USB transfers

- Handling function controller events

- Handling attach and detach notifications

- Handling charger/port detection

- Power management

## Operating system requirements

Windows 10 Mobile

## Customizing the sample for your device

This sample is not a functional driver. It is a skeleton driver intended to illustrate the general design of a UFX client driver.  The sample contains a number of comments prefaced with " #### TODO ", which indicates where code will need to be added to perform the controller operation as described in the comment.

## Installation Note

Installation on Windows 10 Mobile requires the creation of a package.  To properly interact with the USB UI on Windows 10 Mobile, the package must include a Security Element that specifies the ID_CAP_USB capability with DEVICE_READ and DEVICE_WRITE rights.