function parameter to
TRUE to indicate that you wish to enable
interrupts in the Kernel PlugIn driver with which the device was opened.
The generated DriverWizard and the sample pci_diag shared library (xxx_lib.c / pci_lib.c) demonstrate how this should be done — see the generated/sample
PCI_IntEnable() library function
(which is called from the generated/sample
If you are not using the
InterruptEnable() (which calls
WD_IntEnable()), and pass the handle to the Kernel PlugIn
driver that you received from
hKernelPlugIn field of the
structure that was passed to the function). For details regarding these
APIs, refer to the WinDriver PCI Low-Level API Reference.
WD_IntEnable(), to enable interrupts in the Kernel PlugIn, WinDriver will activate your Kernel PlugIn's
TRUE. You can also modify the code to make it more efficient, due to the advantages of handling the interrupts directly in the kernel, which provides you with greater flexibility (e.g., you can read from a specific register and write back the value that was read, or toggle specific register bits). For a detailed explanation on how to handle interrupts in the kernel using a Kernel PlugIn, refer to