Share via


UMDF Samples

UMDF Samples

Sample name Build environment Target operating system PnP driver In-box driver Sample description

UMDF Driver Skeleton Sample

Windows 7

Windows Server 2008

Windows Vista

Windows 7

Windows Server 2008

Windows Vista

No

No

The UMDF Skeleton sample demonstrates how to write a minimal driver with the User-Mode Driver Framework (UMDF) and shows best practices. The Skeleton driver successfully loads on a device (either root enumerated or a real hardware device) but has the minimum Plug and Play (PnP) functionality and does not support any I/O operations.

The Skeleton driver is a template from which many of the other UMDF sample drivers were constructed. It is intended to serve as a starting point for other UMDF drivers that you might write.

UMDF Sample Driver for OSR USB Fx2 Learning Kit

Windows 7

Windows Server 2008

Windows Vista Windows XP

Windows 7

Windows Server 2008 Windows Vista Windows XP

No

No

The OSR USB Fx2 sample demonstrates how to perform bulk and interrupt data transfers to a USB device by using the User-Mode Driver Framework. This sample is written for the OSR USB FX2 Learning Kit device. The specification for the device is at OSR Web site.

The sample code relative to the installation directory for the WDK is in the src\usb\osrusbfx2\umdf\fx2_driver directory.

This sample is targeted to beginning, middle, and advanced driver developers.

UMDF SocketEcho Sample

Windows 7

Windows Server 2008

Windows Vista Windows XP

Windows 7

Windows Server 2008

Windows Vista Windows XP

No

No

The UMDF SocketEcho sample demonstrates how to use the User-Mode Driver Framework (UMDF) to write a driver and demonstrates best practices. This sample also demonstrates how to use a default parallel dispatch I/O queue, use a Microsoft Win32 dispatcher, and handle a socket handle by using a Win32 file I/O target.

WDF Hybrid 1394 Virtual Device Sample Driver

Windows 7

Windows Server 2008

Windows Vista Windows Server 2003 Windows XP

Windows 7

Windows Server 2008 Windows Vista Windows Server 2003 Windows XP

No

No

The driver present in this directory is a Windows Driver Foundation port of the 1394 Virtual Device sample driver and supporting dynamic link library present in the src\1394 directory.

This document and the associated source code describe how to interact with the 1394 driver stack. The WDF 1394 Hybrid Sample consist of two sample WDF Drivers, a UMDF component (umdf1394vdev.dll) and a KMDF component (kmdf1394vdev.sys). The sample also includes a user mode application that instantiates the loading the WDF Hybrid Driver stack and allows interaction with the 1394 bus driver through the installed WDF Hybrid Driver stack.