Can Windows drivers be written in Python?
drivers, python, windows
Solution
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.
Besides boot-time drivers, you also can't write UMDF drivers that:
- 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
Problem
Can Windows drivers be written in Python?