Home   |   Jungo Corporate Web Site   |   Connectivity Software Store   |   Contact us   |   Search:
Home Connectivity Software Support WinDriver Support Technical Documents

Technical Document #32



Doc ID: 32
Product: WinDriver
Version:  --

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?

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 kp_xxx_com.pas (Delphi) or kp_xxx_com.bas (VB) file, which will be the equivalent of the C header file WinDriver\kerplug\kptest_com.h (in the KPTEST sample code) or kp_xxx_com.h (in the generated code), which includes the common definitions to the Kernel PlugIn and user mode applications. [You can, of-course, choose any name you wish for this file (provided you make sure to include the correct file in your projects) and make any modifications necessary for your specific implementation, as long as the definitions in the Delphi/VB file and the equivalent C file are identical].
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).

Back to Top