Windows驱动程序可以用Python编写吗? [英] Can Windows drivers be written in Python?

查看:377
本文介绍了Windows驱动程序可以用Python编写吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以使用Python编写Windows驱动程序吗?

Can Windows drivers be written in Python?

推荐答案

是。您不能创建经典内核模式驱动程序。但是,从XP开始,Windows提供了用户模式驱动程序框架。显然,他们不能做任何事情-引导操作系统使用的任何驱动程序显然都必须是内核模式。但是,使用UMDF,您仅需要实现COM组件。

Yes. You cannot create the "classic" kernel-mode drivers. However, starting with XP, Windows offers a User-Mode Driver Framework. They can't do everything, obviously - any driver used in booting the OS obviously has to be kernel-mode. But with UMDF, you only need to implement COM components.

除了启动时驱动程序外,您也不能编写以下UMDF驱动程序:

Besides boot-time drivers, you also can't write UMDF drivers that:


  • 处理中断

  • 直接访问硬件,例如直接内存访问(DMA)

  • 具有严格的定时循环

  • 使用非分页缓冲池或为内核模式保留的其他资源

  • Handle interrupts
  • Directly access hardware, such as direct memory access (DMA)
  • have strict timing loops
  • Use nonpaged pool or other resources that are reserved for kernel mode

这篇关于Windows驱动程序可以用Python编写吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆