Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Developing a WDF USB Kernel Mode Driver for the OSR USB FX2

, 30 Mar 2006 MIT
This article describes the process of developing a USB Kernel mode device driver using the WDF Kernel Mode Driver Foundation.
article_demo.zip
tester.exe
wdf_usb_api.dll
kmdf_usb_driver.zip
WDF_Usb_driver
makefile
sources
wdf_usb_man.inf
#include "ProtoTypes.h"

#pragma alloc_text(INIT, DriverEntry)

/*............................................................................*/
/* entry point for the driver.                                                */
/*............................................................................*/
NTSTATUS DriverEntry(
    IN PDRIVER_OBJECT  DriverObject, 
    IN PUNICODE_STRING  RegistryPath
    )
{
  WDF_DRIVER_CONFIG config;
  NTSTATUS status;

  KdPrint(("DriverEntry of WDF_Usb\n"));

  WDF_DRIVER_CONFIG_INIT(&config, EvtDeviceAdd);

  status = WdfDriverCreate(
                      DriverObject,
                      RegistryPath,
                      WDF_NO_OBJECT_ATTRIBUTES,
                      &config,
                      WDF_NO_HANDLE);

  if(!NT_SUCCESS(status))
  {
    KdPrint((__DRIVER_NAME
      "WdfDriverCreate failed with status 0x%08x\n", status));
  }

  return status;
}


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License

Share

About the Author

Bruno van Dooren
Web Developer
Belgium Belgium
I am a professional software developer with an interest in everything that is about making hardware work.
 
In the course of my work, I have programmed device drivers and services on Windows and linux.
 
I have written firmware for embedded devices in C and assembly language, and have designed and implemented real-time applications for testing of sattelite payload equipment.
 
Generally, finding out how to interface hardware with software is my hobby and job.

| Advertise | Privacy | Mobile
Web03 | 2.8.141022.2 | Last Updated 30 Mar 2006
Article Copyright 2006 by Bruno van Dooren
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid