When calling WDC_IntEnable()fUseKP
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
XXX_IntEnable()/PCI_IntEnable() library function
(which is called from the generated/sample
xxx_diag/pci_diag
user-mode application).
If you are not using the WDC_xxx APIWD_IntEnable() or InterruptEnable() (which calls
WD_IntEnable()), and pass the handle to the Kernel PlugIn
driver that you received from WD_KernelPlugInOpen() (within
the hKernelPlugIn field of the WD_KERNEL_PLUGIN
structure that was passed to the function). For details regarding these
APIs, refer to the WinDriver PCI Low-Level API Reference.
WDC_IntEnable() / InterruptEnable()
/ WD_IntEnable(), to enable interrupts in the Kernel PlugIn,
WinDriver will activate your Kernel PlugIn's
KP_IntEnable callback functionKP_IntAtIrqlKP_IntAtIrqlMSIKP_IntAtDpcKP_IntAtDpcMSITRUE. 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