在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → Windows设备驱动程序WDF开发源码.rar

Windows设备驱动程序WDF开发源码.rar

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:2.20M
  • 下载次数:13
  • 浏览次数:164
  • 发布时间:2021-11-28
  • 实例类别:一般编程问题
  • 发 布 人:js2021
  • 文件格式:.rar
  • 所需积分:2
 

实例介绍

【实例简介】
《Windows设备驱动程序WDF开发》既适合具有一定计算机硬件及C/C++语言基础的计算机应用开发人员阅读,也适合作为计算机应用开发人员和高等院校学生的实用参考书。Windows最新的WDF驱动程序框架,包括KMDF和UMDF,KMDF是WDM的继续。本书主要介绍KMDF设备驱动程序的原理及编程方法;详细介绍KMDF对象及程序基本框架,KMDF和应用程序之间的通信、即插即用和电源管理的编程技术,过滤器驱动程序,KMDF访问硬件设备、处理硬件中断、实现DMA操作的编程技术,以及USB接口和PCI接口设备驱动程序KMDF的开发。还对UMDF设备驱动程序作了编程入门介绍。本书附有13个典型的编程实例,便于读者学习和掌握. 目录 第1章 Windows 2000和WDM驱动程序 1.1 Windows 2000组件概述 1.2 Windows 2000中的驱动程序种类 1.3 WDM驱动程序特点 1.2.1 内核模式驱动程序的设计目标 1.3.2 WDM驱动程序模型 1.3.3 设备和驱动程序的层次结构 1.3.4 中断级别IRQL 1.3.5 设备接口 第2章 KMDF驱动程序框架 2.1 KMDF对象 2.1.1 对象概念 2.1.2 基本对象 2.2 KMDF程序结构 2.2.1 DriverEntry例程 2.2.2 EvtDriverDeviceAdd例程 2.2.3 I/O处理例程 2.2.4 即插即用和电源管理例程 2.3 CharSample实例 第3章 基本对象 3.1 WDFREQUEST对象 3.1.1 WDFREQUEST对象函数 3.1.2 I/O请求基本操作 3.2 WDFQUEUE对象 3.2.1 WDFQUEUE对象函数 3.2.2 队列编程 3.3 WDFTIMER对象 3.4 WDFDPC对象 3.5 WDFWORKITEM对象 3.6 WDFMEMORY对象 3.7 数据同步访问 3.7.1 WDFSPINLOCK对象 3.7.2 WDFWAITLOCK对象 3.8 字符串操作 3.8.1 字符串格式 3.8.2 WDFSTRING对象 3.8.3 串处理函数 3.9 QueueSample实例 第4章 KMDF驱动程序编程入门 4.1 建立KMDF编程环境 4.2 创建KMDF驱动程序 4.3 生成KMDF驱动程序 4.4 安装KMDF驱动程序 4.5 RegSample实例 4.5.1 RegSample驱动程序 4.5.2 Win32 Console应用程序 4.5.3 MFC应用程序 4.6 调试说明 第5章 KMDF驱动程序和应用程序之间的通信 5.1 应用程序对驱动程序的通信 5.1.1 打开设备 5.1.2 关闭设备 5.1.3 DeviceIoControl函数调用 5.1.4 ReadFile和WriteFile函数调用 5.1.5 IOSample实例 5.2 驱动程序对应用程序的通信 5.2.1 DeviceIoControl异步完成 5.2.2 WIN32事件通知 5.3 驱动程序对应用程序通信实例 5.3.1 异步完成实例CancelSample 5.3.2 事件通知实例EventSample 第6章 即插即用例程 6.1 即插即用简介 6.1.1 PnP组件 6.1.2 即插即用例程 6.1.3 例程的加载和卸载顺序 6.2 PnpPowerSample实例 第7章 电源管理 7.1 电源管理简介 7.1.1 系统电源状态与设备电源状态 7.1.2 电源管理控制标志位 7.1.3 设备的唤醒特征和空闲检测 7.2 电源管理编程 7.2.1 电源管理基本例程 7.2.2 设备唤醒 7.2.3 空闲检测 7.3 IdleSample实例 第8章 KMDF过滤器驱动程序 8.1 KMDF过滤器驱动程序的编程 8.2 KMDF过滤器驱动程序安装 8.3 FilterSample实例 第9章 USB设备开发 9.1 USB接口概述 9.1.1 USB设备的配置、接口和端点 9.1.2 USB数据的传输方式 9.1.3 USB描述符 9.1.4 标准设备请求 9.2 USB编程对象 9.2.1 WDFUSBDEVICE对象 9.2.2 WDFUSBINTERFACE对象 9.2.3 WDFUSBPIPE对象 9.3 USB编程 9.3.1 激活配置与中止配置 9.3.2 同步操作 9.3.3 异步操作 9.4 USBSample实例 第10章 PCI设备驱动程序开发 10.1 硬件访问 10.1.1 I/O访问 10.1.2 存储器访问 10.1.3 硬件访问编程 10.2 中断处理 10.2.1 WDFINTERRUPT对象 10.2.2 中断处理编程 10.3 DMA传输
【实例截图】
【核心代码】
4744300845170893497.rar
└── Windows设备驱动程序WDF开发源码
├── CancelSample
│   ├── buildchk_wxp_x86.log
│   ├── dirs
│   ├── exe
│   │   ├── public.h
│   │   ├── ReadMe.txt
│   │   ├── StdAfx.cpp
│   │   ├── StdAfx.h
│   │   ├── Test_CancelSample.cpp
│   │   ├── Test_CancelSample.dsp
│   │   ├── Test_CancelSample.dsw
│   │   ├── Test_CancelSample.ncb
│   │   ├── Test_CancelSample.opt
│   │   └── Test_CancelSample.plg
│   ├── sys
│   │   ├── CancelSample.inx
│   │   ├── device.c
│   │   ├── driver.c
│   │   ├── makefile
│   │   ├── makefile.inc
│   │   ├── objchk_wxp_x86
│   │   │   └── i386
│   │   ├── private.h
│   │   ├── public.h
│   │   ├── queue.c
│   │   ├── resource.h
│   │   ├── sources
│   │   ├── WDFSample.aps
│   │   └── WDFSample.rc
│   └── Test_CancelSample
│   ├── Debug
│   ├── OpenByIntf.cpp
│   ├── public.h
│   ├── ReadMe.txt
│   ├── res
│   │   ├── Test_EventSample.ico
│   │   └── Test_EventSample.rc2
│   ├── resource.h
│   ├── StdAfx.cpp
│   ├── StdAfx.h
│   ├── Test_EventSample.aps
│   ├── Test_EventSample.clw
│   ├── Test_EventSample.cpp
│   ├── Test_EventSampleDlg.cpp
│   ├── Test_EventSampleDlg.h
│   ├── Test_EventSample.dsp
│   ├── Test_EventSample.dsw
│   ├── Test_EventSample.h
│   ├── Test_EventSample.ncb
│   ├── Test_EventSample.opt
│   ├── Test_EventSample.plg
│   └── Test_EventSample.rc
├── CharSample
│   ├── buildchk_wxp_x86.log
│   ├── dirs
│   ├── exe
│   │   ├── Debug
│   │   ├── public.h
│   │   ├── ReadMe.txt
│   │   ├── StdAfx.cpp
│   │   ├── StdAfx.h
│   │   ├── Test_CharSample.cpp
│   │   ├── Test_CharSample.dsp
│   │   ├── Test_CharSample.dsw
│   │   ├── Test_CharSample.ncb
│   │   ├── Test_CharSample.opt
│   │   └── Test_CharSample.plg
│   └── sys
│   ├── CharSample.inx
│   ├── device.c
│   ├── driver.c
│   ├── makefile
│   ├── makefile.inc
│   ├── objchk_wxp_x86
│   │   └── i386
│   ├── private.h
│   ├── public.h
│   ├── queue.c
│   ├── resource.h
│   ├── sources
│   ├── WDFSample.aps
│   └── WDFSample.rc
├── DMASample
│   ├── buildchk_wxp_x86.log
│   ├── dirs
│   ├── exe
│   │   ├── Debug
│   │   ├── public.h
│   │   ├── ReadMe.txt
│   │   ├── StdAfx.cpp
│   │   ├── StdAfx.h
│   │   ├── Test_DMASample.cpp
│   │   ├── Test_DMASample.dsp
│   │   ├── Test_DMASample.dsw
│   │   ├── Test_DMASample.ncb
│   │   ├── Test_DMASample.opt
│   │   └── Test_DMASample.plg
│   └── sys
│   ├── device.c
│   ├── DMASample.inx
│   ├── driver.c
│   ├── makefile
│   ├── makefile.inc
│   ├── objchk_wxp_x86
│   │   └── i386
│   │   ├── device.obj
│   │   ├── DMASample.inf
│   │   ├── DMASample.pdb
│   │   ├── DMASample.sys
│   │   ├── driver.obj
│   │   ├── _objects.mac
│   │   ├── queue.obj
│   │   ├── vc80.pdb
│   │   ├── WdfCoInstaller01007.dll
│   │   └── wdfsample.res
│   ├── private.h
│   ├── public.h
│   ├── queue.c
│   ├── resource.h
│   ├── sources
│   ├── WDFSample.aps
│   └── WDFSample.rc
├── EventSample
│   ├── buildchk_wxp_x86.log
│   ├── dirs
│   ├── exe
│   │   ├── Debug
│   │   ├── public.h
│   │   ├── ReadMe.txt
│   │   ├── StdAfx.cpp
│   │   ├── StdAfx.h
│   │   ├── Test_EventSample.cpp
│   │   ├── Test_EventSample.dsp
│   │   ├── Test_EventSample.dsw
│   │   ├── Test_EventSample.ncb
│   │   ├── Test_EventSample.opt
│   │   └── Test_EventSample.plg
│   ├── sys
│   │   ├── device.c
│   │   ├── driver.c
│   │   ├── EventSample.inx
│   │   ├── makefile
│   │   ├── makefile.inc
│   │   ├── objchk_wxp_x86
│   │   │   └── i386
│   │   ├── private.h
│   │   ├── public.h
│   │   ├── queue.c
│   │   ├── resource.h
│   │   ├── sources
│   │   ├── WDFSample.aps
│   │   └── WDFSample.rc
│   └── Test_EventSample
│   ├── Debug
│   │   ├── OpenByIntf.obj
│   │   ├── StdAfx.obj
│   │   ├── Test_EventSampleDlg.obj
│   │   ├── Test_EventSample.exe
│   │   ├── Test_EventSample.ilk
│   │   ├── Test_EventSample.obj
│   │   ├── Test_EventSample.pdb
│   │   ├── Test_EventSample.res
│   │   ├── vc60.idb
│   │   └── vc60.pdb
│   ├── OpenByIntf.cpp
│   ├── public.h
│   ├── ReadMe.txt
│   ├── res
│   │   ├── Test_EventSample.ico
│   │   └── Test_EventSample.rc2
│   ├── resource.h
│   ├── StdAfx.cpp
│   ├── StdAfx.h
│   ├── Test_EventSample.aps
│   ├── Test_EventSample.clw
│   ├── Test_EventSample.cpp
│   ├── Test_EventSampleDlg.cpp
│   ├── Test_EventSampleDlg.h
│   ├── Test_EventSample.dsp
│   ├── Test_EventSample.dsw
│   ├── Test_EventSample.h
│   ├── Test_EventSample.ncb
│   ├── Test_EventSample.opt
│   ├── Test_EventSample.plg
│   └── Test_EventSample.rc
├── FilterSample
│   ├── buildchk_wxp_x86.log
│   ├── dirs
│   ├── exe
│   │   ├── Debug
│   │   ├── public.h
│   │   ├── ReadMe.txt
│   │   ├── StdAfx.cpp
│   │   ├── StdAfx.h
│   │   ├── Test_FilterSample.cpp
│   │   ├── Test_FilterSample.dsp
│   │   ├── Test_FilterSample.dsw
│   │   ├── Test_FilterSample.ncb
│   │   ├── Test_FilterSample.opt
│   │   └── Test_FilterSample.plg
│   ├── FDO
│   │   ├── CharSample.inx
│   │   ├── device.c
│   │   ├── driver.c
│   │   ├── makefile
│   │   ├── makefile.inc
│   │   ├── objchk_wxp_x86
│   │   │   └── i386
│   │   ├── private.h
│   │   ├── public.h
│   │   ├── queue.c
│   │   ├── resource.h
│   │   ├── sources
│   │   ├── WDFSample.aps
│   │   └── WDFSample.rc
│   └── sys
│   ├── device.c
│   ├── driver.c
│   ├── FilterSample.inx
│   ├── makefile
│   ├── makefile.inc
│   ├── objchk_wxp_x86
│   │   └── i386
│   ├── private.h
│   ├── public.h
│   ├── queue.c
│   ├── resource.h
│   ├── sources
│   ├── WDFSample.aps
│   └── WDFSample.rc
├── IdleSample
│   ├── buildchk_wxp_x86.log
│   ├── dirs
│   ├── exe
│   │   ├── Debug
│   │   ├── public.h
│   │   ├── ReadMe.txt
│   │   ├── StdAfx.cpp
│   │   ├── StdAfx.h
│   │   ├── Test_IdleSample.cpp
│   │   ├── Test_IdleSample.dsp
│   │   ├── Test_IdleSample.dsw
│   │   ├── Test_IdleSample.ncb
│   │   ├── Test_IdleSample.opt
│   │   └── Test_IdleSample.plg
│   └── sys
│   ├── device.c
│   ├── driver.c
│   ├── IdleSample.inx
│   ├── makefile
│   ├── makefile.inc
│   ├── objchk_wxp_x86
│   │   └── i386
│   ├── private.h
│   ├── public.h
│   ├── queue.c
│   ├── resource.h
│   ├── sources
│   ├── WDFSample.aps
│   └── WDFSample.rc
├── IOSample
│   ├── buildchk_wxp_x86.log
│   ├── dirs
│   ├── exe
│   │   ├── Debug
│   │   ├── public.h
│   │   ├── ReadMe.txt
│   │   ├── StdAfx.cpp
│   │   ├── StdAfx.h
│   │   ├── Test_IOSample.cpp
│   │   ├── Test_IOSample.dsp
│   │   ├── Test_IOSample.dsw
│   │   ├── Test_IOSample.ncb
│   │   ├── Test_IOSample.opt
│   │   └── Test_IOSample.plg
│   └── sys
│   ├── device.c
│   ├── driver.c
│   ├── IOSample.inx
│   ├── makefile
│   ├── makefile.inc
│   ├── objchk_wxp_x86
│   │   └── i386
│   ├── private.h
│   ├── public.h
│   ├── queue.c
│   ├── resource.h
│   ├── sources
│   ├── WDFSample.aps
│   └── WDFSample.rc
├── PCISample
│   ├── buildchk_wxp_x86.log
│   ├── dirs
│   ├── exe
│   │   ├── Debug
│   │   ├── public.h
│   │   ├── ReadMe.txt
│   │   ├── StdAfx.cpp
│   │   ├── StdAfx.h
│   │   ├── Test_PCISample.cpp
│   │   ├── Test_PCISample.dsp
│   │   ├── Test_PCISample.dsw
│   │   ├── Test_PCISample.ncb
│   │   ├── Test_PCISample.opt
│   │   └── Test_PCISample.plg
│   └── sys
│   ├── device.c
│   ├── driver.c
│   ├── makefile
│   ├── makefile.inc
│   ├── objchk_wxp_x86
│   │   └── i386
│   ├── PCISample.inx
│   ├── private.h
│   ├── public.h
│   ├── queue.c
│   ├── resource.h
│   ├── sources
│   ├── WDFSample.aps
│   └── WDFSample.rc
├── PnpPowerSample
│   ├── buildchk_wxp_x86.log
│   ├── dirs
│   ├── exe
│   │   ├── Debug
│   │   ├── public.h
│   │   ├── ReadMe.txt
│   │   ├── StdAfx.cpp
│   │   ├── StdAfx.h
│   │   ├── Test_PnpPowerSample.cpp
│   │   ├── Test_PnpPowerSample.dsp
│   │   ├── Test_PnpPowerSample.dsw
│   │   ├── Test_PnpPowerSample.ncb
│   │   ├── Test_PnpPowerSample.opt
│   │   └── Test_PnpPowerSample.plg
│   └── sys
│   ├── device.c
│   ├── driver.c
│   ├── makefile
│   ├── makefile.inc
│   ├── objchk_wxp_x86
│   │   └── i386
│   ├── PnpPowerSample.inx
│   ├── private.h
│   ├── public.h
│   ├── queue.c
│   ├── resource.h
│   ├── sources
│   ├── WDFSample.aps
│   └── WDFSample.rc
├── QueueSample
│   ├── buildchk_wxp_x86.log
│   ├── dirs
│   ├── exe
│   │   ├── Debug
│   │   ├── public.h
│   │   ├── ReadMe.txt
│   │   ├── StdAfx.cpp
│   │   ├── StdAfx.h
│   │   ├── Test_QueueSample.cpp
│   │   ├── Test_QueueSample.dsp
│   │   ├── Test_QueueSample.dsw
│   │   ├── Test_QueueSample.ncb
│   │   ├── Test_QueueSample.opt
│   │   └── Test_QueueSample.plg
│   └── sys
│   ├── device.c
│   ├── driver.c
│   ├── makefile
│   ├── makefile.inc
│   ├── objchk_wxp_x86
│   │   └── i386
│   ├── private.h
│   ├── public.h
│   ├── queue.c
│   ├── QueueSample.inx
│   ├── resource.h
│   ├── sources
│   ├── WDFSample.aps
│   └── WDFSample.rc
├── RegSample
│   ├── buildchk_wxp_x86.log
│   ├── dirs
│   ├── exe
│   │   ├── Debug
│   │   ├── public.h
│   │   ├── ReadMe.txt
│   │   ├── StdAfx.cpp
│   │   ├── StdAfx.h
│   │   ├── Test_RegSample.cpp
│   │   ├── Test_RegSample.dsp
│   │   ├── Test_RegSample.dsw
│   │   ├── Test_RegSample.ncb
│   │   ├── Test_RegSample.opt
│   │   └── Test_RegSample.plg
│   ├── sys
│   │   ├── device.c
│   │   ├── driver.c
│   │   ├── makefile
│   │   ├── makefile.inc
│   │   ├── objchk_wxp_x86
│   │   │   └── i386
│   │   ├── private.h
│   │   ├── public.h
│   │   ├── queue.c
│   │   ├── RegSample.inx
│   │   ├── resource.h
│   │   ├── sources
│   │   ├── WDFSample.aps
│   │   └── WDFSample.rc
│   └── Test_RegSample
│   ├── Debug
│   ├── OpenByIntf.cpp
│   ├── public.h
│   ├── ReadMe.txt
│   ├── res
│   │   ├── Test_RegSample.ico
│   │   ├── Test_RegSample.rc2
│   │   └── Thumbs.db
│   ├── Resource.h
│   ├── StdAfx.cpp
│   ├── StdAfx.h
│   ├── Test_RegSample.aps
│   ├── Test_RegSample.clw
│   ├── Test_RegSample.cpp
│   ├── Test_RegSampleDlg.cpp
│   ├── Test_RegSampleDlg.h
│   ├── Test_RegSample.dsp
│   ├── Test_RegSample.dsw
│   ├── Test_RegSample.h
│   ├── Test_RegSample.ncb
│   ├── Test_RegSample.opt
│   ├── Test_RegSample.plg
│   └── Test_RegSample.rc
├── UMDFSample
│   ├── buildchk_wxp_x86.log
│   ├── dirs
│   ├── exe
│   │   ├── Debug
│   │   ├── public.h
│   │   ├── ReadMe.txt
│   │   ├── StdAfx.cpp
│   │   ├── StdAfx.h
│   │   ├── Test_CharSample.cpp
│   │   ├── Test_CharSample.dsp
│   │   ├── Test_CharSample.dsw
│   │   ├── Test_CharSample.ncb
│   │   ├── Test_CharSample.opt
│   │   └── Test_CharSample.plg
│   └── sys
│   ├── Comsup.cpp
│   ├── Comsup.h
│   ├── Device.cpp
│   ├── Device.h
│   ├── dllsup.cpp
│   ├── Driver.cpp
│   ├── Driver.h
│   ├── exports.def
│   ├── internal.h
│   ├── makefile
│   ├── makefile.inc
│   ├── objchk_wxp_x86
│   │   └── i386
│   ├── Queue.cpp
│   ├── Queue.h
│   ├── resource.h
│   ├── sources
│   ├── WDFSample.rc
│   └── WUDFCharDriver.inx
├── USBSample
│   ├── buildchk_wxp_x86.log
│   ├── dirs
│   ├── exe
│   │   ├── public.h
│   │   ├── ReadMe.txt
│   │   ├── StdAfx.cpp
│   │   ├── StdAfx.h
│   │   ├── Test_USBSample.cpp
│   │   ├── Test_USBSample.dsp
│   │   ├── Test_USBSample.dsw
│   │   ├── Test_USBSample.ncb
│   │   ├── Test_USBSample.opt
│   │   └── Test_USBSample.plg
│   └── sys
│   ├── device.c
│   ├── driver.c
│   ├── makefile
│   ├── makefile.inc
│   ├── objchk_wxp_x86
│   │   └── i386
│   ├── private.h
│   ├── public.h
│   ├── queue.c
│   ├── resource.h
│   ├── sources
│   ├── USBSample.inx
│   └── WDFSample.rc
└── 光盘内容说明.doc

89 directories, 410 files

标签:

实例下载地址

Windows设备驱动程序WDF开发源码.rar

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警