WDF Custom Driver Design Pattern

Download Report

Transcript WDF Custom Driver Design Pattern

•
•
•
•
•
•
•
•
•
•
•
•
•
A device, such as a USB attached device, that doesn't fit into any of the other patterns.
Protocols: Any. A custom device driver provides access to the device from the app
Access Model: Restricted
API: Device Access: (CreateDeviceAccessInstance(), IDeviceIoControl())
Advantages
Disadvantages
Can meet needs of the broadest range of
devices
Requires development, certification & maintenance of a custom device driver
Vendor controls which Metro style apps access
their device
Only vertical solutions are supported, and only a small # of apps can have privileged
access to the device
Existing custom drivers can be easily adapted
for this pattern
This is the most complicated pattern with the most components and moving parts.
Communications between app and driver must be written in C++
Not supported for external devices on WinRT
•
•
•
•
+
Device
+ app + meta
Device driver
Metro style app
Device metadata
•
•
•
•
•
•
Device
•
•
•
Using the Windows Driver Framework to build better drivers
•
•
•
•
•
•
•
Device driver
•
•
•
•
•
•
app
Metro style app
•
•
•
•
•
•
meta
Device metadata
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•