3 ms·
This is not at all true. Microsoft has recommended for a long time that new drivers use WDF which is a C++ library
by poizan42 11y ago
This is not at all true. Microsoft has recommended for a long time that new drivers use WDF which is a C++ library
- tobias3 11y agoDo you have a source for that? KMDF seems to be a C-API.
- drv 11y agoIt has a C API, but everything under the hood is C++. The source is actually public now: https://github.com/Microsoft/Windows-Driver-Frameworks https://github.com/Microsoft/Windows-Driver-Frameworks
- poizan42 11y agoI meant it's written in C++[0]. The interface is exported through standard C functions, but the header files also have the declarations guarded with "extern "C"". Microsoft do have some sample drivers that are written in C++, e.g. https://github.com/Microsoft/Windows-driver-samples/tree/master/video/KMDOD https://github.com/Microsoft/Windows-driver-samples/tree/mas... [0]: https://github.com/Microsoft/Windows-Driver-Frameworks/tree/master/src/framework/kmdf/src/core https://github.com/Microsoft/Windows-Driver-Frameworks/tree/...