none
Porting To Other Languages RRS feed

  • Question

  • I have only seen the WDK work with C/C++. Could it be ported to another language? Specifilcaly Pascal. If this is not possible, is there another way to write a driver for windows
    Wednesday, February 5, 2014 3:42 PM

Answers

  • Sorry, but the native language of the Windows kernel is C, with a limited set of C++ used in some cases.  Accept this and use the native language, otherwise even if you do successfully make things work, you will be cursed by those who are tasked to support what you write, and probably have your work thrown out.

    The above statement about support is not just for Pascal, I've seen developers who wrote Windows drivers in assembler, and if consultants are brought in the first thing recommended is junk the driver (and the developer if he is still employed at the firm).

    I like Pascal at lot (I helped develop one of the earliest Pascal compilers, and was involved in the standards committee), but if you are going to be writing driver code for Windows choose C.


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Wednesday, February 5, 2014 3:50 PM

All replies

  • Sorry, but the native language of the Windows kernel is C, with a limited set of C++ used in some cases.  Accept this and use the native language, otherwise even if you do successfully make things work, you will be cursed by those who are tasked to support what you write, and probably have your work thrown out.

    The above statement about support is not just for Pascal, I've seen developers who wrote Windows drivers in assembler, and if consultants are brought in the first thing recommended is junk the driver (and the developer if he is still employed at the firm).

    I like Pascal at lot (I helped develop one of the earliest Pascal compilers, and was involved in the standards committee), but if you are going to be writing driver code for Windows choose C.


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Wednesday, February 5, 2014 3:50 PM
  • How So ??
    Thursday, February 6, 2014 1:07 PM
  • I certainly don't know what Pavel is thinking here.  At a minimul if you tackled a UMDF driver you would need to create a complete set of includes and wrapper libraries for the language of your choice. 

    Perhaps he is thinking, of a small driver that exposes things such that user space process does the real work.  While this is possible, it has significant performance and security concerns which would cause many of us to reject any product that had such a solution.

    As I said in my previous post, the only right answer is accept that C is the language to use.


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Thursday, February 6, 2014 1:17 PM