Technical Document #32

Technical Document #32        [Product Version: 11.1.0 and below]
I would like to execute in the kernel some pieces of code written in Delphi or in Visual Basic, using the Kernel PlugIn. Is it possible?

Beginning with version 11.2.0 of WinDriver, Delphi and Visual Basic 6.0 are no longer supported.

WinDriver does not support implementing a Kernel PlugIn project in Delphi or in Visual Basic (VB), since these programming languages should not generally be used for kernel mode development. However, while the Kernel PlugIn application must be written in C, it is possible to write a user mode application in Delphi/VB, which communicates with the C Kernel PlugIn application. If you select to implement such a design, in order to ensure the correct interaction between the user mode and Kernel PlugIn applications, you will need to implement a Delphi *.pas file or a VB *.bas file that contains common definitions for the Kernel PlugIn and user mode applications — as done in the library header files of the sample and DriverWizard generated Kernel PlugIn C projects (e.g., WinDriver\pci_diag\pci_lib.h, used by the sample KP_PCI driver / or in earlier versions — WinDriver\kerplug\kptest_com.h, used by the sample KPTEST driver).
You can refer to the implementation of the WinDriver\include\windrvr.h C header file and the corresponding WinDriver\delphi\include\windrvr.pas and WinDriver\vb\include\windrvr.cls files for an example of implementing the same code both in C and in Delphi/Visual Basic (respectively).